[MEncoder-users] How to convert mkv to mkv?

Carlo Wood carlo at alinoe.com
Thu Jun 28 15:09:46 CEST 2007


On Thu, Jun 28, 2007 at 12:33:34PM +0800, Stanley wrote:
> If you don't specify "-of" parameter, the output container format is AVI.
> 
> Stanley

Yes, I found that (even before I mailed the first time) on the net;
and then I tried to find what to pass to mencoder to use mpeg4, but
I cannot find it.

I tried mp4, mpeg4 and a bunch of other things - but it always says:

Option of: Unknown suboption mp4
Error parsing option on the command line: -of

The output of 'mencoder -of help' is:

Available output formats:
   avi      - Microsoft Audio/Video Interleaved
   mpeg     - MPEG-1/2 system stream format
   lavf     - FFmpeg libavformat muxers
   rawvideo - (video only, one stream only) raw stream, no muxing
   rawaudio - (audio only, one stream only) raw stream, no muxing

Does this mean that I do not have the output format (x264 with mpeg4
for the video stream) compiled into this mencoder? Or is there
something else missing?

Also, I read that H.264 had extensions that go beyond mpeg4, so
I am confused :/. I want those extensions, of course. Is there
anything else wrong with my commandline?

$ mencoder the.matrix.1999.dvd9.720p.hddvd.x264-hv.mkv
    -vf crop=1254:528:13:0,scale=608:256,hqdn3d=2:1:2
    -mc 0 -ofps 24000/1001 -oac copy -ovc x264 -of ???
    -x264encopts subq=6:partitions=all:8x8dct:me=umh:\
    frameref=5:bframes=3:b_pyramid:weight_b:threads=4:\
    bitrate=3697:pass=1 -o /dev/null

Do I really have to remove the -mc 0 too once I manage to
use the same output format as the original input format is?

[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: A_AC3

I understand that MPEG-1/2 is not the same as mpeg4, so I
don't want to use that. However, I tried to use -of mpeg
and I STILL get:

Pos: 130.6s   3138f ( 1%) 36.59fps Trem:  79min   0mb  A-V:0.000 [3387:128]
Too many audio packets in the buffer: (3279 in 8394240 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
...

Why is it still talking about avi when I pass -of mpeg?

Thanks for your help,
Carlo
-- 
Carlo Wood <carlo at alinoe.com>



More information about the MEncoder-users mailing list