History

tests/fate/subtitles: add test for smpte436m_to_eia608 bsf

Jacob Lifshay committed 1 year ago

Commit 89849ca1 parent 370cff82 files · +80 −0Browse files

Unified · Split

2 files
  1. tests/fate/subtitles.mak +4 −0
  2. tests/ref/fate/sub-mcc-remux-eia608-recode +76 −0
tests/fate/subtitles.mak+4−0
@@ -143,6 +143,10 @@ FATE_SUBTITLES-$(call DEMMUX, MCC, MCC, SMPTE436M_TO_EIA608_BSF EIA608_TO_SMPTE4 · 142 unmodified lines
143143 fate-sub-mcc-remux-eia608: CMD = fmtstdout mcc -f mcc -i $(SRC_PATH)/tests/ref/fate/sub-mcc-remux -map 0:s -c copy -override_time_code_rate ntsc -creation_time "1970-01-01T00:00:00"
144144 fate-sub-mcc-remux-eia608: CMP = rawdiff
145145
146+FATE_SUBTITLES-$(call DEMMUX, MCC, MCC, SMPTE436M_TO_EIA608_BSF EIA608_TO_SMPTE436M_BSF) += fate-sub-mcc-remux-eia608-recode
147+fate-sub-mcc-remux-eia608-recode: CMD = fmtstdout mcc -eia608_extract 0 -f mcc -i $(SRC_PATH)/tests/ref/fate/sub-mcc-remux -map 0:d -c copy -bsf smpte436m_to_eia608 -override_time_code_rate ntsc -creation_time "1970-01-01T00:00:00"
148+fate-sub-mcc-remux-eia608-recode: CMP = rawdiff
149+
146150 FATE_SUBTITLES-$(call DEMMUX, MCC, MCC) += fate-sub-mcc-remux
147151 fate-sub-mcc-remux: CMD = fmtstdout mcc -eia608_extract 0 -f mcc -i $(SRC_PATH)/tests/ref/fate/sub-mcc-remux -map 0:d -c copy -override_time_code_rate ntsc -creation_time "1970-01-01T00:00:00"
148152 fate-sub-mcc-remux: CMP = rawdiff
tests/ref/fate/sub-mcc-remux-eia608-recode+76−0
@@ -0,0 +1,76 @@
1+File Format=MacCaption_MCC V2.0
2+
3+///////////////////////////////////////////////////////////////////////////////////
4+// Computer Prompting and Captioning Company
5+// Ancillary Data Packet Transfer File
6+//
7+// Permission to generate this format is granted provided that
8+// 1. This ANC Transfer file format is used on an as-is basis and no warranty is given, and
9+// 2. This entire descriptive information text is included in a generated .mcc file.
10+//
11+// General file format:
12+// HH:MM:SS:FF(tab)[Hexadecimal ANC data in groups of 2 characters]
13+// Hexadecimal data starts with the Ancillary Data Packet DID (Data ID defined in S291M)
14+// and concludes with the Check Sum following the User Data Words.
15+// Each time code line must contain at most one complete ancillary data packet.
16+// To transfer additional ANC Data successive lines may contain identical time code.
17+// Time Code Rate=[24, 25, 30, 30DF, 50, 60, 60DF]
18+//
19+// ANC data bytes may be represented by one ASCII character according to the following schema:
20+// G FAh 00h 00h
21+// H 2 x (FAh 00h 00h)
22+// I 3 x (FAh 00h 00h)
23+// J 4 x (FAh 00h 00h)
24+// K 5 x (FAh 00h 00h)
25+// L 6 x (FAh 00h 00h)
26+// M 7 x (FAh 00h 00h)
27+// N 8 x (FAh 00h 00h)
28+// O 9 x (FAh 00h 00h)
29+// P FBh 80h 80h
30+// Q FCh 80h 80h
31+// R FDh 80h 80h
32+// S 96h 69h
33+// T 61h 01h
34+// U E1h 00h 00h 00h
35+// Z 00h
36+//
37+///////////////////////////////////////////////////////////////////////////////////
38+
39+UUID=0087C4F6-A6B4-5469-8C8E-BBF44950401D
40+Creation Program=FFmpeg
41+Creation Date=Thursday, January 1, 1970
42+Creation Time=00:00:00
43+Time Code Rate=30DF
44+
45+00:00:58:29 T49S494F43ZZ72F4QROO74ZZBFAB
46+00:00:59:00 T49S494F43Z0172F4QROO74Z01BDAB
47+00:00:59:01 T49S494F43Z0272F4QROO74Z02BBAB
48+00:00:59:02 T49S494F43Z0372F4QROO74Z03B9AB
49+00:00:59:03 T49S494F43Z0472F4QROO74Z04B7AB
50+00:00:59:04 T49S494F43Z0572F4QROO74Z05B5AB
51+00:00:59:05 T49S494F43Z0672F4QROO74Z06B3AB
52+00:00:59:06 T49S494F43Z0772F4QROO74Z07B1AB
53+00:00:59:07 T49S494F43Z0872F4QROO74Z08AFAB
54+00:00:59:08 T49S494F43Z0972F4QROO74Z09ADAB
55+00:00:59:09 T49S494F43Z0A72F4QROO74Z0AABAB
56+00:00:59:10 T49S494F43Z0B72F4QROO74Z0BA9AB
57+00:00:59:11 T49S494F43Z0C72F4QROO74Z0CA7AB
58+00:00:59:12 T49S494F43Z0D72F4QROO74Z0DA5AB
59+00:00:59:13 T49S494F43Z0E72F4QROO74Z0EA3AB
60+00:00:59:14 T49S494F43Z0F72F4QROO74Z0FA1AB
61+00:00:59:15 T49S494F43Z1072F4QROO74Z109FAB
62+00:00:59:16 T49S494F43Z1172F4QROO74Z119DAB
63+00:00:59:17 T49S494F43Z1272F4QROO74Z129BAB
64+00:00:59:18 T49S494F43Z1372F4QROO74Z1399AB
65+00:00:59:19 T49S494F43Z1472F4QROO74Z1497AB
66+00:00:59:20 T49S494F43Z1572F4QROO74Z1595AB
67+00:00:59:21 T49S494F43Z1672F4QROO74Z1693AB
68+00:00:59:22 T49S494F43Z1772F4QROO74Z1791AB
69+00:00:59:23 T49S494F43Z1872F4QROO74Z188FAB
70+00:00:59:24 T49S494F43Z1972F4QROO74Z198DAB
71+00:00:59:25 T49S494F43Z1A72F4QROO74Z1A8BAB
72+00:00:59:26 T49S494F43Z1B72F4QROO74Z1B89AB
73+00:00:59:27 T49S494F43Z1C72F4QROO74Z1C87AB
74+00:00:59:28 T49S494F43Z1D72F4QROO74Z1D85AB
75+00:00:59:29 T49S494F43Z1E72F4QROO74Z1E83AB
76+00:01:00:02 T49S494F43Z1F72F4QROO74Z1F81AB

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t