6 # The inverse of what "smooth-dl -s" tells us
12 VIDEO_OPTIONS="-g 100 -keyint_min 50 -flags2 -mbtree"
13 AV_SYNC="-itsoffset $AV_DELAY -i $INPUT_FILE -map 1:0 -map 0:1"
16 AUDIO_OPTIONS="-acodec libmp3lame -ac 2 -ab $AUDIO_BITRATE"
17 VIDEO_PASS1="-vcodec libx264 -vpre veryfast_firstpass ${VIDEO_OPTIONS}"
18 VIDEO_PASS2=-"vcodec libx264 -vpre veryfast ${VIDEO_OPTIONS}"
20 # iPhone compatible streams
21 VIDEO_PASS1="$VIDEO_PASS1 -vpre baseline"
22 VIDEO_PASS2="$VIDEO_PASS2 -vpre baseline"
24 echo $INPUT_FILE $OUTPUT_FILE $AUDIO_NONE $VIDEO_PASS1
26 #LANG=C ffmpeg -y -i $INPUT_FILE $AV_SYNC $ADIO_NONE $VIDEO_PASS1 -pass 1 -b 1500k $OUTPUT_FILE
27 LANG=C ffmpeg -y -i $INPUT_FILE $AV_SYNC $AUDIO_OPTIONS $VIDEO_PASS1 -pass 1 -b $VIDEO_BITRATE $OUTPUT_FILE
28 LANG=C ffmpeg -y -i $INPUT_FILE $AV_SYNC $AUDIO_OPTIONS $VIDEO_PASS2 -pass 2 -b $VIDEO_BITRATE $OUTPUT_FILE