Add apass, vpass and deint options, vpass is not yet implemented,

Add cobra srcipt example.
This commit is contained in:
agibert 2004-06-23 14:28:09 +00:00
parent e238273836
commit 979b380f63
4 changed files with 73 additions and 16 deletions

View File

@ -1,13 +1,22 @@
# $RCSfile: ReleaseNotes.txt,v $
# $Revision: 1.1 $
# $Revision: 1.2 $
# $Name: $
# $Date: 2004/06/05 13:29:40 $
# $Date: 2004/06/23 14:28:09 $
# $Author: agibert $
--------------------------------------------------------------------------------
dvd2divx V 1.1.0-1 - A. Gibert - 2004/06/23
--------------------------------------------------------------------------------
Add apass, vpass and deint options, vpass is not yet implemented,
Add cobra srcipt example.
--------------------------------------------------------------------------------
dvd2divx V 1.0.0-1 - A. Gibert - 2004/06/05
--------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/bash
# dvd_device divx_root divx_title dvd_title chapter angle alang slang vbr abr xsize aspect buffer stereo
#-------------------------------------------------------------------------------------------------------------------------------------------------------------
dvd2divx - barry_lyndon 1 1 1-24 1 fr - - - - - o -
dvd2divx - barry_lyndon 2 1 25- 1 fr - - - - - o -
dvd2divx - barry_lyndon 1 - - - - - 920 128 480 4/3 n y
dvd2divx - barry_lyndon 2 - - - - - 920 128 480 4/3 n y
# dvd_device divx_root divx_title dvd_title chapter angle alang slang vbr abr xsize aspect buffer stereo apass vpass deint
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
dvd2divx - barry_lyndon 1 1 1-24 1 fr - - - - - o - - - -
dvd2divx - barry_lyndon 2 1 25- 1 fr - - - - - o - - - -
dvd2divx - barry_lyndon 1 - - - - - 920 128 480 4/3 n y 1 2 n
dvd2divx - barry_lyndon 2 - - - - - 920 128 480 4/3 n y 1 2 n

34
cobra_example Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
# dvd_device divx_root divx_title dvd_title chapter angle alang slang vbr abr xsize aspect buffer stereo apass vpass deint
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#dvd2divx /dev/cdrom1 cobra 1 10 1- 1 fr - - - - - o - - - -
#dvd2divx /dev/cdrom1 cobra 2 11 1- 1 fr - - - - - o - - - -
#dvd2divx /dev/cdrom1 cobra 3 12 1- 1 fr - - - - - o - - - -
#dvd2divx /dev/cdrom1 cobra 4 13 1- 1 fr - - - - - o - - - -
#dvd2divx /dev/cdrom1 cobra 5 14 1- 1 fr - - - - - o - - - -
#dvd2divx /dev/cdrom1 cobra 6 15 1- 1 fr - - - - - o - - - -
#dvd2divx - cobra 1 - - - - - 1000 128 480 4/3 n n 1 2 y
#dvd2divx - cobra 2 - - - - - 1000 128 480 4/3 n n 1 2 y
#dvd2divx - cobra 3 - - - - - 1000 128 480 4/3 n n 1 2 y
#dvd2divx - cobra 4 - - - - - 1000 128 480 4/3 n n 1 2 y
#dvd2divx - cobra 5 - - - - - 1000 128 480 4/3 n n 1 2 y
#dvd2divx - cobra 6 - - - - - 1000 128 480 4/3 n n 1 2 y
#dvd2divx /dev/cdrom1 cobra 13 10 1- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 14 11 1- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 15 12 1- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 16 13 1- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 17 14 1- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 18 15 1- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 19 10 1- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 20 10 3- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 21 10 5- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 22 10 7- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 23 10 9- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 24 10 11- 1 fr - 1000 128 480 4/3 d n 0 2 y
#dvd2divx /dev/cdrom1 cobra 31 10 13- 1 fr - 1000 128 480 4/3 d n 0 2 y
dvd2divx - cobra pre2 11 1 1 fr - 1000 128 480 4/3 d n 0 2 y
dvd2divx - cobra post2 11 2- 1 fr - 1000 128 480 4/3 d n 0 2 y

View File

@ -5,9 +5,9 @@
# (C) 2004 Arnaud G. Gibert
#-----------------------------------------------------------------------------------------------------------------------------------
# $RCSfile: dvd2divx,v $
# $Revision: 1.1 $
# $Revision: 1.2 $
# $Name: $
# $Date: 2004/06/05 13:29:40 $
# $Date: 2004/06/23 14:28:09 $
# $Author: agibert $
#-----------------------------------------------------------------------------------------------------------------------------------
@ -45,6 +45,9 @@ xsize=${11}
aspect=${12} # 4/3|16/9|...
bufferize=${13} # o|y|n|d (only|yes|no|direct)
stereo=${14} # y|n
apass=${15} # 0|1
vpass=${16} # 1|2
deint=${17} # y|n
@ -56,7 +59,7 @@ out_name=$divx_root-$divx_title
echo "device: [$dvd_device] DivX: [$divx_name] title: ($title) chapter: ($chapter) angle: ($angle)"
echo "alang: ($alang) slang: ($slang) vbr: ($vbr) abr: ($abr) xsize: ($xsize) aspect: ($aspect)"
echo "bufferize: ($bufferize) stereo: ($stereo)"
echo "bufferize: ($bufferize) stereo: ($stereo) apass: ($apass) vpass: ($vpass) deint: ($deint)"
@ -79,8 +82,14 @@ else
stereo_mode=3
fi
read_opt="$device_opt dvd://$title -chapter $chapter -dvdangle $angle -alang $alang $slang_opt"
if [ "$deint" == "y" ]
then
vf_opt="-vf-add lavcdeint"
fi
vf_opt="$vf_opt -vf-add scale -zoom -xy $xsize"
read_opt="$device_opt dvd://$title -chapter $chapter -dvdangle $angle -alang $alang $slang_opt"
audio_opt="-oac mp3lame -lameopts cbr:br=$abr:aq=0:mode=$stereo_mode"
#-----------------------------------------------------------------------------------------------------------------------------------
@ -113,22 +122,27 @@ fi
#-----------------------------------------------------------------------------------------------------------------------------------
echo "Compressing MP3..."
mencoder $read_opt -oac mp3lame -ovc frameno -lameopts cbr:br=$abr:aq=0:mode=$stereo_mode -vop scale -zoom -xy $xsize -o frameno.avi >$out_name.2.log 2>&1
if [ "$apass" == "1" ]
then
echo "Compressing MP3..."
mencoder $read_opt $audio_opt -ovc frameno $vf_opt -o frameno.avi >$out_name.2.log 2>&1
$audio_opt="-oac copy"
fi
#-----------------------------------------------------------------------------------------------------------------------------------
echo "Compressing DivX pass 1..."
mencoder $read_opt -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=$vbr:vhq:v4mv:aspect=$aspect -vop scale -zoom -xy $xsize -o $divx_name >$out_name.3.log 2>&1
mencoder $read_opt $audio_opt -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=$vbr:vhq:v4mv:aspect=$aspect $vf_opt -o $divx_name >$out_name.3.log 2>&1
#-----------------------------------------------------------------------------------------------------------------------------------
echo "Compressing DivX pass 2..."
mencoder $read_opt -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=$vbr:vhq:v4mv:aspect=$aspect -vop scale -zoom -xy $xsize -o $divx_name >$out_name.4.log 2>&1
mencoder $read_opt $audio_opt -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=$vbr:vhq:v4mv:aspect=$aspect $vf_opt -o $divx_name >$out_name.4.log 2>&1