简体   繁体   中英

use python to split a video file into a set of parts

I use the following python code to split a FLV video file into a set of parts ,when finished ,only the first part video can be played ,the other parts are corrupted.I wonder why and Is there some correct ways to split video files

the code format is mussy here please see the formated code here

Data formats consist normally of "two" (multiple) things. A container and a codec. One handles the way a data is aligned and put together, while the second handles the payload and its compression or representation only.

What you did was basically to just cut the data into separate chunks without really understanding how the data is aligned, formatted and encoded (as the others have commented).

http://en.wikipedia.org/wiki/File:FLVPacket.png

http://en.wikipedia.org/wiki/Flash_Video

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM