[FFmpeg-user] Muxing raw H264 to container format (MP4, MOV)

Ben Mesander ben at cardinalpeak.com
Thu Oct 20 17:39:49 CEST 2011


On Thu, Oct 20, 2011 at 9:21 AM, oblivion <vlad.ion at gmail.com> wrote:

> Hi,
>
> I have a raw H264 stream that I want to mux into a container format in
> order
> to get timing information in it (for seeking purposes). I tried the
> standard
> option "-vcodec copy" and I get an empty file.
>
> ffmpeg -i input.h264 -vcodec copy out.mp4
>
> I tried variations like specifying the frame rate and the format with "-f
> h264" but I get the same.


This works for me:

ffmpeg -f h264 -i angel.264 -vcodec copy angel.mp4

With an older ffmpeg build.

See: http://www.cardinalpeak.com/blog/?p=488

Regards,
Ben


More information about the ffmpeg-user mailing list