[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Original]
Re: [MPlayer-users] RE: 2 pass with lavc, 2nd pass looks a littleworse
[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
On Thu, 14 Aug 2003 upgrdman@xxxxxxxxxxxxxx wrote:
>and yes the origion file... the vob, is like 3GB so unless u want me to
>upload it, i probably shouldnt. and i think that would violate the dmca
>anyway, and im a poor american :/ damn our laws! :)
Not at all. Under DMCA it's just fine to copy and distribute movies, as far
as I have heard. What's illegal, is ripping the movie in the first place
(circumventing CSS), even for personal viewing. Funny, isn't it?
Of course it is (and was) illegal to distribute copyrighted materials
without permission, so you should be concerned about DMCA only if watching
the movies from the original encrypted DVD.
Ok, sorry for offtopic ranting.. to make this e-mail remotely useful,
here are some encoding tips that I experimented yielded the best result
(PSNR) with three pass encoding:
- Use hqdn3d, I use hqdn3d=12:15:15, for good video source decrease the
values. This greatly removes noise (at least when recording from TV)
- Use the following lavcopts (tested 25 fps, about 384 kbps, 320x240 size)
Actually most of the options have almost insignificant change in to the
image quality, trell probably gives the most increase. Here's my three-pass
encoding script (the input file should be a mov (quicktime) file, recorded
e.g. with streamer, with 44100 Hz 16 bit single channel audio).
if [ "$VIDEO_BR" = "" ]; then
if [ "$AUDIO_BR" = "" ]; then
export VIDEO_BR AUDIO_BR
if [ "$ENCTMP_RUN2" = "" ]; then
exec nice time "$0" "$@"
if [ "$INFILE" = "" ]; then
echo "[VIDEO_BR=xxx] [AUDIO_BR=xxx] enc.sh infile [outfile]"
if [ "$2" != "" ]; then
GENOPTS="-noskip -skiplimit 0 -vop hqdn3d=12:15:15"
rm -f divx2pass.log psnr_*.log frameno.avi stream.dump stream.wav coding.txt
echo "$GENOPTS $LAVCOPTS $LAMEOPTS" >coding.txt
set -e -x #-v
mplayer -dumpaudio "$INFILE"
sox -x -w -s -c 1 -r 44100 -t raw stream.dump -t wav stream.wav
mencoder $GENOPTS -ovc frameno -oac mp3lame -audiofile stream.wav $LAMEOPTS
"$INFILE" -o frameno.avi
mencoder $GENOPTS -ovc lavc -oac copy $LAVCOPTS:vpass=1:psnr "$INFILE" -o
mencoder $GENOPTS -ovc lavc -oac copy $LAVCOPTS:vpass=2:psnr "$INFILE" -o