This can be necessary to e.g. force a fixed-point audio codec.
Unified · Split
| @@ -230,9 +230,10 @@ transcode(){ · 229 unmodified lines | ||
| 230 | 230 | srcfile=$2 |
| 231 | 231 | enc_fmt=$3 |
| 232 | 232 | enc_opt=$4 |
| 233 | − final_decode=$5 | |
| 233 | + final_encode=$5 | |
| 234 | 234 | ffprobe_opts=$7 |
| 235 | 235 | additional_input=$8 |
| 236 | + final_decode=$9 | |
| 236 | 237 | test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input" |
| 237 | 238 | encfile="${outdir}/${test}.${enc_fmt}" |
| 238 | 239 | test "$6" = -keep || cleanfiles="$cleanfiles $encfile" |
| @@ -242,7 +243,7 @@ transcode(){ · 3 unmodified lines | ||
| 242 | 243 | $ENC_OPTS $enc_opt $FLAGS -f $enc_fmt -y $tencfile || return |
| 243 | 244 | do_md5sum $encfile |
| 244 | 245 | echo $(wc -c $encfile) |
| 245 | − ffmpeg $DEC_OPTS -i $tencfile $ENC_OPTS $FLAGS $final_decode \ | |
| 246 | + ffmpeg $DEC_OPTS $final_decode -i $tencfile $ENC_OPTS $FLAGS $final_encode \ | |
| 246 | 247 | -f framecrc - || return |
| 247 | 248 | test -z $ffprobe_opts || \ |
| 248 | 249 | run ffprobe${PROGSUF}${EXECSUF} -bitexact $ffprobe_opts $tencfile || return |