[MEncoder-users] How to convert mkv to mkv?
Carlo Wood
carlo at alinoe.com
Fri Jun 29 03:08:50 CEST 2007
On Thu, Jun 28, 2007 at 04:18:38PM -0400, The Wanderer wrote:
> The message refers to anything being muxed by lavf. If the original
> contained B frames, then -ovc copy will produce B frames; whether or not
> the original contained B frames, if your video-encoding options told it
> to use B frames then the result will contain B frames.
>
> In this case, your command line contains the x264encopts suboptions
>
> bframes=3:b_pyramid:weight_b
>
> and so your output video will contain B frames.
So, if I get rid of those options then it should work - even
if the original has B frames?
> > Uhuh - there are two different things with the same name? The file
> > that I have ends on .mkv, I believe it is a Matroska container.
> > Doesn't that mean that it is x264 ?
>
> No. Matroska can contain almost any kind of video - H.264 (of which x264
> is one implementation) is one of them, but it is not by any means the
> only one. (For that matter, Matroska is not the only container which can
> contain H.264.)
>
> >> From the file name I'd expect it is:
> >> the.matrix.1999.dvd9.720p.hddvd.x264-hv.mkv
> >
> > There is a 'x264' in the name ;)
> >
> > How can I find out what the codec of the original is then?
>
> It should be given in the output of any MPlayer or MEncoder command
> which takes the original as input. For the most information, the
> generally suggested command is
>
> mplayer -identify -frames 0
This gives:
hikaru:/opt/large/movies/The.Matrix.1999.DVD9.720p.HDDVD.x264-hV>mplayer -identify -frames 0 the.matrix.1999.dvd9.720p.hddvd.x264-hv.mkv
MPlayer dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU @ 2.66GHz (Family: 6, Model: 15, Stepping: 7)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing the.matrix.1999.dvd9.720p.hddvd.x264-hv.mkv.
ID_VIDEO_ID=0
ID_VID_0_NAME=The Matrix
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "The Matrix", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=AC3 5.1
ID_AID_0_LANG=eng
[mkv] Track ID 2: audio (A_AC3) "AC3 5.1", -aid 0, -alang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x528 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=the.matrix.1999.dvd9.720p.hddvd.x264-hv.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=528
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=2.4060
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=6
ID_LENGTH=8177.82
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
s3fb: can't open /dev/fb0: No such file or directory
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
ID_AUDIO_BITRATE=640000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=a52
Starting playback...
Exiting... (End of file)
Can you tell me how I can transform this into a very high quality .mkv
file, using the filters -vf crop=1254:528:13:0,scale=608:256,hqdn3d=2:1:2
please?
I tried EVERYTHING - and it ALWAYS complains about:
Too many audio packets in the buffer: (3282 in 8401920 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.
Hell, even this:
mencoder -ovc copy -oac copy the.matrix.1999.dvd9.720p.hddvd.x264-hv.mkv -o test.avi
gives that error?!?
Please help - because I have no idea anymore what to do next.
It seems that mencoder simply can't do this :/
--
Carlo Wood <carlo at alinoe.com>
More information about the MEncoder-users
mailing list