From 8022bb1d9271f21167ecb4efc39ac17ca1612a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 11 Oct 2014 13:55:55 +0200 Subject: [PATCH] fate: make subtitles tests output to stdout instead of md5 This makes tracking subtitles changes simpler. --- tests/fate-run.sh | 6 + tests/fate/subtitles.mak | 38 +++---- tests/ref/fate/sub-aqtitle | 45 +++++++- tests/ref/fate/sub-charenc | 62 ++++++++++- tests/ref/fate/sub-jacosub | 23 +++- tests/ref/fate/sub-microdvd | 23 +++- tests/ref/fate/sub-microdvd-remux | Bin 33 -> 436 bytes tests/ref/fate/sub-movtext | 15 ++- tests/ref/fate/sub-mpl2 | 16 ++- tests/ref/fate/sub-mpsub | 33 +++++- tests/ref/fate/sub-mpsub-frames | 14 ++- tests/ref/fate/sub-pjs | 15 ++- tests/ref/fate/sub-realtext | 17 ++- tests/ref/fate/sub-sami | 21 +++- tests/ref/fate/sub-srt | 49 +++++++- tests/ref/fate/sub-subripenc | 15 ++- tests/ref/fate/sub-subviewer | 15 ++- tests/ref/fate/sub-subviewer1 | 22 +++- tests/ref/fate/sub-vplayer | 15 ++- tests/ref/fate/sub-webvtt | 27 ++++- tests/ref/fate/sub-webvttenc | 178 +++++++++++++++++++++++++++++- 21 files changed, 612 insertions(+), 37 deletions(-) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index b994abab27..224da8b090 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -114,6 +114,12 @@ pcm(){ ffmpeg "$@" -vn -f s16le - } +fmtstdout(){ + fmt=$1 + shift 1 + ffmpeg "$@" -f $fmt - +} + enc_dec_pcm(){ out_fmt=$1 dec_fmt=$2 diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak index 0c7188272f..01347524db 100644 --- a/tests/fate/subtitles.mak +++ b/tests/fate/subtitles.mak @@ -1,62 +1,62 @@ FATE_SUBTITLES_ASS-$(call ALLYES, AQTITLE_DEMUXER TEXT_DECODER ICONV) += fate-sub-aqtitle -fate-sub-aqtitle: CMD = md5 -sub_charenc windows-1250 -i $(TARGET_SAMPLES)/sub/AQTitle_capability_tester.aqt -f ass +fate-sub-aqtitle: CMD = fmtstdout ass -sub_charenc windows-1250 -i $(TARGET_SAMPLES)/sub/AQTitle_capability_tester.aqt FATE_SUBTITLES_ASS-$(call DEMDEC, JACOSUB, JACOSUB) += fate-sub-jacosub -fate-sub-jacosub: CMD = md5 -i $(TARGET_SAMPLES)/sub/JACOsub_capability_tester.jss -f ass +fate-sub-jacosub: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/JACOsub_capability_tester.jss FATE_SUBTITLES_ASS-$(call DEMDEC, MICRODVD, MICRODVD) += fate-sub-microdvd -fate-sub-microdvd: CMD = md5 -i $(TARGET_SAMPLES)/sub/MicroDVD_capability_tester.sub -f ass +fate-sub-microdvd: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MicroDVD_capability_tester.sub FATE_SUBTITLES-$(call ALLYES, MICRODVD_DEMUXER MICRODVD_MUXER) += fate-sub-microdvd-remux -fate-sub-microdvd-remux: CMD = md5 -i $(TARGET_SAMPLES)/sub/MicroDVD_capability_tester.sub -c:s copy -f microdvd +fate-sub-microdvd-remux: CMD = fmtstdout microdvd -i $(TARGET_SAMPLES)/sub/MicroDVD_capability_tester.sub -c:s copy FATE_SUBTITLES_ASS-$(call DEMDEC, MOV, MOVTEXT) += fate-sub-movtext -fate-sub-movtext: CMD = md5 -i $(TARGET_SAMPLES)/sub/MovText_capability_tester.mp4 -f ass +fate-sub-movtext: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MovText_capability_tester.mp4 FATE_SUBTITLES-$(call ENCDEC, MOVTEXT, MOV) += fate-sub-movtextenc fate-sub-movtextenc: CMD = md5 -i $(TARGET_SAMPLES)/sub/MovText_capability_tester.mp4 -map 0 -scodec mov_text -f mp4 -flags +bitexact -movflags frag_keyframe+empty_moov FATE_SUBTITLES_ASS-$(call DEMDEC, MPL2, MPL2) += fate-sub-mpl2 -fate-sub-mpl2: CMD = md5 -i $(TARGET_SAMPLES)/sub/MPL2_capability_tester.txt -f ass +fate-sub-mpl2: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MPL2_capability_tester.txt FATE_SUBTITLES_ASS-$(call DEMDEC, MPSUB, TEXT) += fate-sub-mpsub -fate-sub-mpsub: CMD = md5 -i $(TARGET_SAMPLES)/sub/MPSub_capability_tester.sub -f ass +fate-sub-mpsub: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MPSub_capability_tester.sub FATE_SUBTITLES_ASS-$(call DEMDEC, MPSUB, TEXT) += fate-sub-mpsub-frames -fate-sub-mpsub-frames: CMD = md5 -i $(TARGET_SAMPLES)/sub/MPSub_capability_tester_frames.sub -f ass +fate-sub-mpsub-frames: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MPSub_capability_tester_frames.sub FATE_SUBTITLES_ASS-$(call DEMDEC, PJS, PJS) += fate-sub-pjs -fate-sub-pjs: CMD = md5 -i $(TARGET_SAMPLES)/sub/PJS_capability_tester.pjs -f ass +fate-sub-pjs: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/PJS_capability_tester.pjs FATE_SUBTITLES_ASS-$(call DEMDEC, REALTEXT, REALTEXT) += fate-sub-realtext -fate-sub-realtext: CMD = md5 -i $(TARGET_SAMPLES)/sub/RealText_capability_tester.rt -f ass +fate-sub-realtext: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/RealText_capability_tester.rt FATE_SUBTITLES_ASS-$(call DEMDEC, SAMI, SAMI) += fate-sub-sami -fate-sub-sami: CMD = md5 -i $(TARGET_SAMPLES)/sub/SAMI_capability_tester.smi -f ass +fate-sub-sami: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/SAMI_capability_tester.smi FATE_SUBTITLES_ASS-$(call DEMDEC, SRT, SUBRIP) += fate-sub-srt -fate-sub-srt: CMD = md5 -i $(TARGET_SAMPLES)/sub/SubRip_capability_tester.srt -f ass +fate-sub-srt: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/SubRip_capability_tester.srt FATE_SUBTITLES-$(call ALLYES, MOV_DEMUXER MOVTEXT_DECODER SUBRIP_ENCODER) += fate-sub-subripenc -fate-sub-subripenc: CMD = md5 -i $(TARGET_SAMPLES)/sub/MovText_capability_tester.mp4 -scodec subrip -f srt +fate-sub-subripenc: CMD = fmtstdout srt -i $(TARGET_SAMPLES)/sub/MovText_capability_tester.mp4 -scodec subrip FATE_SUBTITLES_ASS-$(call ALLYES, SUBVIEWER1_DEMUXER SUBVIEWER1_DECODER ICONV) += fate-sub-subviewer1 -fate-sub-subviewer1: CMD = md5 -sub_charenc windows-1250 -i $(TARGET_SAMPLES)/sub/SubViewer1_capability_tester.sub -f ass +fate-sub-subviewer1: CMD = fmtstdout ass -sub_charenc windows-1250 -i $(TARGET_SAMPLES)/sub/SubViewer1_capability_tester.sub FATE_SUBTITLES_ASS-$(call DEMDEC, SUBVIEWER, SUBVIEWER) += fate-sub-subviewer -fate-sub-subviewer: CMD = md5 -i $(TARGET_SAMPLES)/sub/SubViewer_capability_tester.sub -f ass +fate-sub-subviewer: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/SubViewer_capability_tester.sub FATE_SUBTITLES_ASS-$(call DEMDEC, VPLAYER, VPLAYER) += fate-sub-vplayer -fate-sub-vplayer: CMD = md5 -i $(TARGET_SAMPLES)/sub/VPlayer_capability_tester.txt -f ass +fate-sub-vplayer: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/VPlayer_capability_tester.txt FATE_SUBTITLES_ASS-$(call DEMDEC, WEBVTT, WEBVTT) += fate-sub-webvtt -fate-sub-webvtt: CMD = md5 -i $(TARGET_SAMPLES)/sub/WebVTT_capability_tester.vtt -f ass +fate-sub-webvtt: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/WebVTT_capability_tester.vtt FATE_SUBTITLES_ASS-$(call ENCMUX, WEBVTT, WEBVTT) += fate-sub-webvttenc -fate-sub-webvttenc: CMD = md5 -i $(TARGET_SAMPLES)/sub/SubRip_capability_tester.srt -f webvtt +fate-sub-webvttenc: CMD = fmtstdout webvtt -i $(TARGET_SAMPLES)/sub/SubRip_capability_tester.srt FATE_SUBTITLES_ASS-$(call ALLYES, MICRODVD_DEMUXER MICRODVD_DECODER ICONV) += fate-sub-charenc -fate-sub-charenc: CMD = md5 -sub_charenc cp1251 -i $(TARGET_SAMPLES)/sub/cp1251-subtitles.sub -f ass +fate-sub-charenc: CMD = fmtstdout ass -sub_charenc cp1251 -i $(TARGET_SAMPLES)/sub/cp1251-subtitles.sub FATE_SUBTITLES-$(call ENCMUX, ASS, ASS) += $(FATE_SUBTITLES_ASS-yes) FATE_SUBTITLES += $(FATE_SUBTITLES-yes) diff --git a/tests/ref/fate/sub-aqtitle b/tests/ref/fate/sub-aqtitle index d87194bbd9..16efca78fd 100644 --- a/tests/ref/fate/sub-aqtitle +++ b/tests/ref/fate/sub-aqtitle @@ -1 +1,44 @@ -47834efc39225264e705dfb885f57df2 +[Script Info] +ScriptType: v4.00+ +PlayResX: 384 +PlayResY: 288 + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding +Style: Default,Arial,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,1,1,0,2,10,10,10,0,0 + +[Events] +Format: Layer, Start, End, Style, Text +Dialogue: 0,0:03:29.92,0:03:31.28,Default,Dougu? +Dialogue: 0,0:03:33.36,0:03:35.76,Default,Zlato, jseš v pořádku? +Dialogue: 0,0:03:37.72,0:03:39.12,Default,Měl jsi sny. +Dialogue: 0,0:03:41.44,0:03:43.32,Default,Byly o Marsu? +Dialogue: 0,0:03:48.92,0:03:50.52,Default,Je to lepší? +Dialogue: 0,0:03:53.12,0:03:54.72,Default,Chudinko moje. +Dialogue: 0,0:03:55.76,0:03:58.08,Default,Začíná to být\Nposedlost. +Dialogue: 0,0:04:05.92,0:04:07.16,Default,Byla tam i ona? +Dialogue: 0,0:04:09.12,0:04:10.48,Default,Kdo? +Dialogue: 0,0:04:12.44,0:04:15.16,Default,Ta, o které jsi mi vyprávěl.\NTa bruneta. +Dialogue: 0,0:04:16.32,0:04:17.52,Default,Lori. +Dialogue: 0,0:04:20.32,0:04:23.16,Default,Nemůžu uvěřit\Nže žárlíš na sen. +Dialogue: 0,0:04:23.84,0:04:26.60,Default,- Kdo je ona?\N- Nikdo. +Dialogue: 0,0:04:26.60,0:04:28.80,Default,"Nikdo"? Jak se jmenuje? +Dialogue: 0,0:04:28.80,0:04:30.24,Default,Nevím. +Dialogue: 0,0:04:31.52,0:04:33.20,Default,- Pověz!\N- Nevím! +Dialogue: 0,0:04:33.20,0:04:35.48,Default,Radši bys mi to měl říct! +Dialogue: 0,0:04:35.48,0:04:39.16,Default,To není legrace Dougu.\NZdá se ti o ní každou noc. +Dialogue: 0,0:04:39.16,0:04:41.84,Default,Ale vždy se ráno probudím. +Dialogue: 0,0:04:41.84,0:04:43.28,Default,Nech mě být! +Dialogue: 0,0:04:45.72,0:04:47.76,Default,No tak, zlato. +Dialogue: 0,0:04:47.76,0:04:50.72,Default,Ty víš, že jsi dívkou\Nmých snů. +Dialogue: 0,0:04:50.72,0:04:52.40,Default,Myslíš to vážně? +Dialogue: 0,0:04:53.48,0:04:55.32,Default,To víš že ano. +Dialogue: 0,0:05:04.40,0:05:07.20,Default,Dám ti něco\No čem budeš snít. +Dialogue: 0,0:05:16.76,0:05:16.92,Default,Premiér se útoku ubránil\Na řekl, že zbraně založené na vesmírných... +Dialogue: 0,0:05:16.92,0:05:20.36,Default,Premiér se útoku ubránil\Na řekl, že zbraně založené na vesmírných... +Dialogue: 0,0:05:20.36,0:05:24.36,Default,jsou naše jediná obrana proti\Npočetní převaze z jižního bloku. +Dialogue: 0,0:05:24.36,0:05:26.76,Default,A další násilí na Marsu... +Dialogue: 0,0:05:26.76,1:44:16.00,Default,[...] +Dialogue: 0,1:44:16.00,1:44:17.60,Default,Co se děje? +Dialogue: 0,1:44:17.60,1:44:21.28,Default,Měl jsem jenom hroznou představu.\NCo když tohle je jenom sen? +Dialogue: 0,1:44:22.76,1:44:25.68,Default,Tak mi dej ryhcle pusu\Nnež se probudíš. diff --git a/tests/ref/fate/sub-charenc b/tests/ref/fate/sub-charenc index 5081731a83..2e993ce109 100644 --- a/tests/ref/fate/sub-charenc +++ b/tests/ref/fate/sub-charenc @@ -1 +1,61 @@ -c088c2924fd7af0a53eeeeb54a3f4456 +[Script Info] +ScriptType: v4.00+ +PlayResX: 384 +PlayResY: 288 + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding +Style: Default,Arial,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,1,1,0,2,10,10,10,0,0 + +[Events] +Format: Layer, Start, End, Style, Text +Dialogue: 0,0:00:32.95,0:00:38.25,Default,КОЛУМБИА ПИКЧЪРС - АЗИЯ\NСОНИ ПИКЧЪРС и Е.Е. Co.\Nпредставят +Dialogue: 0,0:00:52.76,0:00:58.60,Default,Т И Г Ъ Р И Д Р А К О Н +Dialogue: 0,0:01:22.17,0:01:24.05,Default,Учителят Ли е тук. +Dialogue: 0,0:01:45.48,0:01:47.32,Default,Шу Лиен! +Dialogue: 0,0:01:54.53,0:01:57.24,Default,Ли Му Бай е тук. +Dialogue: 0,0:02:05.83,0:02:09.00,Default,- Как вървят нещата?\N- Добре. Моля, влезте! +Dialogue: 0,0:02:23.48,0:02:26.52,Default,Му Бай...\NМина много време. +Dialogue: 0,0:02:26.73,0:02:28.11,Default,Така е. +Dialogue: 0,0:02:28.57,0:02:31.41,Default,- Как върви бизнесът?\N- Добре. +Dialogue: 0,0:02:31.61,0:02:33.90,Default,- А ти как си?\N- Добре. +Dialogue: 0,0:02:40.16,0:02:42.79,Default,Монахът Дзенг каза,\Nче си в планината Удан. +Dialogue: 0,0:02:43.04,0:02:46.54,Default,Каза, че практикуваш\Nдълбока медитация. +Dialogue: 0,0:02:48.84,0:02:50.68,Default,Сигурно в планината\Nе много спокойно. +Dialogue: 0,0:02:51.25,0:02:53.46,Default,Завиждам ти. +Dialogue: 0,0:02:53.67,0:02:58.34,Default,Имам толкова много работа,\Nпочти не ми остава\Nвреме за почивка. +Dialogue: 0,0:03:00.26,0:03:03.89,Default,Оставих обучението рано. +Dialogue: 0,0:03:05.69,0:03:11.28,Default,Защо? Ти си боец на Удан.\NОбучението е всичко. +Dialogue: 0,0:03:11.90,0:03:14.86,Default,По време на медитация… +Dialogue: 0,0:03:15.07,0:03:18.49,Default,стигнах до място,\Nкъдето имаше дълбока тишина... +Dialogue: 0,0:03:19.87,0:03:22.79,Default,бях обграден от светлина... +Dialogue: 0,0:03:23.41,0:03:28.08,Default,времето и пространството изчезнаха. +Dialogue: 0,0:03:28.71,0:03:34.09,Default,Достигнах до състояние, за което\Nучителят не ми беше казвал. +Dialogue: 0,0:03:37.05,0:03:39.14,Default,Постигнал си просветление? +Dialogue: 0,0:03:39.34,0:03:41.22,Default,Не. +Dialogue: 0,0:03:41.72,0:03:45.81,Default,Не почувствах блаженството\Nна просветлението. +Dialogue: 0,0:03:46.02,0:03:52.86,Default,Вместо това... ме обгърна\Nбезкрайна мъка. +Dialogue: 0,0:03:53.40,0:03:56.57,Default,Не можах да издържа. +Dialogue: 0,0:03:57.49,0:03:59.74,Default,Прекъснах медитацията си. +Dialogue: 0,0:03:59.95,0:04:02.24,Default,Не можах да продължа. +Dialogue: 0,0:04:03.20,0:04:07.79,Default,Нещо...\Nме дърпаше назад. +Dialogue: 0,0:04:09.62,0:04:10.91,Default,Какво беше? +Dialogue: 0,0:04:15.46,0:04:18.00,Default,Нещо, от което не\Nмога да се освободя. +Dialogue: 0,0:04:23.39,0:04:24.68,Default,Скоро ли ще тръгваш? +Dialogue: 0,0:04:26.77,0:04:30.27,Default,Подготвяме охрана\Nза една доставка... +Dialogue: 0,0:04:30.48,0:04:31.94,Default,за Пекин. +Dialogue: 0,0:04:32.56,0:04:34.10,Default,Мога ли да те помоля... +Dialogue: 0,0:04:35.07,0:04:38.82,Default,да занесеш нещо на господин Те. +Dialogue: 0,0:04:44.28,0:04:48.12,Default,Зеленият меч на Съдбата!?\NДаваш го на господин Те!? +Dialogue: 0,0:04:48.37,0:04:52.67,Default,Да. Той винаги е бил\Nнашият най-голям покровител. +Dialogue: 0,0:04:52.88,0:04:56.55,Default,Не разбирам.\NКак можеш да се разделиш с него? +Dialogue: 0,0:04:56.76,0:04:59.93,Default,Той винаги е бил с теб. +Dialogue: 0,0:05:01.18,0:05:05.52,Default,Твърде много хора са\Nзагинали от това острие. +Dialogue: 0,0:05:09.68,0:05:14.52,Default,Чисто е единствено защото\Nкръвта се отмива лесно. +Dialogue: 0,0:05:15.40,0:05:20.61,Default,Ти го използваш справедливо.\NДостоен си за него. +Dialogue: 0,0:05:23.66,0:05:27.37,Default,Дойде време\Nда го оставя. +Dialogue: 0,0:05:27.58,0:05:31.21,Default,Е, какво ще правиш\Nот сега нататък? +Dialogue: 0,0:05:34.71,0:05:37.50,Default,Ела с мен в Пекин. +Dialogue: 0,0:05:37.71,0:05:41.42,Default,Лично ще дадеш меча\Nна господин Те. +Dialogue: 0,0:05:41.68,0:05:44.89,Default,Ще бъде както преди. +Dialogue: 0,0:05:47.01,0:05:51.68,Default,Първо трябва да отида\Nна гроба на учителя си. diff --git a/tests/ref/fate/sub-jacosub b/tests/ref/fate/sub-jacosub index b9b0cf76d9..f93fc34681 100644 --- a/tests/ref/fate/sub-jacosub +++ b/tests/ref/fate/sub-jacosub @@ -1 +1,22 @@ -3bf9f062bd9825c7d8c3b62451b6d360 +[Script Info] +ScriptType: v4.00+ +PlayResX: 384 +PlayResY: 288 + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding +Style: Default,Arial,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,1,1,0,2,10,10,10,0,0 + +[Events] +Format: Layer, Start, End, Style, Text +Dialogue: 0,0:00:00.12,0:00:04.36,Default,{\an5}JACOsub\N\NThis script demonstrates some of the capabilities of JACOsub. +Dialogue: 0,0:00:04.12,0:00:14.86,Default,{\an8}Text may be positioned at the top, +Dialogue: 0,0:00:05.12,0:00:17.46,Default,{\an5}middle, +Dialogue: 0,0:00:06.12,0:00:20.06,Default,{\an2}or bottom of the screen. +Dialogue: 0,0:00:08.12,0:00:27.36,Default,{\an5}{this is a comment} (And, you just saw, {another comment} timing ranges for different lines of text. +Dialogue: 0,0:00:11.12,0:00:35.86,Default,{\an1}Within margin constraints\Nthat you set, text may be\Nleft justified, +Dialogue: 0,0:00:13.62,0:00:42.11,Default,{\an2}{the JC is redundant - it's the default}center\Njustified, +Dialogue: 0,0:00:14.87,0:00:45.86,Default,{\an3}and also\Nright justified. +Dialogue: 0,0:00:22.42,0:01:12.76,Default,Text may appear in different styles\N(Normal, {\b1}Bold{\r}, {\i1}Italic{\r}) +Dialogue: 0,0:01:16.12,0:03:53.36,Default,{\an5}\N\NAt that time, you may press any key to return to the Editor. +Dialogue: 0,0:01:16.12,0:03:53.36,Default,OK, this script will be finished when the screen goes blank. diff --git a/tests/ref/fate/sub-microdvd b/tests/ref/fate/sub-microdvd index f72308eaf7..7ae06e8c16 100644 --- a/tests/ref/fate/sub-microdvd +++ b/tests/ref/fate/sub-microdvd @@ -1 +1,22 @@ -1741d6776462277430d5e320157f5bf9 +[Script Info] +ScriptType: v4.00+ +PlayResX: 384 +PlayResY: 288 + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding +Style: Default,Comic Sans MS,30,&H123456,&H123456,&H0,&H0,0,0,0,1,1,0,2,10,10,10,0,0 + +[Events] +Format: Layer, Start, End, Style, Text +Dialogue: 0,0:00:00.00,0:00:40.00,Default,25.000 FPS +Dialogue: 0,0:00:40.00,0:00:52.00,Default,{\c&H345678&}foo{\c}\N{\c&HABCDEF&}bar{\c}\Nbla +Dialogue: 0,0:00:52.00,0:00:56.00,Default,{\u1}{\s1}{\i1}{\b1}italic bold underline strike{\s0}{\u0}\Nitalic bold no-underline no-strike +Dialogue: 0,0:00:56.00,0:01:00.00,Default,back to +Dialogue: 0,0:01:00.00,0:01:04.00,Default,the future +Dialogue: 0,0:01:20.00,0:01:24.92,Default,{\pos(10,20)}Some more crazy stuff +Dialogue: 0,0:02:14.00,0:02:15.60,Default,this subtitle... +Dialogue: 0,0:02:15.60,0:02:40.00,Default,...continues up to... +Dialogue: 0,0:02:40.00,0:03:00.00,Default,this one. +Dialogue: 0,0:03:04.00,0:03:12.00,Default,and now... +Dialogue: 0,0:03:12.00,9:59:59.99,Default,...to the end of the presentation diff --git a/tests/ref/fate/sub-microdvd-remux b/tests/ref/fate/sub-microdvd-remux index 24b5d3dc188b857116ba21efe00a7f2460439f17..7cbab62c3e8adda33c25c6ce82bcb07331efa86e 100644 GIT binary patch literal 436 zcmYk1KTpFj5XG7EDLgPjWXDM<*$~hPB&5K=XeW-an))jL5h_=Ich2bmi<9@>&+pFo z^t^lcczMs5ao0b>!H#TDF0j`jBDw!Lv=AwNU{rC z$h&Qx0nSA#Jx*rMTKThH6wxau+CqQ!R%bl*DP$YfLZdY-6H9I~ezDH55WU@-^Z(Gn z?O#sff>7_;C_3uZYTUC3EG)(qRS#(Eu`p?hsv j2-_{4%1z9{_XREnmZ}J>>}x25dHp?l6O4;0T5#1bF|Cgl literal 33 ocmXprvrIKLOf@z&PqRq0NJ=p