tests/fate-run: Allow multiple inputs for transcode()
This allows nicer tests by having a greater range of inputs available (without requiring adding further samples to the fate-suite). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
cc721fc292
commit
0a0204c48a
@ -232,12 +232,13 @@ transcode(){
|
|||||||
enc_opt=$4
|
enc_opt=$4
|
||||||
final_decode=$5
|
final_decode=$5
|
||||||
ffprobe_opts=$7
|
ffprobe_opts=$7
|
||||||
|
additional_inputs=$8
|
||||||
encfile="${outdir}/${test}.${enc_fmt}"
|
encfile="${outdir}/${test}.${enc_fmt}"
|
||||||
test "$6" = -keep || cleanfiles="$cleanfiles $encfile"
|
test "$6" = -keep || 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 $ENC_OPTS $enc_opt $FLAGS \
|
ffmpeg -f $src_fmt $DEC_OPTS -i $tsrcfile $additional_inputs \
|
||||||
-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)
|
||||||
ffmpeg $DEC_OPTS -i $tencfile $ENC_OPTS $FLAGS $final_decode \
|
ffmpeg $DEC_OPTS -i $tencfile $ENC_OPTS $FLAGS $final_decode \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user