[PATCH v3 2/2] fate: add mpjpeg X-Timestamp and X-Framerate demux test

Vladimir Sobolev via ffmpeg-devel <[email protected]>
Newsgroups gmane.comp.video.ffmpeg.devel
Message-ID <[email protected]>
Add a minimal multipart MJPEG sample with X-Timestamp and X-Framerate
headers and an ffprobe_demux FATE test to verify packet timestamps and
stream framerate parsing.
---
 tests/fate/demux.mak                    |   3 +++
 tests/mpjpeg-x-timestamp.mjpeg          | Bin 0 -> 613 bytes
 tests/ref/fate/mpjpeg-x-timestamp-demux |   4 ++++
 3 files changed, 7 insertions(+)
 create mode 100644 tests/mpjpeg-x-timestamp.mjpeg
 create mode 100644 tests/ref/fate/mpjpeg-x-timestamp-demux

diff --git a/tests/fate/demux.mak b/tests/fate/demux.mak
index 4cdc1a583f..4da5dafe99 100644
--- a/tests/fate/demux.mak
+++ b/tests/fate/demux.mak
@@ -175,6 +175,9 @@ fate-ts-demux: CMD = ffprobe_demux $(TARGET_SAMPLES)/ac3/mp3ac325-4864-small.ts
 FATE_FFPROBE_DEMUX-$(CONFIG_MPEGTS_DEMUXER) += fate-ts-timed-id3-demux
 fate-ts-timed-id3-demux: CMD = ffprobe_demux $(TARGET_SAMPLES)/mpegts/id3.ts
 
+FATE_FFPROBE_DEMUX-$(CONFIG_MPJPEG_DEMUXER) += fate-mpjpeg-x-timestamp-demux
+fate-mpjpeg-x-timestamp-demux: CMD = ffprobe_demux $(SRC_PATH)/tests/mpjpeg-x-timestamp.mjpeg
+
 tests/data/id3.ts: TAG = GEN
 tests/data/id3.ts: $(SAMPLES)/mpegts/id3.ts | tests/data
 	$(Q)cp $< $@
diff --git a/tests/mpjpeg-x-timestamp.mjpeg b/tests/mpjpeg-x-timestamp.mjpeg
new file mode 100644
index 0000000000000000000000000000000000000000..df96b253bc63ee6a695ed9503427dadd5846021d
GIT binary patch
literal 613
zcmdPZ<>hkD&nrpIE71+9EJ(Fd$jnVlPu0&VNKNPEiqH+o%uOvWNz5&<QZUpr0ExI2
zCFZ6UC6)k{8XM>vBDDLY=B1ZpSSc78neuY+a{a&Y{{e%5mz$>>10xdy10xVJ{Qt)w
z;FDOEY-XruXsKstV94<QHiI(*2MY+Wf&m*cU}tCN;NSp~Y;0f_2PY>dPyk4AadGkR
zaC7tV@d*lw{6E6r!@vkM9|f>6q6@LH3!p1v5X2Dqe}F-d1LR(2MkNL&K?Y_)hX1!1
ic$gW193b1Cp_?JFzW)DBUM^iy0uLA{uz((EAq4>OG+|8u

literal 0
HcmV?d00001

diff --git a/tests/ref/fate/mpjpeg-x-timestamp-demux b/tests/ref/fate/mpjpeg-x-timestamp-demux
new file mode 100644
index 0000000000..efd559ae6d
--- /dev/null
+++ b/tests/ref/fate/mpjpeg-x-timestamp-demux
@@ -0,0 +1,4 @@
+packet|codec_type=video|stream_index=0|pts=1000000|pts_time=1.000000|dts=1000000|dts_time=1.000000|duration=33333|duration_time=0.033333|size=225|pos=90|flags=K__|data_hash=CRC32:3f320fa7
+packet|codec_type=video|stream_index=0|pts=1500000|pts_time=1.500000|dts=1500000|dts_time=1.500000|duration=33333|duration_time=0.033333|size=225|pos=388|flags=K__|data_hash=CRC32:3f320fa7
+stream|index=0|codec_name=mjpeg|profile=192|codec_type=video|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|width=1|height=1|coded_width=1|coded_height=1|has_b_frames=0|sample_aspect_ratio=1:1|display_aspect_ratio=1:1|pix_fmt=yuvj420p|level=-99|color_range=pc|color_space=bt470bg|color_transfer=unknown|color_primaries=unknown|chroma_location=center|field_order=unknown|id=N/A|r_frame_rate=1000000/1|avg_frame_rate=30/1|time_base=1/1000000|start_pts=1000000|start_time=1.000000|duration_ts=N/A|duration=N/A|bit_rate=N/A|max_bit_rate=N/A|bits_per_raw_sample=8|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=2|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|dispositi
 on:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:me
 tadata=0|disposition:dependent=0|disposition:still_image=0|disposition:multilayer=0
+format|filename=mpjpeg-x-timestamp.mjpeg|nb_streams=1|nb_programs=0|nb_stream_groups=0|format_name=mpjpeg|start_time=1.000000|duration=N/A|size=613|bit_rate=N/A|probe_score=100
-- 
2.50.1 (Apple Git-155)

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.