This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 7d7e4509dddd3e89b2dd3eeb4deb05bda6ea4e69 Author: Michael Niedermayer <[email protected]> AuthorDate: Mon Nov 30 05:31:46 2026 +0000 Commit: Romain Beauxis <[email protected]> CommitDate: Mon Nov 30 09:49:26 2026 -0600 fate/ogg-vorbis: test seeking to the start of a trimmed link Copy the first three packets of the existing tos.ogg FATE sample with a negative timestamp offset. Use the page-duration target to put the primer and the first overlap on the first audio page and the third packet on a second page. Check packet and decoded frame timestamps and sample counts before and after seeking back to zero, without needing a new sample. Assisted-by: Fairy --- tests/fate/ogg-vorbis.mak | 15 ++++++++++++++- tests/ref/fate/ogg-vorbis-start-trim-rewind | 10 ++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/tests/fate/ogg-vorbis.mak b/tests/fate/ogg-vorbis.mak index da94f3b563..c8da093ec1 100644 --- a/tests/fate/ogg-vorbis.mak +++ b/tests/fate/ogg-vorbis.mak @@ -46,6 +46,16 @@ fate-ogg-vorbis-ts-seek: CMD = ffprobe_demux -of default -bitexact -select_strea FATE_OGG_VORBIS_PROBE-$(call DEMDEC, OGG, VORBIS) += fate-ogg-vorbis-ts-seek-1.5s fate-ogg-vorbis-ts-seek-1.5s: CMD = ffprobe_demux -of default -bitexact -select_streams a -read_intervals 1.5%+\#5 -show_packets -show_entries packet=pts,dts,duration,flags -show_entries stream=codec_name,initial_padding $(TARGET_SAMPLES)/ogg-vorbis/tos.ogg +# Move the first overlap 100 samples before zero. A 10 ms page target +# closes the first audio page after that overlap, before the third packet. +FATE_OGG_VORBIS_REWIND-$(call DEMDEC, OGG, VORBIS, OGG_MUXER) += fate-ogg-vorbis-start-trim-rewind +fate-ogg-vorbis-start-trim-rewind: CMD = run_with_temp \ + "$(FFMPEG) -nostdin -v error -copyts -i $(TARGET_SAMPLES)/ogg-vorbis/tos.ogg \ + -map 0:a -c copy -frames:a 3 -fflags +bitexact -output_ts_offset -0.002268 \ + -page_duration 10000 -f ogg -y" \ + "ffprobe$(PROGSSUF)$(EXESUF) -v error -bitexact -threads 1 -read_intervals %+\#3,0%+\#3 \ + -show_entries packet=pts:frame=pts,nb_samples -of compact" ogg + # Regression test for files with granule=0 on audio pages # See https://trac.ffmpeg.org/ticket/3710 FATE_OGG_VORBIS_PROBE-$(call DEMDEC, OGG, VORBIS) += fate-ogg-vorbis-bear @@ -79,8 +89,11 @@ FATE_SAMPLES_FFMPEG += $(FATE_OGG_COPY_VORBIS-yes) FATE_SAMPLES_FFPROBE += $(FATE_OGG_VORBIS_PROBE-yes) +FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_OGG_VORBIS_REWIND-yes) + FATE_FFMPEG_FFPROBE += $(FATE_OGG_VORBIS_ENCODE_PROBE-yes) FATE_FFMPEG += $(FATE_OGG_VORBIS_CHAIN-yes) -fate-ogg-vorbis: $(FATE_OGG_VORBIS-yes) $(FATE_OGG_COPY_VORBIS-yes) $(FATE_OGG_VORBIS_PROBE-yes) $(FATE_OGG_VORBIS_ENCODE_PROBE-yes) $(FATE_OGG_VORBIS_CHAIN-yes) +fate-ogg-vorbis: $(FATE_OGG_VORBIS-yes) $(FATE_OGG_COPY_VORBIS-yes) $(FATE_OGG_VORBIS_PROBE-yes) $(FATE_OGG_VORBIS_ENCODE_PROBE-yes) $(FATE_OGG_VORBIS_CHAIN-yes) \ + $(FATE_OGG_VORBIS_REWIND-yes) diff --git a/tests/ref/fate/ogg-vorbis-start-trim-rewind b/tests/ref/fate/ogg-vorbis-start-trim-rewind new file mode 100644 index 0000000000..dcda42a556 --- /dev/null +++ b/tests/ref/fate/ogg-vorbis-start-trim-rewind @@ -0,0 +1,10 @@ +packet|pts=-128 +packet|pts=0 +frame|pts=0|nb_samples=576 +packet|pts=476 +frame|pts=476|nb_samples=1024 +packet|pts=-128 +packet|pts=0 +frame|pts=0|nb_samples=576 +packet|pts=476 +frame|pts=476|nb_samples=1024 -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
