mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fate/matroska: Add tests for muxing PGS into Matroska
They test the new pgs_frame_merge BSF. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
7f5b57766b
commit
f98b6cf543
@ -163,6 +163,14 @@ FATE_MATROSKA_FFMPEG_FFPROBE-$(call REMUX, MATROSKA, MPEGTS_DEMUXER AC3_DECODER)
|
||||
+= fate-matroska-mpegts-remux
|
||||
fate-matroska-mpegts-remux: CMD = transcode mpegts $(TARGET_SAMPLES)/mpegts/pmtchange.ts matroska "-map 0:2 -map 0:2 -c copy -disposition:a:1 -visual_impaired+hearing_impaired -default_mode infer" "-map 0 -c copy" "-show_entries stream_disposition:stream=index"
|
||||
|
||||
FATE_MATROSKA-$(call REMUX, MATROSKA, SUP_DEMUXER) += fate-matroska-pgs-remux
|
||||
fate-matroska-pgs-remux: CMD = transcode sup $(TARGET_SAMPLES)/sub/pgs_sub.sup matroska "-copyts -c:s copy" "-copyts -c:s copy"
|
||||
|
||||
# This test uses the setts bsf to derive the duration of every packet
|
||||
# except the last from the next packet's pts.
|
||||
FATE_MATROSKA-$(call REMUX, MATROSKA, SUP_DEMUXER PGS_FRAME_MERGE_BSF SETTS_BSF) += fate-matroska-pgs-remux-durations
|
||||
fate-matroska-pgs-remux-durations: CMD = transcode sup $(TARGET_SAMPLES)/sub/pgs_sub.sup matroska "-copyts -c:s copy -bsf pgs_frame_merge,setts=duration=if(gt(DURATION\,0)\,DURATION\,if(eq(PTS\,NOPTS)\,0\,if(eq(NEXT_PTS\,NOPTS)\,0\,NEXT_PTS-PTS))):pts=PTS" "-copyts -c:s copy"
|
||||
|
||||
FATE_MATROSKA_FFPROBE-$(call ALLYES, MATROSKA_DEMUXER) += fate-matroska-spherical-mono
|
||||
fate-matroska-spherical-mono: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_entries stream_side_data_list -select_streams v -v 0 $(TARGET_SAMPLES)/mkv/spherical.mkv
|
||||
|
||||
|
7
tests/ref/fate/matroska-pgs-remux
Normal file
7
tests/ref/fate/matroska-pgs-remux
Normal file
@ -0,0 +1,7 @@
|
||||
9aa538611b5f3bd0455b2afd3dafe08d *tests/data/fate/matroska-pgs-remux.matroska
|
||||
49751 tests/data/fate/matroska-pgs-remux.matroska
|
||||
#tb 0: 1/1000
|
||||
#media_type 0: subtitle
|
||||
#codec_id 0: hdmv_pgs_subtitle
|
||||
0, 67, 67, 0, 26127, 0x02389441
|
||||
0, 401, 401, 0, 23155, 0x1de74712
|
7
tests/ref/fate/matroska-pgs-remux-durations
Normal file
7
tests/ref/fate/matroska-pgs-remux-durations
Normal file
@ -0,0 +1,7 @@
|
||||
20fa9d515b08718c42d3e3a8a4a8bf5d *tests/data/fate/matroska-pgs-remux-durations.matroska
|
||||
49763 tests/data/fate/matroska-pgs-remux-durations.matroska
|
||||
#tb 0: 1/1000
|
||||
#media_type 0: subtitle
|
||||
#codec_id 0: hdmv_pgs_subtitle
|
||||
0, 67, 67, 334, 26127, 0x02389441
|
||||
0, 401, 401, 0, 23155, 0x1de74712
|
Loading…
Reference in New Issue
Block a user