diff options
author | James Almer <jamrial@gmail.com> | 2019-03-14 20:36:24 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-03-14 20:36:24 +0300 |
commit | fda424b300c1a0b991296aa585691609d01196bd (patch) | |
tree | 2fad779896d4f2673e7c8e15aca76ee3f4b340b9 /tests/fate-run.sh | |
parent | ace96d2e693d804a0ed16aebc1b1027cfff2c527 (diff) | |
parent | 618d02c1fa9e74d490cace64a7d15762656b521c (diff) |
Merge commit '618d02c1fa9e74d490cace64a7d15762656b521c'
* commit '618d02c1fa9e74d490cace64a7d15762656b521c':
tests: Convert lavf container tests to non-legacy test scripts
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index a2ccc65a63..ebd5c14c17 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -290,6 +290,26 @@ lavf_audio(){ do_avconv_crc $file $DEC_OPTS $3 -i $target_path/$file } +lavf_container(){ + t="${test#lavf-}" + outdir="tests/data/lavf" + file=${outdir}/lavf.$t + do_avconv $file $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src $DEC_OPTS -ar 44100 -f s16le $1 -i $pcm_src "$ENC_OPTS -metadata title=lavftest" -b:a 64k -t 1 -qscale:v 10 $2 + test $3 = "disable_crc" || + do_avconv_crc $file $DEC_OPTS -i $target_path/$file $3 +} + +lavf_container_attach() { lavf_container "" "$1 -attach ${raw_src%/*}/00.pgm -metadata:s:t mimetype=image/x-portable-greymap"; } +lavf_container_timecode_nodrop() { lavf_container "" "$1 -timecode 02:56:14:13"; } +lavf_container_timecode_drop() { lavf_container "" "$1 -timecode 02:56:14.13 -r 30000/1001"; } + +lavf_container_timecode() +{ + lavf_container_timecode_nodrop "$@" + lavf_container_timecode_drop "$@" + lavf_container "" "$1" +} + lavf_image(){ t="${test#lavf-}" outdir="tests/data/images/$t" |