# vdrip.pl successive changes or works from 2008-06-09 ### History of modifications: # 20100224 pkx: Third offical beta release...and last beta one: vdrip.pl19v-20100224 # 20100214 pkx: script.sh: prevent to be executed a second time; and if the final avifile already exists, # backup it before ripping same movie(added to name -BKP-YYYYMMDDhhmmss) # 20100211 pkx: Implemented ac3 soundtrack copy: if -ac3 in argument,select the ac3 soundtrack if it is available # Needed to changed mplayer command option(-msglevel all=6) to detect ac3 soundtrack # 20100118 pkx: Final avifile are now generated in same directory than the ripped file; minor changes in script.sh # file:/// occurrences are changed in vdriplist.sh; fix vdriplist.sh updates at end of script.sh # 20100109 pkx: Tests -rip option and number of passes given in arg,tested that script is correclty generated Implemented(audio optimimum bitrate): -ab[:] (example -ab:256 will use at least 256kpbs if possible) # 20100107 pkx: Script: changed the script terminal title(script name) # 20091218 pkx: Second beta release: vdrip.pl19s-20091218 (any pre-20 versions are beta,see $ver) # On Savannah server, the vdrip.pl file has md5sum and other signatures # 20091201 pkx: script.sh: removed any occurrence to xcmd.sh: replaced by 'find' in place. # 20091130 pkx: [19r] script.sh: changed:mencoder stamp in resulting filename.avi when it is a SVN version; # display destination .avi filename; change display at beginning of the job # 20091118 pkx: Fix vdrip parameters: if a manual command bw/fm,should not reset audio rate to max # 20091115 pkx: Changed mplayer command option(-msglevel all=5) since user can change it to "0" # to get rid of warnings windows. Now we rely on default config files (in ~/.mplayer). # Tested on Xubuntu 9.10 and mplayer/mencoder SVN versions. # Change temporary filename for 2-passes encoding to allow 2 or more concurrent rippings(divx2pass-pid.log) # 20090908 pkx: help review: printhelp,printhelphdr,printsyntax. Work on the optimal videobitrate ($optvbitrate,$flvbitrate) # fixed the use of $flnd(flag no-desinterlace),script was always generated with desinterlace-ON # 20090905 pkx: [v19p] better processing for image centering in getvddata() when cropdetecting # 20090827 pkx: continuing implementing profiles for audio/video. No more "ficoutfile" processing(tracing for debug) # 20090822 pkx: vdrip.pl project simple web page for site savannah # 20090820 pkx: Review user error messages (on command line when no correct arg or filename) # 20090818 pkx: vdrip.pl is now hosted on savannah servers (savannah.nongnu.org) # 20090817 pkx: [v19j] First offical beta release: vdrip.pl19j-20090817 (any pre-20 version are beta,see $ver) # 20090817 pkx: vdrip.pl better errors/warnings reporting. Fix the vdripdir bug. Rewrite help for expert mode # 20090816 pkx: vdrip.pl enhancements to scripts and profile,added command 'vb' video bitrate.More tests on Debian 5.02/Gnome # 20090810 pkx: review language parameter for mplayer/mencoder (-alang) # fix some cropdetection fails for small movie mpeg2 files(see RESTART: and redo labels) # When incoherence while croping,redo more crop detections changing parameter value 'st'(todo done) # 20090809 pkx: review help,syntax,license text # changed algo processfile() when file very small;Warn if spaces in filename(may cause problem,but works) # Extracted the history of changes,for this RELEASE.txt file # 20090804 pkx: fix -ab argument(flabitrate),no '/home/CMD' in script,xpert mode does not imply auto, # nocrop mode does not imply auto; fix if nocrop mode use processcommand("gn") # 20090802 pkx: simplification phase3: suppress noquery,flverb,word automatic(implicit default mode), # fix 'gn' to really generate a script file without crop parameter(so movie picture is not cut) # finalized option -rip0|1|2 and its cmdman equivalent, # review TODO works,added print ripped filename at end of script, # when in test ripping mode(code 0),vdriplist.sh file is now unchanged # when internal error suggested to report problem to vdrip.pl@gmail.com # 20090801 pkx: implemented profiles 2,3,4,8 and cmd 'ab' 'vb' (to force audio and video bitrates) # mplayer/mencoder command path,test and report error if executable not found # 20090730 pkx: implemented profiles and new options (flnd flmotion) for -lm,-fm,-cl # 20090729 pkx: fix mediainfo framecounts retrieval: no more use of medi.pl,test if it exists # 20090618 pkx: Removed any occurrence to xine,kx(kill xine)- Implemented -nocrop option(imply -auto) # Removed any interactive words(now use either: -auto or -manual options) [18f] # Fix helps. Started to implementing new options -flnd -flprofile for -lm,-fm,-cl # 20090609 pkx: implemented Black&White movie flag reducing bitrate for sound<1970 at 64kbps(option -bw) # Added elapsed time in script bash file. Always delete the temp file($fictmp) at any end/exit # 20090527 pkx: suppress directory requirements: /mnt/xxx and so, replaced to $HOME/vdripdir $HOME/vdripdone # changed temp filename. Added option -m for manual mode(-interactive no more used) # 20090315 pkx: review crop timers; added option -exec to run script (TO TEST),review error message/suggestion, # system language detection $LANG reported to -alang(mplayer)in script global variable # Licensing text added/changed # 20090315:pkx: script.sh: -alang xxx herited from vdrip.pl (var.$filng),inhibited 'mv script done at end' # 20090314 pkx: changed flmore to flxpert (experience user),review options # 20090313 pkx: implemented and changed default mode -auto and 1-pass encoding,fix pb 'cs' if short file,review doc # 20090311 pkx: review -help,-helpfull,-h, and options # 20090307 pkx: vdrip.pl vdriplist(replaced all 'mench',review specific names) # 20090306 pkx: vdrip.pl reorganized: arguments parsing,review options,cmdman,help/syntax,filename-with-space(phase2) # genscript w/o cropdetect,picture centering when channel icon not completely in picture (and warn-it). # 20090306 pkx: vdrip.pl implemented crop corrections if logo is not centered in the height of screen # 20090306 pkx: mench.sh filename changed to vdriplist.sh (list of pending files to vdrip) # 20090213 pkx: change help text # 20090201 pkx: simplification phase2(argument) longfilename with embeded spaces support(phase1) # 20090129 pkx: changed script to search video file in alternate storage and dest.dir # (in case of disk full:script need not to be changed) # 20090106 pkx: get rid occurrence of $vd[8],changed to $vdcall[0] # 20090101 pkx: fix currcrop var sometimes not updated from vd[8],array @vdcall now store all successive # values of cropdetections done # 20081228 pkx: simplification phase1, many useless commands depreciated: as ac sp sf xi kx - or changed: pv # 20081227 pkx: name conversion:script and avi filename are same than video filename (except extension,space) # 20081226 pkx: better processing error code returned by mencoder in script (fatal error may occur while launching it) # 20081222 pkx: fix .avi filename; cancel 'vdripon' flag (side effect prevention of exec script on/off) # 20081125 pkx: simplify name script/avifile generation, fix movie list found in current dir # 20081103 pkx: ficout better processed+warned in trace mode. Inhibited nopfile in script. Everything is in english # 20081102 pkx: tvaddrip-0000.txt integrated within this program,add explanations,see lines with #-# .Changed printmenu # 20081101 pkx: fixed many comments and changes to clarify explanations,flxpert:mode for experienced users # 20081031 pkx: change menu and help file to be clearer. Fix language in crop detect sequence(mplayer -vo x11 and -alang) # 20081029 pkx: much less verbose,all unnecessary info put in comment or trace mode (if $tr) # 20081028 pkx: file tvaddrip-0000.txt - final script is shorter # 20081028 pkx: script.sh: Rename script as 'done' (fix space in variable and '=' sign) # 20081026 pkx: script.sh: Tests files/tools before processing. # 20081025 pkx: script.sh: fix previous processing. fix script filename,script archive,can be launched from any directory # 20080923 pkx: script.sh: only variables are given by the script vdrip.pl (orig:v.20080504-new-simple) # 20080923 pkx: script.sh: added -alang fr in mencoder syntax (Arte channel may broadcast 2 sound tracks) # 20090922 pkx: Some satellite mpeg files(.m2t) may have 2 soundtracks, languages 'fra' and 'deu' # f.i.: ARTE) now correctly processed. This parameter is forced in mplayer/mencoder: -alang fra # 20081022 pkx: script.sh: fix version-stamp of mencoder for the movie filename,var is $vmenc # 20081022 pkx: script.sh: update vdriplist.sh(mench.sh) when mencoder done (the job filename is commented) # 20081021 pkx: script.sh: minor modif:more compact,suppress useless things # -nodate- pkx: add option pp=fd for desinterlace (now always ON) # -nodate- pkx: add set aspect(sa) to force a specific aspect when the one detected is not adequate # -nodate- pkx: crop fix for width: computed aspect ok (no more auto-aspect:it is non standard for all players) # -nodate- pkx: memorize last flow of crop detections (when the use of commands: cr,ct,cs) ###########