mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
tests/fate-run: Allow to set input options for encoding pass
This will be useful in the next commit. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
06b98e396a
commit
a5ab4be081
@ -247,12 +247,13 @@ transcode(){
|
|||||||
ffprobe_opts=$6
|
ffprobe_opts=$6
|
||||||
additional_input=$7
|
additional_input=$7
|
||||||
final_decode=$8
|
final_decode=$8
|
||||||
|
enc_opt_in=$9
|
||||||
test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input"
|
test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input"
|
||||||
encfile="${outdir}/${test}.${enc_fmt}"
|
encfile="${outdir}/${test}.${enc_fmt}"
|
||||||
test $keep -ge 1 || cleanfiles="$cleanfiles $encfile"
|
test $keep -ge 1 || cleanfiles="$cleanfiles $encfile"
|
||||||
tsrcfile=$(target_path $srcfile)
|
tsrcfile=$(target_path $srcfile)
|
||||||
tencfile=$(target_path $encfile)
|
tencfile=$(target_path $encfile)
|
||||||
ffmpeg -f $src_fmt $DEC_OPTS -i $tsrcfile $additional_input \
|
ffmpeg -f $src_fmt $DEC_OPTS $enc_opt_in -i $tsrcfile $additional_input \
|
||||||
$ENC_OPTS $enc_opt $FLAGS -f $enc_fmt -y $tencfile || return
|
$ENC_OPTS $enc_opt $FLAGS -f $enc_fmt -y $tencfile || return
|
||||||
do_md5sum $encfile
|
do_md5sum $encfile
|
||||||
echo $(wc -c $encfile)
|
echo $(wc -c $encfile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user