- Timestamp:
- 2012-04-05T15:53:05+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/video-and-audio/trunk/src/perllib/plugins/VideoConverter.pm
r24188 r25346 717 717 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"; 718 718 719 my $handbrake_cmd = "Hand brakeCLI.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"; 720 720 721 721 #print STDERR "****\nHandbrake command: $handbrake_cmd\n****\n"; … … 1005 1005 my $ivideo_filename_gsdlenv = $self->gsdlhome_independent($ivideo_filename); 1006 1006 1007 1008 1009 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); 1010 1010 1011 1011 #print STDERR "***** grabbing keyframe as 50% of $video_duration\n"; … … 1015 1015 $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\""; 1016 1016 #$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 1017 1022 1018 1023 # fmpeg -i input.dv -r 1 -f image2 -s 120x96 images%05d.png
Note:
See TracChangeset
for help on using the changeset viewer.