[FFmpeg-devel] [PATCH] fate: add SCC test

Paul B Mahol onemda at gmail.com
Wed Jan 25 23:30:06 EET 2017


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 tests/fate/subtitles.mak |   3 +
 tests/ref/fate/sub-scc   | 519 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 522 insertions(+)
 create mode 100644 tests/ref/fate/sub-scc

diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak
index 8aa0279..cc9d77c 100644
--- a/tests/fate/subtitles.mak
+++ b/tests/fate/subtitles.mak
@@ -94,6 +94,9 @@ fate-sub-textenc: CMD = fmtstdout srt -i $(TARGET_SAMPLES)/sub/SubRip_capability
 FATE_SUBTITLES_ASS-$(call ALLYES, MICRODVD_DEMUXER MICRODVD_DECODER ICONV) += fate-sub-charenc
 fate-sub-charenc: CMD = fmtstdout ass -sub_charenc cp1251 -i $(TARGET_SAMPLES)/sub/cp1251-subtitles.sub
 
+FATE_SUBTITLES-$(call ALLYES, SCC_DEMUXER CCAPTION_DECODER SUBRIP_ENCODER SRT_MUXER) += fate-sub-scc
+fate-sub-scc: CMD = fmtstdout srt -i $(TARGET_SAMPLES)/sub/witch.scc
+
 FATE_SUBTITLES-$(call ENCMUX, ASS, ASS) += $(FATE_SUBTITLES_ASS-yes)
 FATE_SUBTITLES += $(FATE_SUBTITLES-yes)
 
