[MPlayer-users] Extract h.264 stream to switch container

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Mar 24 09:08:45 CET 2012


Armelius Cameron <armeliusc <at> gmail.com> writes:

> ffmpeg -i movie1.mov 
> ffmpeg version 0.8.9, Copyright (c) 2000-2011 the FFmpeg developers

This is outdated.

> <snip>

Both on this list and the FFmpeg mailing lists, please do not cut 
the console output (except for repeated lines), but always post 
complete, uncut console output.

To extract the h264 stream from mkv:
mplayer file.mkv -dumpvideo
ffmpeg -i file.mkv -vcodec copy out.h264

H264 in mp4 has a special syntax (if the file is valid) and 
mplayer file.mp4 -dumpvideo produces an invalid file
ffmpeg -i file.mp4 -vcodec copy -vbsf h264_mp4toannexb out.h264

Carl Eugen



More information about the MPlayer-users mailing list