[MEncoder-users] thanks for: cannot encode to mpeg2
Stefan Frings
mencoder at meinemullemaus.de
Fri Mar 25 23:58:04 CET 2005
Hello all,
I spent lots of hours to find an instruction how to encode a DVB-T stream (or
file) to a DVD Video. I did not find much useful.
I like to thank you all for your help. I can now do what I want and I get
excellent picture quality.
The following script reads an mpg file (stored DVB-T stream) and converts it
to a DVD movie. There are probabyl better scripts, but this one is right ok
for me.
Nico: I compared your arguments with the defaults and I really cannot see any
difference. I see also no visual difference between 1-Pass encoding and
2-Pass encoding. In addition the bitrate is always around 6000 ignoring the
vbitrate parameter. Anyway you gave me the hints what parameters are the
important ones for DVD compatibility.
My script is actually this one:
#!/bin/sh
# This script burns a TV recording (DVB-T) as DVD Video.
writer=/dev/hdc
if [ -z "$1" ]; then
echo "Missing *.mpg filename"
exit 1
fi
name=`basename "$1" .mpg`
echo "Enter apect ratio 1.3333 (4:3) or 1.7777 (16:9)"
read -p ">" aspect
lavcopts="-lavcopts
keyint=15:vcodec=mpeg2video:mbd=2:vbitrate=3500:vmax_b_frames=2:vrc_buf_size=1835:vrc_maxrate=9000:vrc_minrate=600:aspect=$aspect"
mencoder_opts="-vc ffmpeg12,mpeg12 -oac lavc -ovc lavc -of mpeg -mpegopts
format=dvd -mc 0 -noskip -vf harddup"
# For 2-Pass encoding use these lines
#mencoder $mencoder_opts $lavcopts:vpass=1:turbo "$1" -o "$name.neu.mpg" ||
exit 1
#mencoder $mencoder_opts $lavcopts:vpass=2 "$1" -o "$name.neu.mpg" || exit 1
# For 1-Pass encoding use this line
mencoder $mencoder_opts $lavcopts "$1" -o "$name.neu.mpg" || exit 1
dvdauthor -t -o "$name.dvd" "$name.neu.mpg" || exit 1
dvdauthor -T -o "$name.dvd" || exit 1
read -p "Insert DVD media and press <Enter>" enter
growisofs -Z $writer -dvd-compat -dvd-video -udf -V"$name" "$name.dvd"
More information about the MEncoder-users
mailing list