[MEncoder-users] Convert any video file to DVD with open source tools

alkos333 me at alkos333.net
Sun Sep 14 21:41:10 CEST 2008


I've been trying to follow a tutorial  on Linux.com
(http://www.linux.com/feature/53702) to create a dvd from a an mkv
file that I have.  I looked up every single option used in the
encoding command and things seem to make sense.

Here's the file I'm working with:


me at tpt60:~/downloads/complete$ mplayer -vo dummy -ao dummy -identify
movie.mkv 2>&1
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU           T2500  @ 2.00GHz (Family: 6,
Model: 14, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing movie.mkv.
ID_VIDEO_ID=0
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=und
[mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  624x352  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=movie.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=624
ID_VIDEO_HEIGHT=352
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=1.7727
ID_AUDIO_FORMAT=vrbs
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_LENGTH=5364.43
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)





Since the file is not in AC3,  I run the following command only for NTSC:

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf
scale=720:480,harddup -srate 48000 -af lavcresample=48000 -lavcopts
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18:aspect=19/9:acodec=ac3:abitrate=192
-ofps 30000/1001 -o movie.mpg movie.mkv

It seems to be working ok, but then it fails at 10%:



Pos: 508.9s  16819f (10%) 72.98fps Trem:  33min 1990mb  A-V:0.060 [3119:192]
Too many audio packets in the buffer: (4097 in 848371 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.

Flushing video frames.
Writing index...

Overhead: 2.485% (5235272 / 210668984)
Writing header...

Video stream: 3119.682 kbit/s  (389960 B/s)  size: 198454040 bytes
508.908 secs  16819 frames

Audio stream:  192.000 kbit/s  (23999 B/s)  size: 12223488 bytes  509.312 secs




I also tried playing the file that it has created thus far and there
was a huge audio delay, which I can't explain either.

I'd really appreciate your help.



More information about the MEncoder-users mailing list