Ignore:
Timestamp:
2012-04-05T15:53:05+12:00 (12 years ago)
Author:
davidb
Message:

Updates to code that take account of changes in the central PM modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/video-and-audio/trunk/src/perllib/plugins/VideoConverter.pm

    r24188 r25346  
    717717    my $post_opts = "-f mp4 -O $video_processing_parameters -e x264 -b $streaming_HQ_VideoBitrate -a 1 -E faac -6 dpl2 -R Auto -B $streaming_HQ_AudioBitrate -D 0.0 -x ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0";
    718718
    719     my $handbrake_cmd = "HandbrakeCLI.exe -i \"$ivideo_filename_gsdlenv\" $pre_opts -o \"$omp4_filename_gsdlenv\" $post_opts";
     719    my $handbrake_cmd = "HandBrakeCLI -i \"$ivideo_filename_gsdlenv\" $pre_opts -o \"$omp4_filename_gsdlenv\" $post_opts";
    720720
    721721    #print STDERR "****\nHandbrake command: $handbrake_cmd\n****\n";
     
    10051005    my $ivideo_filename_gsdlenv = $self->gsdlhome_independent($ivideo_filename);
    10061006
    1007      # If ever reused, then needs to change to newer hashmap method
    1008      #my ($vtype, $width, $height, $duration, $vsize,
    1009         #   $vcodec ,$fps ,$atype ,$afreq ,$achan ,$arate) = identify($ivideo_filename_gsdlenv,$outhandle,0);
     1007    # If ever reused, then needs to change to newer hashmap method
     1008    #my ($vtype, $width, $height, $duration, $vsize,
     1009    #   $vcodec ,$fps ,$atype ,$afreq ,$achan ,$arate) = identify($ivideo_filename_gsdlenv,$outhandle,0);
    10101010   
    10111011    #print STDERR "***** grabbing keyframe as 50% of $video_duration\n";
     
    10151015    $command = "ffmpeg  -ss $ss_opt -i \"$ivideo_filename_gsdlenv\" -ss 4.5 -an -vframes 1 -f image2 -s ${thumbnailwidth}x${thumbnailheight} -deinterlace -y \"$thumbnailfile_gsdlenv\"";
    10161016    #$command = "ffmpeg -ss 4.5 -i \"$ivideo_filename_gsdlenv\" -ss 4.5 -an -vframes 1 -f image2 -s ${thumbnailwidth}x${thumbnailheight} -deinterlace -y \"$thumbnailfile_gsdlenv\"";
     1017
     1018##  $command = "ffmpeg -i \"$ivideo_filename_gsdlenv\"  -ss 10.5 -vframes 1 -f image2 -s ${thumbnailwidth}x${thumbnailheight} -deinterlace -y \"$thumbnailfile_gsdlenv\"";
     1019
     1020    $command = "ffmpeg -i \"$ivideo_filename_gsdlenv\"  -ss 16.5 -vframes 1 -f image2 -s ${thumbnailwidth}x${thumbnailheight} -deinterlace -y \"$thumbnailfile_gsdlenv\"";
     1021
    10171022
    10181023    # fmpeg -i input.dv -r 1 -f image2 -s 120x96 images%05d.png
Note: See TracChangeset for help on using the changeset viewer.