diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-06-08 12:42:39 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-23 11:53:19 +0200 |
commit | d55b8dbcff41cac22f593c461576a9c7f6d3f270 (patch) | |
tree | e969895453e20081efd76874f9faae7bfd6b6339 | |
parent | f52d045e341919798f41ce7eee083a43f45c1e1f (diff) | |
download | ffmpeg-d55b8dbcff41cac22f593c461576a9c7f6d3f270.tar.gz |
fate/ffmpeg: add a test for interleaving video+subs
-rw-r--r-- | tests/fate/ffmpeg.mak | 8 | ||||
-rw-r--r-- | tests/ref/fate/shortest-sub | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak index 94f50423be..154af2fac8 100644 --- a/tests/fate/ffmpeg.mak +++ b/tests/fate/ffmpeg.mak @@ -99,6 +99,14 @@ FATE_SAMPLES_FFMPEG-$(call FILTERDEMDEC, AMIX ARESAMPLE SINE, RAWVIDEO, \ fate-shortest: tests/data/vsynth_lena.yuv fate-shortest: CMD = framecrc -auto_conversion_filters -f lavfi -i "sine=3000:d=10" -f lavfi -i "sine=1000:d=1" -sws_flags +accurate_rnd+bitexact -fflags +bitexact -flags +bitexact -idct simple -f rawvideo -s 352x288 -pix_fmt yuv420p -i $(TARGET_PATH)/tests/data/vsynth_lena.yuv -filter_complex "[0:a:0][1:a:0]amix=inputs=2[audio]" -map 2:v:0 -map "[audio]" -sws_flags +accurate_rnd+bitexact -fflags +bitexact -flags +bitexact -idct simple -dct fastint -qscale 10 -threads 1 -c:v mpeg4 -c:a ac3_fixed -shortest +# test interleaving video with a sparse subtitle stream +FATE_SAMPLES_FFMPEG-$(call ALLYES, COLOR_FILTER, VOBSUB_DEMUXER, MATROSKA_DEMUXER,, \ + RAWVIDEO_ENCODER, MATROSKA_MUXER, FRAMECRC_MUXER) += fate-shortest-sub +fate-shortest-sub: CMD = enc_dec \ + vobsub $(TARGET_SAMPLES)/sub/vobsub.idx matroska \ + "-filter_complex 'color=s=1x1:rate=1:duration=400' -pix_fmt rgb24 -allow_raw_vfw 1 -c:s copy -c:v rawvideo" \ + framecrc "-map 0 -c copy -shortest" + # Basic test for fix_sub_duration, which calculates duration based on the # following subtitle's pts. FATE_SAMPLES_FFMPEG-$(call FILTERDEMDECENCMUX, MOVIE, MPEGVIDEO, \ diff --git a/tests/ref/fate/shortest-sub b/tests/ref/fate/shortest-sub new file mode 100644 index 0000000000..be0922fd56 --- /dev/null +++ b/tests/ref/fate/shortest-sub @@ -0,0 +1,4 @@ +145b9b48d56f9c966bf41657f7569954 *tests/data/fate/shortest-sub.matroska +139232 tests/data/fate/shortest-sub.matroska +d71f5d359ef788ea689415bc1e4a90df *tests/data/fate/shortest-sub.out.framecrc +stddev:11541.12 PSNR: 15.08 MAXDIFF:22854 bytes: 2591/ 26055 |