diff --git a/tests/ref/fate/sub-scc b/tests/ref/fate/sub-scc
new file mode 100644
index 0000000..1c3ec05
--- /dev/null
+++ b/tests/ref/fate/sub-scc
@@ -0,0 +1,519 @@
+1
+00:00:00,000 --> 00:00:09,297
+<font face="Monospace">{\an7}♪<i> PIES IESU DOMINE, 
+</i>\hDONNA EIS REQUIEM ♪
+\h\h\h\h\h\h\h\h\h\h\h\h\h\h\h\h[ Bangs head</font>
+
+2
+00:00:10,561 --> 00:00:15,231
+<font face="Monospace">{\an7}♪<i> PIES IESU DOMINE, ♪ [ </i></font>
+
+3
+00:00:22,627 --> 00:00:27,429
+<font face="Monospace">{\an7}♪<i> PIES IESU DOMINE, ♪ [ </i></font>
+
+4
+00:00:28,231 --> 00:00:31,627
+<font face="Monospace">{\an7}♪<i> DONNA EIS REQUIEM.♪ [ </i></font>
+
+5
+00:00:31,627 --> 00:00:36,594
+<font face="Monospace">{\an7}<i>[ Crowd Shouting ]
+A WITCH !  A WITCH !  A WITCH !
+</i>♪<i> PIES IESU DOMINE, ♪ [ </i></font>
+
+6
+00:00:36,594 --> 00:00:39,363
+<font face="Monospace">{\an7}A WITCH !  A WITCH !
+WE FOUND A WITCH !</font>
+
+7
+00:00:39,363 --> 00:00:41,924
+<font face="Monospace">{\an7}[ Crowd Continues
+\h\hShouting ]
+A WITCH !  A WITCH !</font>
+
+8
+00:00:41,924 --> 00:00:45,660
+<font face="Monospace">{\an7}WE’VE GOT A WITCH !
+A WITCH !  WE’VE GOT A WITCH !</font>
+
+9
+00:00:45,660 --> 00:00:47,858
+<font face="Monospace">{\an7}BURN HER !
+\hBURN HER !  BURN HER !</font>
+
+10
+00:00:47,858 --> 00:00:50,891
+<font face="Monospace">{\an7}<i>WE’VE FOUND A WITCH !
+\hWE’VE FOUND A WITCH !</i></font>
+
+11
+00:00:50,891 --> 00:00:54,528
+<font face="Monospace">{\an7}A WITCH !
+\hA WITCH !  A WITCH !</font>
+
+12
+00:00:54,528 --> 00:00:57,693
+<font face="Monospace">{\an7}WE HAVE FOUND A WITCH !
+MAY WE BURN HER ?</font>
+
+13
+00:00:57,693 --> 00:01:00,297
+<font face="Monospace">{\an7}[ Crowd ]
+BURN HER !  BURN HER !</font>
+
+14
+00:01:00,297 --> 00:01:04,066
+<font face="Monospace">{\an7}HOW DO YOU KNOW
+SHE IS A WITCH ?
+SHE LOOKS LIKE ONE !</font>
+
+15
+00:01:04,066 --> 00:01:06,264
+<font face="Monospace">{\an7}[ Shouting
+\h\hAffirmations ]</font>
+
+16
+00:01:06,264 --> 00:01:08,066
+<font face="Monospace">{\an7}BRING HER FORWARD.</font>
+
+17
+00:01:08,066 --> 00:01:11,264
+<font face="Monospace">{\an7}I’M NOT A WITCH.
+\hI’M<i> NOT</i> A WITCH.</font>
+
+18
+00:01:11,264 --> 00:01:13,033
+<font face="Monospace">{\an7}BUT YOU ARE DRESSED
+AS ONE.</font>
+
+19
+00:01:13,033 --> 00:01:16,033
+<font face="Monospace">{\an7}THEY DRESSED ME UP
+LIKE THIS.
+\h\h\h\h\h\h\h\hNO !  WE DIDN’T !</font>
+
+20
+00:01:16,033 --> 00:01:19,957
+<font face="Monospace">{\an7}AND THIS ISN’T MY NOSE.
+IT’S A FALSE ONE.</font>
+
+21
+00:01:22,297 --> 00:01:25,429
+<font face="Monospace">{\an7}WELL ?
+\h\h\h\h\h\h\h\hWELL, WE DID
+\h\h\h\h\h\h\h\hDO THE NOSE.</font>
+
+22
+00:01:25,429 --> 00:01:27,066
+<font face="Monospace">{\an7}THE NOSE ?
+\h\h\h\h\h\h\h\hAND THE HAT.</font>
+
+23
+00:01:27,066 --> 00:01:32,495
+<font face="Monospace">{\an7}BUT SHE IS A WITCH.
+YEAH !  BURN HER !
+BURN HER !  BURN HER !</font>
+
+24
+00:01:32,495 --> 00:01:35,462
+<font face="Monospace">{\an7}- DID YOU DRESS HER UP
+\h\hLIKE THIS ?
+- NO !</font>
+
+25
+00:01:35,462 --> 00:01:36,858
+<font face="Monospace">{\an7}\h\h\h\h\h\h\h\hNO !
+NO !
+\h\h\h\hNO !</font>
+
+26
+00:01:36,858 --> 00:01:38,627
+<font face="Monospace">{\an7}YES.  YES.
+YEAH, A BIT.</font>
+
+27
+00:01:38,627 --> 00:01:41,825
+<font face="Monospace">{\an7}\h\h\h\h\h\h\h\hA BIT.
+\h\h\h\h\h\h\h\h\hA BIT.
+SHE HAS GOT A WART.</font>
+
+28
+00:01:41,825 --> 00:01:44,033
+<font face="Monospace">{\an7}WHAT MAKES YOU THINK
+SHE IS A WITCH ?</font>
+
+29
+00:01:44,033 --> 00:01:46,528
+<font face="Monospace">{\an7}WELL, SHE TURNED ME
+INTO A NEWT !</font>
+
+30
+00:01:46,528 --> 00:01:49,297
+<font face="Monospace">{\an7}A NEWT ?</font>
+
+31
+00:01:52,462 --> 00:01:54,396
+<font face="Monospace">{\an7}I GOT BETTER.</font>
+
+32
+00:01:54,396 --> 00:01:55,891
+<font face="Monospace">{\an7}BURN HER ANYWAY !</font>
+
+33
+00:01:55,891 --> 00:01:58,033
+<font face="Monospace">{\an7}BURN HER !
+\h\h\h\h\h\h\h\hBURN HER !
+\h\h\h\h\h\h\h\hCRACKLE, CRACKLE !</font>
+
+34
+00:01:58,033 --> 00:02:01,000
+<font face="Monospace">{\an7}\h\h\h\h[ Shouting
+\h\h\h\h\h\hContinues ]
+QUIET.  QUIET.</font>
+
+35
+00:02:01,000 --> 00:02:02,429
+<font face="Monospace">{\an7}QUIET !
+QUIET !</font>
+
+36
+00:02:02,429 --> 00:02:06,132
+<font face="Monospace">{\an7}THERE ARE WAYS OF TELLING
+WHETHER SHE IS A WITCH.</font>
+
+37
+00:02:06,132 --> 00:02:07,957
+<font face="Monospace">{\an7}ARE THERE ?
+WHAT ARE THEY ?</font>
+
+38
+00:02:07,957 --> 00:02:10,297
+<font face="Monospace">{\an7}TELL US !
+TELL US !
+\h\h\h\hDO THEY HURT ?</font>
+
+39
+00:02:10,297 --> 00:02:13,231
+<font face="Monospace">{\an7}TELL ME,
+WHAT DO YOU DO WITH WITCHES ?</font>
+
+40
+00:02:13,231 --> 00:02:16,198
+<font face="Monospace">{\an7}\h\h\h\h\h\h\h\h\h\h\h\hBURN THEM !
+\h\h\h\h\h\h\h\h\h\h\h\h\hBURN THEM UP !
+BURN !</font>
+
+41
+00:02:16,198 --> 00:02:19,330
+<font face="Monospace">{\an7}AND WHAT DO YOU BURN,
+APART FROM WITCHES ?</font>
+
+42
+00:02:19,330 --> 00:02:21,594
+<font face="Monospace">{\an7}MORE WITCHES !
+SHH !</font>
+
+43
+00:02:21,594 --> 00:02:22,627
+<font face="Monospace">{\an7}WOOD !</font>
+
+44
+00:02:22,627 --> 00:02:26,330
+<font face="Monospace">{\an7}SO,
+WHY DO WITCHES BURN ?</font>
+
+45
+00:02:29,693 --> 00:02:32,033
+<font face="Monospace">{\an7}B--</font>
+
+46
+00:02:36,132 --> 00:02:39,462
+<font face="Monospace">{\an7}- ’CAUSE THEY’RE
+\h\hMADE OF W-- WOOD ?
+- GOOD !</font>
+
+47
+00:02:39,462 --> 00:02:41,000
+<font face="Monospace">{\an7}OH, YEAH.
+[ Murmuring ]</font>
+
+48
+00:02:41,000 --> 00:02:45,495
+<font face="Monospace">{\an7}SO, HOW DO WE TELL
+WHETHER SHE
+IS MADE OF WOOD ?</font>
+
+49
+00:02:45,495 --> 00:02:47,099
+<font face="Monospace">{\an7}BUILD A BRIDGE
+OUT OF HER !</font>
+
+50
+00:02:47,099 --> 00:02:51,132
+<font face="Monospace">{\an7}AH, BUT CAN YOU NOT ALSO
+MAKE BRIDGES OUT OF STONE ?</font>
+
+51
+00:02:51,132 --> 00:02:54,264
+<font face="Monospace">{\an7}OH, YEAH.
+\h\h\h\h\h\h\h\hOH, YEAH.
+\h\h\h\h\h\h\h\hTRUE.  UH--</font>
+
+52
+00:02:54,264 --> 00:02:56,726
+<font face="Monospace">{\an7}<i>DOES WOOD
+SINK IN WATER ?</i></font>
+
+53
+00:02:56,726 --> 00:02:59,165
+<font face="Monospace">{\an7}NO, NO.
+\h\h\h\h\h\h\h\hNO, IT FLOATS !
+\h\h\h\h\h\h\h\hIT FLOATS !</font>
+
+54
+00:02:59,165 --> 00:03:04,033
+<font face="Monospace">{\an7}THROW HER INTO THE POND !
+\h\h\h\h\h\h\h\h[ All Shouting ]</font>
+
+55
+00:03:04,363 --> 00:03:07,495
+<font face="Monospace">{\an7}WHAT ALSO FLOATS
+IN WATER ?</font>
+
+56
+00:03:07,495 --> 00:03:09,132
+<font face="Monospace">{\an7}BREAD !
+\h\h\h\h\h\h\h\h\h\h\h\hAPPLES !</font>
+
+57
+00:03:09,132 --> 00:03:10,231
+<font face="Monospace">{\an7}UH, VERY SMALL ROCKS.</font>
+
+58
+00:03:10,231 --> 00:03:13,495
+<font face="Monospace">{\an7}<i>- CIDER !  CHERRIES !
+</i>- UH, GRA-- GRAVY !  MUD !</font>
+
+59
+00:03:13,495 --> 00:03:15,759
+<font face="Monospace">{\an7}- CHURCHES !  CHURCHES !
+<i>- LEAD !  LEAD !</i></font>
+
+60
+00:03:15,759 --> 00:03:19,297
+<font face="Monospace">{\an7}- A DUCK !
+- [ Crowd Gasps, Murmurs ]</font>
+
+61
+00:03:19,297 --> 00:03:21,627
+<font face="Monospace">{\an7}EXACTLY !</font>
+
+62
+00:03:22,363 --> 00:03:24,594
+<font face="Monospace">{\an7}SO, LOGICALLY--</font>
+
+63
+00:03:24,594 --> 00:03:26,759
+<font face="Monospace">{\an7}IF... SHE...</font>
+
+64
+00:03:26,759 --> 00:03:30,561
+<font face="Monospace">{\an7}WEIGHS...
+THE SAME
+AS A DUCK...</font>
+
+65
+00:03:31,396 --> 00:03:33,495
+<font face="Monospace">{\an7}SHE’S MADE OF WOOD !</font>
+
+66
+00:03:33,495 --> 00:03:35,462
+<font face="Monospace">{\an7}AND THEREFORE ?</font>
+
+67
+00:03:36,495 --> 00:03:39,165
+<font face="Monospace">{\an7}- A WITCH !
+<i>- [ All ]  A WITCH !  A WITCH !</i></font>
+
+68
+00:03:39,165 --> 00:03:41,066
+<font face="Monospace">{\an7}[ Shouting Continues ]</font>
+
+69
+00:03:41,066 --> 00:03:42,759
+<font face="Monospace">{\an7}HERE’S A DUCK !
+[ Quacking ]</font>
+
+70
+00:03:42,759 --> 00:03:46,792
+<font face="Monospace">{\an7}VERY GOOD.
+WE SHALL USE
+MY LARGEST SCALES.</font>
+
+71
+00:03:46,792 --> 00:03:49,726
+<font face="Monospace">{\an7}[ Shouting Continues ]</font>
+
+72
+00:03:49,726 --> 00:03:52,165
+<font face="Monospace">{\an7}BURN !
+\hBURN THE WITCH !</font>
+
+73
+00:03:52,165 --> 00:03:54,627
+<font face="Monospace">{\an7}BURN HER !
+\hBURN THE WITCH !</font>
+
+74
+00:03:54,627 --> 00:03:58,627
+<font face="Monospace">{\an7}BURN HER !
+\hBURN HER !  BURN HER !</font>
+
+75
+00:03:58,627 --> 00:04:01,132
+<font face="Monospace">{\an7}BURN HER !
+\hBURN HER !</font>
+
+76
+00:04:01,132 --> 00:04:03,594
+<font face="Monospace">{\an7}BURN HER !
+\hBURN HER !</font>
+
+77
+00:04:03,594 --> 00:04:05,000
+<font face="Monospace">{\an7}<i>[ Man Grunts ]</i></font>
+
+78
+00:04:05,000 --> 00:04:11,297
+<font face="Monospace">{\an7}<i>RIGHT !
+REMOVE THE SUPPORTS !</i></font>
+
+79
+00:04:14,066 --> 00:04:16,165
+<font face="Monospace">{\an7}A WITCH !
+A WITCH !</font>
+
+80
+00:04:16,165 --> 00:04:17,033
+<font face="Monospace">{\an7}IT’S A FAIR COP.</font>
+
+81
+00:04:17,033 --> 00:04:22,297
+<font face="Monospace">{\an7}- BURN HER !
+- [ Crowd Continues Shouting ]
+BURN HER !  BURN HER !</font>
+
+82
+00:04:25,858 --> 00:04:29,726
+<font face="Monospace">{\an7}WHO ARE YOU,
+WHO ARE SO WISE
+IN THE WAYS OF SCIENCE ?</font>
+
+83
+00:04:29,726 --> 00:04:32,759
+<font face="Monospace">{\an7}I AM ARTHUR,
+KING OF THE BRITONS.</font>
+
+84
+00:04:32,759 --> 00:04:33,957
+<font face="Monospace">{\an7}MY LIEGE !</font>
+
+85
+00:04:33,957 --> 00:04:37,363
+<font face="Monospace">{\an7}GOOD SIR KNIGHT,
+WILL YOU COME WITH ME
+TO CAMELOT...</font>
+
+86
+00:04:37,363 --> 00:04:40,396
+<font face="Monospace">{\an7}AND JOIN US
+AT THE ROUND TABLE ?</font>
+
+87
+00:04:40,396 --> 00:04:42,528
+<font face="Monospace">{\an7}MY LIEGE,
+I WOULD BE HONORED !</font>
+
+88
+00:04:42,528 --> 00:04:45,693
+<font face="Monospace">{\an7}\h\h\h\h\h\h\h\h\h\h\h\hWHAT IS YOUR NAME ?
+BEDEVERE, MY LIEGE.</font>
+
+89
+00:04:45,693 --> 00:04:49,495
+<font face="Monospace">{\an7}THEN I DUB YOU
+<i>SIR</i> BEDEVERE,</font>
+
+90
+00:04:49,495 --> 00:04:51,858
+<font face="Monospace">{\an7}KNIGHT
+OF THE ROUND TABLE.</font>
+
+91
+00:04:51,858 --> 00:04:53,759
+<font face="Monospace">{\an7}<i>[ Narrator ]
+THE WISE SIR BEDEVERE...</i></font>
+
+92
+00:04:53,759 --> 00:04:56,693
+<font face="Monospace">{\an7}<i>WAS THE FIRST TO JOIN
+KING ARTHUR’S KNIGHTS.</i></font>
+
+93
+00:04:56,693 --> 00:05:00,264
+<font face="Monospace">{\an7}<i>BUT OTHER ILLUSTRIOUS NAMES
+WERE SOON TO FOLLOW:</i></font>
+
+94
+00:05:00,264 --> 00:05:03,033
+<font face="Monospace">{\an7}<i>SIR LAUNCELOT THE BRAVE;</i></font>
+
+95
+00:05:03,033 --> 00:05:04,957
+<font face="Monospace">{\an7}<i>SIR GALAHAD THE PURE;</i></font>
+
+96
+00:05:04,957 --> 00:05:08,264
+<font face="Monospace">{\an7}<i>AND SIR ROBIN
+THE NOT-QUITE-SO-BRAVE-
+AS-SIR-LAUNCELOT,</i></font>
+
+97
+00:05:08,264 --> 00:05:10,924
+<font face="Monospace">{\an7}<i>WHO HAD NEARLY FOUGHT
+THE DRAGON OF ANGNOR,</i></font>
+
+98
+00:05:10,924 --> 00:05:13,891
+<font face="Monospace">{\an7}<i>WHO HAD NEARLY
+STOOD UP TO THE VICIOUS
+CHICKEN OF BRISTOL...</i></font>
+
+99
+00:05:13,891 --> 00:05:17,726
+<font face="Monospace">{\an7}<i>AND WHO HAD
+PERSONALLY WET HIMSELF
+AT THE BATTLE OF BADON HILL;</i></font>
+
+100
+00:05:17,726 --> 00:05:22,429
+<font face="Monospace">{\an7}<i>AND THE APTLY NAMED
+SIR NOT-APPEARING-IN-THIS-FILM.</i></font>
+
+101
+00:05:22,594 --> 00:05:26,033
+<font face="Monospace">{\an7}<i>TOGETHER THEY FORMED A BAND
+WHOSE NAMES AND DEEDS...</i></font>
+
+102
+00:05:26,033 --> 00:05:28,726
+<font face="Monospace">{\an7}<i>WERE TO BE RETOLD
+THROUGHOUT THE CENTURIES.</i></font>
+
+103
+00:05:28,726 --> 00:05:30,858
+<font face="Monospace">{\an7}<i>THE KNIGHTS
+OF THE ROUND TABLE.</i></font>
+
-- 
2.9.3



More information about the ffmpeg-devel mailing list