[FFmpeg-devel] [PATCH] fate: add a setts bsf test

James Almer jamrial at gmail.com
Thu Mar 17 04:45:46 EET 2022


Signed-off-by: James Almer <jamrial at gmail.com>
---
 tests/fate/ffmpeg.mak           |  2 ++
 tests/ref/fate/ffmpeg-setts-bsf | 46 +++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 tests/ref/fate/ffmpeg-setts-bsf

diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index 4c884e458c..4dde880f67 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -216,6 +216,8 @@ fate-ffmpeg-bsf-remove-e: $(SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg
 fate-ffmpeg-bsf-remove-e: CMD = transcode "mpeg" $(TARGET_SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg\
                           avi "-vbsf remove_extra=e" "-codec copy"
 
+FATE_SAMPLES_FFMPEG-$(call ALLYES, APNG_DEMUXER SETTS_BSF) += fate-ffmpeg-setts-bsf
+fate-ffmpeg-setts-bsf: CMD = framecrc -i $(TARGET_SAMPLES)/apng/clock.png -c:v copy -bsf:v "setts=duration=if(eq(NEXT_PTS\,NOPTS)\,PREV_OUTDURATION\,(NEXT_PTS-PTS)/2):ts=PTS/2" -fflags +bitexact
 
 FATE_SAMPLES_FFMPEG-yes += $(FATE_STREAMCOPY-yes)
 
diff --git a/tests/ref/fate/ffmpeg-setts-bsf b/tests/ref/fate/ffmpeg-setts-bsf
new file mode 100644
index 0000000000..884e45d6ec
--- /dev/null
+++ b/tests/ref/fate/ffmpeg-setts-bsf
@@ -0,0 +1,46 @@
+#extradata 0:      794, 0x6c0b3aa4
+#tb 0: 1/100000
+#media_type 0: video
+#codec_id 0: apng
+#dimensions 0: 150x150
+#sar 0: 0/1
+0,          0,          0,     2000,     2053, 0xe7cffa8e
+0,       2000,       2000,     2000,      596, 0xc9020463, F=0x0
+0,       4000,       4000,     2000,      593, 0x20de0bf4, F=0x0
+0,       6000,       6000,     2000,      590, 0x03940ac4, F=0x0
+0,       8000,       8000,     2000,      612, 0xae18161f, F=0x0
+0,      10000,      10000,     2000,      431, 0xceeac2db, F=0x0
+0,      12000,      12000,     2000,      531, 0x7ff9ebd0, F=0x0
+0,      14000,      14000,     2000,      484, 0x1e1de38a, F=0x0
+0,      16000,      16000,     2000,      476, 0x3869d31a, F=0x0
+0,      18000,      18000,     2000,      482, 0x9b5be0c9, F=0x0
+0,      20000,      20000,     2000,      448, 0x09e7c9ed, F=0x0
+0,      22000,      22000,     2000,      493, 0x1460e707, F=0x0
+0,      24000,      24000,     2000,      514, 0x3a99e6f3, F=0x0
+0,      26000,      26000,     2000,      590, 0x68751289, F=0x0
+0,      28000,      28000,     2000,      552, 0x58def4d3, F=0x0
+0,      30000,      30000,     2000,      453, 0x643cbf39, F=0x0
+0,      32000,      32000,     2000,      586, 0x5a4b0a3f, F=0x0
+0,      34000,      34000,     2000,      563, 0x5fb5fb41, F=0x0
+0,      36000,      36000,     2000,      627, 0xed7d1ff1, F=0x0
+0,      38000,      38000,     2000,      591, 0xd4012076, F=0x0
+0,      40000,      40000,     2000,      440, 0xd210b267, F=0x0
+0,      42000,      42000,     2000,      590, 0xec410e2e, F=0x0
+0,      44000,      44000,     2000,      569, 0x782d0227, F=0x0
+0,      46000,      46000,     2000,      536, 0x5305ff99, F=0x0
+0,      48000,      48000,     2000,      581, 0x2933f6c7, F=0x0
+0,      50000,      50000,     2000,      475, 0xa9a5ce1c, F=0x0
+0,      52000,      52000,     2000,      532, 0x5b9cf7bb, F=0x0
+0,      54000,      54000,     2000,      532, 0x3408e7e9, F=0x0
+0,      56000,      56000,     2000,      551, 0x1be00219, F=0x0
+0,      58000,      58000,     2000,      456, 0x55b1cc1b, F=0x0
+0,      60000,      60000,     2000,      416, 0x794abab6, F=0x0
+0,      62000,      62000,     2000,      525, 0x500eefad, F=0x0
+0,      64000,      64000,     2000,      531, 0x7273f14b, F=0x0
+0,      66000,      66000,     2000,      568, 0x4837fdc9, F=0x0
+0,      68000,      68000,     2000,      577, 0xed530268, F=0x0
+0,      70000,      70000,     2000,      518, 0xc9c1e644, F=0x0
+0,      72000,      72000,     2000,      572, 0x81840ac9, F=0x0
+0,      74000,      74000,     2000,      494, 0x678be2ae, F=0x0
+0,      76000,      76000,     2000,      560, 0x0174f8b9, F=0x0
+0,      78000,      78000,     2000,      578, 0xef800564, F=0x0
-- 
2.35.1



More information about the ffmpeg-devel mailing list