无法分割avi影片档案 [英] Can't Split a avi Video File

查看:78
本文介绍了无法分割avi影片档案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试开发视频分割"选项.为此,我使用了FileStream.视频文件被读入字节数组.

Hi,
I am trying to develop a Video Split option. For that i used FileStream. The Video file is readed into byte array.

Byte[] byteSource = System.IO.File.ReadAllBytes(FileInputPath);
   fsSource.Write(byteSource, 0, byteSource.Length);



并喜欢分割视频.它适用于.mpg格式.但是从头到尾在avi方面,该视频都表现得很好.但是不能像从薄荷2到薄荷4"之间切入.还有其他方法或方法吗?请帮助我.



And like to split the Video. It is working for .mpg format. But in avi from starting point to any point this video is cutting well. But can''t cut in between like from "mint 2 to mint 4". Is there any other way or how to do this. Please help me.

推荐答案

您不能像这样拆分AVI. Avi在文件开头有一个帧索引,该索引引用了视频中的所有帧.使用FFMPEG复制和拆分视频.它几乎适用于任何事物.

您的方法适用于mpeg,因为它是一种流格式,它在文件开头没有索引.
You can''t split an AVI like this. Avi has a frame index in the begining of the file, which references all the frames in the video. Copy & Split your video with FFMPEG. It will work for almost anything.

Your methood works with mpeg, because it''s a stream format, it does not have an index in the begining of the file.


这篇关于无法分割avi影片档案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