diff mbox series

[FFmpeg-devel,1/2] tests/fate-run: Allow to set input options for encoding pass

Message ID GV1P250MB07373264B6B9C1B5A457C2CF8F419@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit a5ab4be081aee22e675d0e78aa9ca0d08f4a5d6f
Headers show
Series [FFmpeg-devel,1/2] tests/fate-run: Allow to set input options for encoding pass | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 7, 2022, 10:22 p.m. UTC
This will be useful in the next commit.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 tests/fate-run.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Andreas Rheinhardt Sept. 9, 2022, 1:24 p.m. UTC | #1
Andreas Rheinhardt:
> This will be useful in the next commit.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  tests/fate-run.sh | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/fate-run.sh b/tests/fate-run.sh
> index 4008bcbc16..61cc59acc0 100755
> --- a/tests/fate-run.sh
> +++ b/tests/fate-run.sh
> @@ -247,12 +247,13 @@ transcode(){
>      ffprobe_opts=$6
>      additional_input=$7
>      final_decode=$8
> +    enc_opt_in=$9
>      test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input"
>      encfile="${outdir}/${test}.${enc_fmt}"
>      test $keep -ge 1 || cleanfiles="$cleanfiles $encfile"
>      tsrcfile=$(target_path $srcfile)
>      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
>      do_md5sum $encfile
>      echo $(wc -c $encfile)

Will apply this patchset tomorrow unless there are objections.

- Andreas
diff mbox series

Patch

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 4008bcbc16..61cc59acc0 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -247,12 +247,13 @@  transcode(){
     ffprobe_opts=$6
     additional_input=$7
     final_decode=$8
+    enc_opt_in=$9
     test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input"
     encfile="${outdir}/${test}.${enc_fmt}"
     test $keep -ge 1 || cleanfiles="$cleanfiles $encfile"
     tsrcfile=$(target_path $srcfile)
     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
     do_md5sum $encfile
     echo $(wc -c $encfile)