[FFmpeg-devel,v2,2/2] tests/fate: Add fate test for timestamp interpolation

Submitted by Andriy Gelman on May 14, 2019, 9:54 p.m.

Details

Message ID 20190514215422.11996-2-andriy.gelman@gmail.com
State New
Headers show

Commit Message

Andriy Gelman May 14, 2019, 9:54 p.m.
From: Andriy Gelman <andriy.gelman@gmail.com>

This test verifies that missing timestamps from mpegts are interpolated
for a HEVC stream.
---
 tests/fate/mpegts.mak                  |   7 ++
 tests/ref/fate/mpegts-probe-interptime | 154 +++++++++++++++++++++++++
 2 files changed, 161 insertions(+)
 create mode 100644 tests/ref/fate/mpegts-probe-interptime

Patch hide | download patch | download mbox

diff --git a/tests/fate/mpegts.mak b/tests/fate/mpegts.mak
index bbcbfc47b2..71e40ef26f 100644
--- a/tests/fate/mpegts.mak
+++ b/tests/fate/mpegts.mak
@@ -5,6 +5,10 @@  PROBE_CODEC_NAME_COMMAND = \
     ffprobe$(PROGSSUF)$(EXESUF) -show_entries stream=codec_name \
     -print_format default -bitexact -v 0
 
+PROBE_INTERP_TIME_COMMAND = \
+    ffprobe$(PROGSSUF)$(EXESUF) -show_entries packet=pts,dts \
+    -print_format default -bitexact -v 0
+
 FATE_MPEGTS_PROBE-$(call DEMDEC, MPEGTS, HEVC, AAC_LATM) += fate-mpegts-probe-latm
 fate-mpegts-probe-latm: SRC = $(TARGET_SAMPLES)/mpegts/loewe.ts
 fate-mpegts-probe-latm: CMD = run $(PROBE_CODEC_NAME_COMMAND) -i "$(SRC)"
@@ -19,6 +23,9 @@  FATE_MPEGTS_PROBE-$(call DEMDEC, MPEGTS) += fate-mpegts-probe-pmt-merge
 fate-mpegts-probe-pmt-merge: SRC = $(TARGET_SAMPLES)/mpegts/pmtchange.ts
 fate-mpegts-probe-pmt-merge: CMD = run $(PROBE_CODEC_NAME_COMMAND) -merge_pmt_versions 1 -i "$(SRC)"
 
+FATE_MPEGTS_PROBE-$(call DEMDEC, MPEGTS, HEVC) += fate-mpegts-probe-interptime
+fate-mpegts-probe-interptime: SRC = $(TARGET_SAMPLES)/mpegts/foreman.ts
+fate-mpegts-probe-interptime: CMD = run $(PROBE_INTERP_TIME_COMMAND) -i "$(SRC)"
 
 FATE_SAMPLES_FFPROBE += $(FATE_MPEGTS_PROBE-yes)
 
diff --git a/tests/ref/fate/mpegts-probe-interptime b/tests/ref/fate/mpegts-probe-interptime
new file mode 100644
index 0000000000..1d83f8d4f4
--- /dev/null
+++ b/tests/ref/fate/mpegts-probe-interptime
@@ -0,0 +1,154 @@ 
+[PACKET]
+pts=2968975817
+dts=2968975817
+[SIDE_DATA]
+[/SIDE_DATA]
+[/PACKET]
+[PACKET]
+pts=2968987078
+dts=2968987078
+[/PACKET]
+[PACKET]
+pts=2968998328
+dts=2968998328
+[/PACKET]
+[PACKET]
+pts=2969009578
+dts=2969009578
+[/PACKET]
+[PACKET]
+pts=2969020828
+dts=2969020828
+[/PACKET]
+[PACKET]
+pts=2969032078
+dts=2969032078
+[/PACKET]
+[PACKET]
+pts=2969043328
+dts=2969043328
+[SIDE_DATA]
+[/SIDE_DATA]
+[/PACKET]
+[PACKET]
+pts=2969054411
+dts=2969054411
+[/PACKET]
+[PACKET]
+pts=2969065661
+dts=2969065661
+[/PACKET]
+[PACKET]
+pts=2969076911
+dts=2969076911
+[/PACKET]
+[PACKET]
+pts=2969088161
+dts=2969088161
+[SIDE_DATA]
+[/SIDE_DATA]
+[/PACKET]
+[PACKET]
+pts=2969102305
+dts=2969102305
+[/PACKET]
+[PACKET]
+pts=2969113555
+dts=2969113555
+[/PACKET]
+[PACKET]
+pts=2969124805
+dts=2969124805
+[/PACKET]
+[PACKET]
+pts=2969136055
+dts=2969136055
+[/PACKET]
+[PACKET]
+pts=2969147305
+dts=2969147305
+[SIDE_DATA]
+[/SIDE_DATA]
+[/PACKET]
+[PACKET]
+pts=2969155644
+dts=2969155644
+[/PACKET]
+[PACKET]
+pts=2969166894
+dts=2969166894
+[/PACKET]
+[PACKET]
+pts=2969178144
+dts=2969178144
+[/PACKET]
+[PACKET]
+pts=2969189394
+dts=2969189394
+[SIDE_DATA]
+[/SIDE_DATA]
+[/PACKET]
+[PACKET]
+pts=2969200455
+dts=2969200455
+[/PACKET]
+[PACKET]
+pts=2969211705
+dts=2969211705
+[/PACKET]
+[PACKET]
+pts=2969222955
+dts=2969222955
+[/PACKET]
+[PACKET]
+pts=2969234205
+dts=2969234205
+[SIDE_DATA]
+[/SIDE_DATA]
+[/PACKET]
+[PACKET]
+pts=2969245390
+dts=2969245390
+[/PACKET]
+[PACKET]
+pts=2969256640
+dts=2969256640
+[/PACKET]
+[PACKET]
+pts=2969267890
+dts=2969267890
+[/PACKET]
+[PACKET]
+pts=2969279140
+dts=2969279140
+[/PACKET]
+[PACKET]
+pts=2969290390
+dts=2969290390
+[/PACKET]
+[PACKET]
+pts=2969301640
+dts=2969301640
+[SIDE_DATA]
+[/SIDE_DATA]
+[/PACKET]
+[PACKET]
+pts=2969312863
+dts=2969312863
+[/PACKET]
+[PACKET]
+pts=2969324113
+dts=2969324113
+[/PACKET]
+[PACKET]
+pts=2969335363
+dts=2969335363
+[/PACKET]
+[PACKET]
+pts=2969346613
+dts=2969346613
+[/PACKET]
+[PACKET]
+pts=2969357863
+dts=2969357863
+[/PACKET]