diff options
author | Philip Langdale <philipl@overt.org> | 2012-06-06 09:12:24 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2012-08-04 12:01:24 -0700 |
commit | 2daaf77698c9adc9b390e94b755d743c135a469f (patch) | |
tree | 4a00e7ccbb38ed633ee066810975f97928798bfb /tests | |
parent | 759901f817cb481c989af7bec48f24377ec25735 (diff) | |
download | ffmpeg-2daaf77698c9adc9b390e94b755d743c135a469f.tar.gz |
movtextenc: 3GPP TS 26.245 Timed Text Encoder.
This change introduces a basic encoder for 3GPP Timed Text subtitles,
also known as TX3G, Quicktime subtitles, or "movtext" in the existing
code.
This initial change doesn't attempt to write styling information,
and just writes the plain text of the subtitles. I intend to add
support for styles eventually, but it's challenging due to a lack
of existing players that support them.
Note that an additional change is required to the mov/mp4 muxer to
write empty subtitle packets to indicate subtitle duration.
Signed-off-by: Philip Langdale <philipl@overt.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fate/subtitles.mak | 3 | ||||
-rw-r--r-- | tests/ref/fate/sub-movtextenc | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak index 2f6e37fede..dc7a747f8c 100644 --- a/tests/fate/subtitles.mak +++ b/tests/fate/subtitles.mak @@ -7,6 +7,9 @@ fate-sub-microdvd: CMD = md5 -i $(SAMPLES)/sub/MicroDVD_capability_tester.sub -f FATE_SUBTITLES += fate-sub-movtext fate-sub-movtext: CMD = md5 -i $(SAMPLES)/sub/MovText_capability_tester.mp4 -f ass +FATE_SUBTITLES += fate-sub-movtextenc +fate-sub-movtextenc: CMD = md5 -i $(SAMPLES)/sub/MovText_capability_tester.mp4 -map 0 -scodec mov_text -f mp4 -movflags frag_keyframe+empty_moov + FATE_SUBTITLES += fate-sub-realtext fate-sub-realtext: CMD = md5 -i $(SAMPLES)/sub/RealText_capability_tester.rt -f ass diff --git a/tests/ref/fate/sub-movtextenc b/tests/ref/fate/sub-movtextenc new file mode 100644 index 0000000000..19672c82f9 --- /dev/null +++ b/tests/ref/fate/sub-movtextenc @@ -0,0 +1 @@ +ea719ca95c36d0da638282ccd017dace |