[FFmpeg-cvslog] fate/ffmpeg: add a test for interleaving video+subs

Anton Khirnov git at videolan.org
Sat Jul 23 13:07:32 EEST 2022


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jun  8 12:42:39 2022 +0200| [d55b8dbcff41cac22f593c461576a9c7f6d3f270] | committer: Anton Khirnov

fate/ffmpeg: add a test for interleaving video+subs

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d55b8dbcff41cac22f593c461576a9c7f6d3f270
---

 tests/fate/ffmpeg.mak       | 8 ++++++++
 tests/ref/fate/shortest-sub | 4 ++++
 2 files changed, 12 insertions(+)

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



More information about the ffmpeg-cvslog mailing list