11# !/usr/bin/perl -w
2- # Last Updated: 2004.12.26  (xris)
2+ # Last Updated: 2005.02.13  (xris)
33# 
44#   generic.pm
55# 
@@ -23,12 +23,15 @@ package export::generic;
2323    }
2424
2525#  Load the following extra parameters from the commandline
26-     $cli_args { ' path:s' }               = 1;  #   Save path (only used with the noserver option)
27-     $cli_args { ' cutlist|use_cutlist' } = 1;  #   Use the myth cutlist
26+     add_arg( ' path:s' ,                          ' Save path (only used with the noserver option)' ); 
27+     add_arg( ' cutlist|use_cutlist! ' ,           ' Use the myth cutlist (or not) ' ); 
2828
2929#  These aren't used by all modules, but the routine to define them is here, so here they live
30-     $cli_args {' height|v_res|h=i' #  Height
31-     $cli_args {' width|h_res|w=i' #  Width
30+     add_arg(' height|v_res|h=i' ' Output height.' 
31+     add_arg(' width|h_res|w=i' ' Output width.' 
32+     add_arg(' deinterlace:s!' ' Deinterlace video.' 
33+     add_arg(' noise_reduction|denoise|nr:s!' ' Enable noise reduction.' 
34+     add_arg(' crop!' ' Crop out broadcast overscan.' 
3235
3336#  Gather generic export settings
3437    sub  gather_settings  {
@@ -38,7 +41,30 @@ package export::generic;
3841    #  Ask the user if he/she wants to use the cutlist
3942        $self -> {' use_cutlist' ' Enable Myth cutlist?' 
4043                                            ' yesno' 
41-                                             ' Yes' 
44+                                             (defined ($Args {' cutlist' $Args {' cutlist' ' No' ' Yes' 
45+     #  Video settings
46+         if  (!$self -> {' audioonly' 
47+         #  Defaults?
48+             $Args {' denoise' ' ' if  (defined  $Args {' denoise' $Args {' denoise' eq  ' ' 
49+             $Args {' deinterlace' if  (defined  $Args {' deinterlace' $Args {' deinterlace' eq  ' ' 
50+         #  Noise reduction?
51+             $self -> {' denoise' ' Enable noise reduction (slower, but better results)?' 
52+                                                     ' yesno' 
53+                                                     $self -> {' denoise' ' Yes' ' No' 
54+         #  Deinterlace video?
55+             $self -> {' deinterlace' ' Enable deinterlacing?' 
56+                                                 ' yesno' 
57+                                                 $self -> {' deinterlace' ' Yes' ' No' 
58+         #  Crop video to get rid of broadcast padding
59+             if  ($Args {' crop' 
60+                 $self -> {' crop' 
61+             }
62+             else  {
63+                 $self -> {' crop' ' Crop broadcast overscan (2% border)?' 
64+                                              ' yesno' 
65+                                              $self -> {' crop' ' Yes' ' No' 
66+             }
67+         }
4268    }
4369
4470#  Check for a duplicate filename, and return a full path to the output filename
0 commit comments