X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=make_home_videos.pl;h=d0a4a44e93b22e695a7de2b2b587752d9d32c7ea;hb=refs%2Fheads%2Fmaster;hp=33c0c0df51eba9813a8bc9d590ed33a7bd570de8;hpb=6ab397855fde341417761a2e91667c85cbfc41ef;p=videoscripts%2F.git diff --git a/make_home_videos.pl b/make_home_videos.pl index 33c0c0d..d0a4a44 100755 --- a/make_home_videos.pl +++ b/make_home_videos.pl @@ -6,6 +6,7 @@ # 2) mencoder : http://www.mplayerhq.hu/homepage/design7/dload.html # 3) transcode : vi sources.list; deb ftp://ftp.nerim.net/debian-marillat sarge main # apt-get install transcode +# 4) avimerge : apt-get install transcode-utils use Getopt::Std; @@ -21,7 +22,7 @@ $encoded_dir = "xvid_clips"; $merge_dir = "daily_clips"; $default_tape_name = "home_video"; $playlist_extension = "pls"; -$dvgrab = "/usr/local/bin/dvgrab"; +$dvgrab = "/usr/bin/dvgrab"; $mencoder = "/usr/bin/mencoder"; $mplayer = "/usr/bin/mplayer"; $avimerge = "/usr/bin/avimerge"; @@ -34,8 +35,10 @@ $max_dv_clip_size_in_mb = "1023"; #I had to keep it at this size to avoid errors #$max_dv_clip_size_in_mb = "22000"; #avisplit still doesn't seem to do things right for large clips # max_tape_grab_time=7200 Allows Max time of 2 hours to allow a tape to be dumped (good for 90 min tape) # max_tape_grab_time=5400 Allows Max time of 1.5 hours to allow a tape to be dumped (good for 60 min tape) -$max_tape_grab_time = 5400; -$dvgrab_options = "--autosplit --timestamp --format dv2 --opendml --buffers 2048 --rewind"; +$max_tape_grab_time = 7200; +#$dvgrab_options = "--autosplit --timestamp --format dv2 --opendml --buffers 2048 --rewind"; +#$dvgrab_options = "-autosplit -timestamp -format dv2 -opendml -buffers 2048 -rewind"; +$dvgrab_options = "-autosplit -timestamp -format dv2 -opendml -rewind"; $encode_options_pass1 = "-mc 0 -oac mp3lame -lameopts cbr:cbr=128 -ffourcc XVID -fps 29.97 -ovc lavc "; $encode_options_pass1.= "-lavcopts vcodec=mpeg4:vhq:vbitrate=$bitrate:keyint=15:vpass=1 -vf pp=ci"; $encode_options_pass2 = "-mc 0 -oac mp3lame -lameopts cbr:cbr=128 -ffourcc XVID -fps 29.97 -ovc lavc "; @@ -217,7 +220,7 @@ sub encode_videos { print "$mencoder $encode_options_pass2 -o ./$encoded_dir/$current_output_file -idx $current_file\n"; } if(!$opt_s) { - $tempfile = `tempfile`; chomp($tempfile); + $tempfile = `mktemp`; chomp($tempfile); system("$mencoder $encode_options_pass1 -o ./$encoded_dir/$current_output_file -idx $current_file 2>$tempfile"); system("$mencoder $encode_options_pass2 -o ./$encoded_dir/$current_output_file -idx $current_file 2>>$tempfile"); if(! -e "./$encoded_dir/$current_output_file") {