X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=make_mkv;h=00e1ce304dfdd537d0423f9e4846512921dc8a3e;hb=d479508edd42fc325ede515aa6ffeceff258dea1;hp=c4f37072f1c075cb2d2ee2ed8e817a6d1a3d26d6;hpb=d0bb8d7ba0914fb2e31422aa1207ba6eaf490deb;p=videoscripts%2F.git diff --git a/make_mkv b/make_mkv index c4f3707..00e1ce3 100755 --- a/make_mkv +++ b/make_mkv @@ -21,6 +21,7 @@ use DateTime::Format::Duration; my $mkvmerge='mkvmerge'; my $ffmpeg='ffmpeg'; my $handbrake='HandBrakeCLI'; +my $handbrake_options='--strict-anamorphic --crop 0:0:0:0 -E ac3'; my $tmpfile = `tempfile`; chomp($tmpfile); my $chapter_file = $tmpfile; my $input_file_options = "-S"; @@ -165,7 +166,7 @@ foreach my $video (sort{$videos{$a} <=> $videos{$b}} keys %videos) { # Use HandBrake to requantize/deinterlace the input video my $video_mp4 = $video; $video_mp4 =~ s/\.[^.]*$//; $video_mp4 .= ".hb.mp4"; print " Re-quantizing input video content: $video_mp4\n"; - my $handbrake_cmd = "$handbrake $deinterlace_option $requantize_option -E ac3 -i \"$video\" -o \"$video_mp4\" > /dev/null 2>&1"; + my $handbrake_cmd = "$handbrake $deinterlace_option $requantize_option $handbrake_options -i \"$video\" -o \"$video_mp4\" > /dev/null 2>&1"; if(! defined $opt_s) { my $errno = system("$handbrake_cmd"); $errno = $errno >> 8;