简体   繁体   中英

How to extract the bitstream from H.264 video?

I have a H.264 video and I want to extract the bitstream from it. In other words, I need to know the stream after encoding a video via H.264 standard. I am going to use the extracted stream in Matlab. How can I do this (extract the bitstream)? Is it possible to use ffmpeg?if so what is the command.

You can do this using

ffmpeg -i in.mp4 -c copy -f h264 stream.264

Depending on what MATLAB expects, you may need to add a bitstream filter

ffmpeg -i in.mp4 -c copy -f h264 -vbsf h264_mp4toannexb stream.264

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