mkvtoolnix/tests/test-538teletext_many_packets_same_content.rb
Moritz Bunkus 6e2a738e82 teletext subtitles: collapse multiple entries with same content into single entry
The sample file in question contains many teletext packets that show the
same content. The old code would convert those to separate Matroska
frames.

Additionally each frame's duration was calculated from the wrong
timestamp. A teletext page can be drawn over the space of several
packets with different timestamps. Therefore the timestamp of the first
packet rendering a line of a teletext page must be used as the start
timestamp, and the timestamp of the first packet rendering a line of the
following teletext page as its end.

The old code was using a wrong packet for the end, though: the timestamp
of packet containing the end-of-page block.

Fixes #1623.
2016-03-17 12:54:27 +01:00

6 lines
253 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_538teletext_many_packets_same_content
describe "mkvmerge / MPEG TS with teletext subtitles with many packets having the same content"
test_merge "data/ts/teletext_subs_many_packets_same_content.ts", args: "--no-audio --no-video"