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

Armelius Cameron armeliusc at gmail.com
Fri Mar 23 19:23:23 CET 2012


Hello,
I have .mov files with h264 video. I want to move this to MP4 or MKV container 
but I don't want to re-encode the video. I am trying to use mplayer / mencoder 
to extract the stream so that I can use MP4Box from gpac or mkvtools to add 
the stream to the container, but I am having trouble figuring out how. 
Is this possible at all ? How to do it ?

Thank you very much in advance for any help.

This is what ffmpeg -i give me of the video:

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

Seems stream 0 codec frame rate differs from container frame rate: 61440.00 
(61440/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie1.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2011-06-13 14:09:02
  Duration: 00:00:01.70, start: 0.000000, bitrate: 30725 kb/s
    Stream #0.0(eng): Video: h264 (Main), yuv420p, 1280x1280, 30718 kb/s, 30 
fps, 30 tbr, 30720 tbn, 61440 tbc
    Metadata:
      creation_time   : 2011-06-13 14:09:58

AC


More information about the MPlayer-users mailing list