[MEncoder-users] Problems when creating video dvd
Giacomo Comes
comes at naic.edu
Mon Jan 16 16:10:06 CET 2006
On Mon, Jan 16, 2006 at 03:17:10PM +0100, Sebastian wrote:
> Hi all!
>
> I'm trying to encode a divx movie to dvd. But during the process I get
> lots of warnings and in the end the dvd won't play (not even using
> mplayer).
>
> Here's what I have and what I did with it:
>
> ######################################################################
>
> file Documentary.avi
> Documentary.avi: RIFF (little-endian) data, AVI, 512 x 288, 29.97 fps,
> video: DivX 5, audio: MPEG-1 Layer 3 (stereo, 44100 Hz)
>
> ######################################################################
>
> For encoding I used mencoder (with libavcodec) from yesterdays CVS:
>
> mencoder -sws 9 -vf scale=720:480 -ofps 30000/1001 Documentary.avi -oac
> lavc -ovc lavc -srate 48000 -af lavcresample=48000 -lavcopts
> trell:cbp:dc=10:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:mv0:vqmin=1:lmin=1:aspect=16/9:vcodec=mpeg2video:mbd=2:keyint=12:vrc_maxrate=9800:vrc_buf_size=1835:vpass=1:vbitrate=5200:acodec=ac3:abitrate=192
> -o /dev/null -of mpeg -mpegopts format=dvd && mencoder -sws 9 -vf
> scale=720:480 -ofps 30000/1001 Documentary.avi -oac lavc -ovc lavc
> -srate 48000 -af lavcresample=48000 -lavcopts
> trell:cbp:dc=10:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:mv0:vqmin=1:lmin=1:aspect=16/9:vcodec=mpeg2video:mbd=2:keyint=12:vrc_maxrate=9800:vrc_buf_size=1835:vpass=2:vbitrate=5200:acodec=ac3:abitrate=192
> -o Documentary.mpeg -of mpeg -mpegopts format=dvd
harddup is missing. It could cause desync.
>
> #######################################################################
>
> During the encoding process mencoder spit out lots of "rc buffer
> underflow" warnings like this:
>
> mpeg2video @ 0x8460a28]rc buffer underflow4min 4040mb A-V:0.047
> [4910:192]
>
If the resulting mpeg plays fine with mplayer, go on. Otherwise
try to take out some lavc options (trell:cbp:dia=-10:predia=-10:vqmin=1:lmin=1)
and check the resulting mpeg.
> #######################################################################
>
> Then I handed the file to dvdauthor:
>
> dvdauthor -o dvd -a ac3+en -c
> 0,10:00,20:00,30:00,40:00,50:00,1:00:00,1:10:00,1:20:00,1:30:00,1:40:00
> documentary.mpg
>
> dvdauthor gave hundreds of warnings like this:
>
> WARN: audio sector out of range: -1162101 (vobu #17382, pts 3168.535)
>
This is known. The current mpeg muxer has problem with NTSC stream.
You should remux the audio and video with mplex. In this way dvdauthor
will work fine.
> #######################################################################
>
> I finished the dvd stucture and burned it:
>
> dvdauthor -o dvd/ -T
> growisofs -dvd-compat -Z /dev/dvd -dvd-video dvd/
>
> #######################################################################
>
> Then I tried to play it with mplayer but it doesn't work:
>
> mplayer dvd://
> MPlayer dev-CVS-060115-18:27-3.4.4 (C) 2000-2006 MPlayer Team
> CPU: Advanced Micro Devices Sempron/Athlon MP/XP Thoroughbred; Duron
> Applebred (Family: 6, Stepping: 1)
> CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
>
>
> Playing dvd://.
> Reading disc structure, please wait...
> libdvdread: Can't seek to block 256
> libdvdread: Can't seek to block 256
> libdvdread: Can't open file VIDEO_TS.IFO.
> Can't open VMG info!
> [file] No filename
> Failed to open dvd://
>
>
> Exiting... (End of file)
>
> #################################################################
>
> I can't even mount the disc (usually not a problem):
Are you sure
that there was enough free disk space when you run dvdauthor?
The fact that you cannot mount the disk is unusual.
It can only means 2 things.
1) The iso image is corrupted
2) the burned disk is corrupted
You can do:
mkisofs -dvd-video -o image.iso dvd
and mount the iso image. If the image mounts then burn it and mount
the dvd. If it fails the problem is with the burn process/media/etc.
If the image does not mount, the problem is with mkisofs/dvdauthor.
Giacomo
>
> mount /mnt/cdrom/
> mount: wrong fs type, bad option, bad superblock on /dev/hdc,
> missing codepage or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
>
> While trying to mount the disc I get these messages in syslog:
>
> Jan 16 15:12:08 section_eight attempt to access beyond end of device
> Jan 16 15:12:08 section_eight hdc: rw=0, want=68, limit=4
> Jan 16 15:12:08 section_eight isofs_fill_super: bread failed, dev=hdc,
> iso_blknum=16, block=16
>
> ###################################################################
>
> The video is not too big for a dvd5, though:
>
> du -h dvd/
> 4,2G dvd/VIDEO_TS
> 4,0K dvd/AUDIO_TS
> 4,2G dvd/
>
> ###################################################################
>
> Any ideas?
> Btw, the video quality of your mpeg2 encoder is superb! Thanks!
>
> Sebastian
More information about the MEncoder-users
mailing list