aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-12-13 17:59:39 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-19 17:54:10 +0100
commitae06111d7406e541ac232318bcf50f8510a36f38 (patch)
treea779ed1d7a4598af5f37dbfd02df46ea6cabb098 /tests
parent6cb7295abfed3e052a0249f187f8b011a68c5774 (diff)
downloadffmpeg-ae06111d7406e541ac232318bcf50f8510a36f38.tar.gz
fftools/ffmpeg_demux: implement -bsf for input
Previously bitstream filters could only be applied right before muxing, this allows to apply them right after demuxing.
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/ffmpeg.mak5
-rw-r--r--tests/ref/fate/ffmpeg-bsf-input18
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index 1bfd5c1b31..df955df4d0 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -256,3 +256,8 @@ FATE_SAMPLES_FFMPEG-$(call FRAMECRC, MPEGVIDEO, MPEG2VIDEO) += fate-ffmpeg-input
fate-ffmpeg-error-rate-fail: CMD = ffmpeg -i $(TARGET_SAMPLES)/mkv/h264_tta_undecodable.mkv -c:v copy -f null -; test $$? -eq 69
fate-ffmpeg-error-rate-pass: CMD = ffmpeg -i $(TARGET_SAMPLES)/mkv/h264_tta_undecodable.mkv -c:v copy -f null - -max_error_rate 1
FATE_SAMPLES_FFMPEG-$(call ENCDEC, PCM_S16LE TTA, NULL MATROSKA) += fate-ffmpeg-error-rate-fail fate-ffmpeg-error-rate-pass
+
+# test input -bsf
+# use -stream_loop, because it tests flushing bsfs
+fate-ffmpeg-bsf-input: CMD = framecrc -stream_loop 2 -bsf setts=PTS*2 -i $(TARGET_SAMPLES)/hevc/extradata-reload-multi-stsd.mov -c copy
+FATE_SAMPLES_FFMPEG-$(call FRAMECRC, MOV, , SETTS_BSF) += fate-ffmpeg-bsf-input
diff --git a/tests/ref/fate/ffmpeg-bsf-input b/tests/ref/fate/ffmpeg-bsf-input
new file mode 100644
index 0000000000..67dd57cf6d
--- /dev/null
+++ b/tests/ref/fate/ffmpeg-bsf-input
@@ -0,0 +1,18 @@
+#extradata 0: 110, 0xb4031479
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 128x128
+#sar 0: 1/1
+0, 0, 0, 1, 2108, 0x57c38f64
+0, 2, 2, 1, 31, 0xabe10d25, F=0x0
+0, 4, 4, 1, 1915, 0xd430347f, S=1, 109
+0, 6, 6, 1, 35, 0xc4ad0d4c, F=0x0
+0, 8, 8, 1, 2108, 0x57c38f64, S=1, 110
+0, 10, 10, 1, 31, 0xabe10d25, F=0x0
+0, 12, 12, 1, 1915, 0xd430347f, S=1, 109
+0, 14, 14, 1, 35, 0xc4ad0d4c, F=0x0
+0, 16, 16, 1, 2108, 0x57c38f64, S=1, 110
+0, 18, 18, 1, 31, 0xabe10d25, F=0x0
+0, 20, 20, 1, 1915, 0xd430347f, S=1, 109
+0, 22, 22, 1, 35, 0xc4ad0d4c, F=0x0