From 79326983f807cd1b651c0861937834899739284f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1squez=20P=C3=A9rez?= Date: Fri, 21 Apr 2017 13:29:36 -0700 Subject: [PATCH] Created a FFMPEG Compression preset for conill's 6 Specs --- mk_conill_6specs.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 mk_conill_6specs.sh diff --git a/mk_conill_6specs.sh b/mk_conill_6specs.sh new file mode 100755 index 0000000..2dd3a04 --- /dev/null +++ b/mk_conill_6specs.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +export IFS=$'\n' ## to allow for spaces in names, ugh... + +## If you need to replace something in the original filename, do it in the output_file declaration, with the sed. +process_files() +{ + hd_tw=1280 + hd_th=720 + input_dir=$input_dir_hd + f=$input_dir/$1 + output_file=$(basename ${1%.*}|sed s/_1920x1080//) + ffmpeg -ss $slate_offset -i "$f" \ + -movflags faststart -t $time -y -g 7 -s $hd_tw'x'$hd_th -ar 44100 -aspect 16:9 -b:a 96k -b:v 1300k -vcodec libx264 -profile:v main -pix_fmt yuv420p -g 15 -strict -2 "$output_dir/"$output_file"_SPEC_1_QuickTime-Low_Res.mov" \ + -movflags faststart -t $time -y -g 7 -s $hd_tw'x'$hd_th -ar 44100 -aspect 16:9 -b:a 128k -b:v 4800k -vcodec libx264 -profile:v main -pix_fmt yuv420p -g 15 -strict -2 "$output_dir/"$output_file"_SPEC_2_QuickTime-High_Res.mov" \ + -t $time -y -g 7 -s $hd_tw'x'$hd_th -ar 44100 -vcodec mpeg1video -vb 9600k "$output_dir/"$output_file"_SPEC_3_Movie_Clip.mpeg" \ + -t $time -y -g 7 -s 640x360 -ar 44100 -vcodec libx264 -b:a 64 -b:v 600k -profile:v main -pix_fmt yuv420p -g 15 -strict -2 "$output_dir/"$output_file"_SPEC_4_Flash.flv" \ + -t $time -y -g 7 -vf "setfield=prog" -ar 48000 -vcodec libx264 -profile:v main -level 4 -pix_fmt yuv420p -g 7 -strict -2 -vb 15000k -ab 320k "$output_dir/"$output_file"_SPEC_5_Hulu.mp4" \ + -t $time -y -g 7 -s 640x360 -ar 44100 -vcodec mpeg4 -vb 10000k -strict -2 "$output_dir/"$output_file"_SPEC_6_Telemuundo.mov" \ + +} + +# -t $time -y -g 7 -s $hd_tw'x'$hd_th -ar 44100 -vcodec mpeg4 -vb 9600k -strict -2 "$output_dir/"$output_file"_Version_2.mov" \ +# -t $time -y -g 7 -s $hd_tw'x'$hd_th -ar 44100 -vcodec mpeg1video -vb 9600k "$output_dir/"$output_file"_Version_3.mpeg" \ +# -t $time -y -g 7 -s $hd_tw'x'$hd_th -ar 44100 -vcodec libx264 -profile:v main -pix_fmt yuv420p -g 15 -strict -2 "$output_dir/"$output_file"_Version_4.flv" \ +# -t $time -y -g 7 -s $hd_tw'x'$hd_th -vf "setfield=prog" -ar 48000 -vcodec libx264 -profile:v main -level 4 -pix_fmt yuv420p -g 7 -strict -2 -vb 15000k -ab 320k "$output_dir/"$output_file"_Version_HULU_720p.mov" \ +# -t $time -y -g 7 -vf "setfield=prog" -ar 48000 -vcodec libx264 -profile:v main -pix_fmt yuv420p -g 7 -strict -2 -vb 15000k "$output_dir/"$output_file"_Version_YOUTUBE.mp4" \ +# -t $time -y -g 7 -s 640x360 -ar 44100 -vcodec mpeg4 -vb 1200k -strict -2 "$output_dir/"$output_file"_640x360.mov" \ + + +# -t $time -y -g 7 -vf "setfield=prog" -ar 48000 -vcodec libx264 -profile:v main -pix_fmt yuv420p -g 7 -strict -2 -vb 25000k -ab 320k "$output_dir/"$output_file"_Version_HULU.mov" \ + +for f; + do process_files "$f"; +done