aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-03-14 14:36:24 -0300
committerJames Almer <jamrial@gmail.com>2019-03-14 14:36:24 -0300
commitfda424b300c1a0b991296aa585691609d01196bd (patch)
tree2fad779896d4f2673e7c8e15aca76ee3f4b340b9 /tests/fate-run.sh
parentace96d2e693d804a0ed16aebc1b1027cfff2c527 (diff)
parent618d02c1fa9e74d490cace64a7d15762656b521c (diff)
downloadffmpeg-fda424b300c1a0b991296aa585691609d01196bd.tar.gz
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-xtests/fate-run.sh20
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"