Posts: 2
Joined: Fri Aug 09, 2013 1:09 pm

hello_video - demuxing input video with ffmpeg

Sun Aug 18, 2013 9:23 am


I have just started experimenting with hello_video example, and I would like to know how to properly demux input file
with a ffmpeg command line tool.

I tried to extract video stream from a MOV container (Big Bucks Bunny, 1080p, H.264 MOV) using:

ffmpeg -i big_buck_bunny_1080p_h264.mov -an -sn -vcodec copy bbb.h264

Unfortunately, the output file is not playable with hello_video (results in black display, but the file is read without an error).

Thank you

Posts: 43
Joined: Fri May 24, 2013 9:05 am

Re: hello_video - demuxing input video with ffmpeg

Fri Sep 13, 2013 8:29 pm

The ffmpeg command line that works for me is:
ffmpeg -i big_buck_bunny_1080p_h264.mov -vcodec copy -bsf h264_mp4toannexb -an bbb.h264

What it does is:
-an: stripping audio
-vcodec copy: copying the encoded video data without reencoding
-bsf h264_mp4toannexb: change Quicktime style NAL headers (with length field) to standard NAL headers with 0x00000001 sync code.

Return to “Graphics programming”

Who is online

Users browsing this forum: No registered users and 2 guests