diff options
author | Gyan Doshi <gyandoshi@gmail.com> | 2018-02-15 15:18:47 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-02-16 23:53:22 +0300 |
commit | 310d56e86f494273e2859cf25dd4ae2433f9a2be (patch) | |
tree | 4e0a9efaeb24e8c251e26d0414b695c4064eab59 /tests/fate-run.sh | |
parent | f0809bc0fa634afe8b7c3f2682b8e51e87d0861e (diff) |
fate/mpegps: add tests for PCM_DVD stream remux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 82862b7ef4..457761c152 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -226,6 +226,22 @@ transcode(){ -f framecrc - || return } +stream_remux(){ + src_fmt=$1 + srcfile=$2 + enc_fmt=$3 + stream_maps=$4 + final_decode=$5 + encfile="${outdir}/${test}.${enc_fmt}" + test "$7" = -keep || cleanfiles="$cleanfiles $encfile" + tsrcfile=$(target_path $srcfile) + tencfile=$(target_path $encfile) + ffmpeg -f $src_fmt -i $tsrcfile $stream_maps -codec copy $FLAGS \ + -f $enc_fmt -y $tencfile || return + ffmpeg $DEC_OPTS -i $encfile $ENC_OPTS $FLAGS $final_decode \ + -f framecrc - || return +} + lavffatetest(){ t="${test#lavf-fate-}" ref=${base}/ref/lavf-fate/$t |