Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-10-27 09:16:08 +0300
committerRodger Combs <rodger.combs@gmail.com>2016-11-02 09:16:26 +0300
commitd401c37ef5036a12c03d4cbdbbde561d9a7ba4b3 (patch)
tree6faecf2b24f2b9a1188d56ff5d9591d7f0b319c4 /tests/ref/fate
parent1a958f4eb0984fada564a5648d211b408ebb8c3d (diff)
tests/fate/avformat: add segment.c tests
Diffstat (limited to 'tests/ref/fate')
-rw-r--r--tests/ref/fate/segment-adts-to-mkv-header-00021
-rw-r--r--tests/ref/fate/segment-adts-to-mkv-header-00122
-rw-r--r--tests/ref/fate/segment-adts-to-mkv-header-0029
-rw-r--r--tests/ref/fate/segment-adts-to-mkv-header-all40
-rw-r--r--tests/ref/fate/segment-mp4-to-ts132
5 files changed, 224 insertions, 0 deletions
diff --git a/tests/ref/fate/segment-adts-to-mkv-header-000 b/tests/ref/fate/segment-adts-to-mkv-header-000
new file mode 100644
index 0000000000..d00e886849
--- /dev/null
+++ b/tests/ref/fate/segment-adts-to-mkv-header-000
@@ -0,0 +1,21 @@
+#extradata 0: 2, 0x0030001c
+#tb 0: 1/1000
+#media_type 0: audio
+#codec_id 0: aac
+#sample_rate 0: 16000
+#channel_layout 0: 4
+0, 0, 0, 64, 4, 0x02f70117
+0, 64, 64, 64, 163, 0xd5f85007
+0, 128, 128, 64, 127, 0x66484065
+0, 192, 192, 64, 94, 0x55222bd6
+0, 256, 256, 64, 314, 0x3c7e923a
+0, 320, 320, 64, 207, 0x1efc5d1b
+0, 384, 384, 64, 119, 0xb2a13601
+0, 448, 448, 64, 184, 0xcafc6091
+0, 512, 512, 64, 132, 0xddd33c0b
+0, 576, 576, 64, 152, 0x83935031
+0, 640, 640, 64, 227, 0x32a86bc4
+0, 704, 704, 64, 122, 0xd04e3571
+0, 768, 768, 64, 163, 0x57d44d16
+0, 832, 832, 64, 147, 0x226043d7
+0, 896, 896, 64, 119, 0x8ad931ed
diff --git a/tests/ref/fate/segment-adts-to-mkv-header-001 b/tests/ref/fate/segment-adts-to-mkv-header-001
new file mode 100644
index 0000000000..87adbb810c
--- /dev/null
+++ b/tests/ref/fate/segment-adts-to-mkv-header-001
@@ -0,0 +1,22 @@
+#extradata 0: 2, 0x0030001c
+#tb 0: 1/1000
+#media_type 0: audio
+#codec_id 0: aac
+#sample_rate 0: 16000
+#channel_layout 0: 4
+0, 0, 0, 64, 153, 0xbb6e432f
+0, 64, 64, 64, 185, 0xa01f4ff3
+0, 128, 128, 64, 126, 0x85503ce6
+0, 192, 192, 64, 246, 0x652c7b59
+0, 256, 256, 64, 162, 0xc9f04da0
+0, 320, 320, 64, 135, 0x71fa3be0
+0, 384, 384, 64, 246, 0x7a6f7788
+0, 448, 448, 64, 262, 0xd3097781
+0, 512, 512, 64, 60, 0x09a118f5
+0, 576, 576, 64, 255, 0xbab5793c
+0, 640, 640, 64, 153, 0x6b6a44fb
+0, 704, 704, 64, 160, 0x550e4530
+0, 768, 768, 64, 215, 0x7fe66144
+0, 832, 832, 64, 144, 0xcd723f7d
+0, 896, 896, 64, 187, 0x2a0b5c1b
+0, 960, 960, 64, 177, 0xb8c355d5
diff --git a/tests/ref/fate/segment-adts-to-mkv-header-002 b/tests/ref/fate/segment-adts-to-mkv-header-002
new file mode 100644
index 0000000000..eae15bc4df
--- /dev/null
+++ b/tests/ref/fate/segment-adts-to-mkv-header-002
@@ -0,0 +1,9 @@
+#extradata 0: 2, 0x0030001c
+#tb 0: 1/1000
+#media_type 0: audio
+#codec_id 0: aac
+#sample_rate 0: 16000
+#channel_layout 0: 4
+0, 0, 0, 64, 156, 0x867d4f3a
+0, 64, 64, 64, 201, 0x62745ff9
+0, 128, 128, 64, 137, 0x90c639e0
diff --git a/tests/ref/fate/segment-adts-to-mkv-header-all b/tests/ref/fate/segment-adts-to-mkv-header-all
new file mode 100644
index 0000000000..1f7d772268
--- /dev/null
+++ b/tests/ref/fate/segment-adts-to-mkv-header-all
@@ -0,0 +1,40 @@
+#extradata 0: 2, 0x0030001c
+#tb 0: 1/1000
+#media_type 0: audio
+#codec_id 0: aac
+#sample_rate 0: 16000
+#channel_layout 0: 4
+0, 0, 0, 64, 4, 0x02f70117
+0, 64, 64, 64, 163, 0xd5f85007
+0, 128, 128, 64, 127, 0x66484065
+0, 192, 192, 64, 94, 0x55222bd6
+0, 256, 256, 64, 314, 0x3c7e923a
+0, 320, 320, 64, 207, 0x1efc5d1b
+0, 384, 384, 64, 119, 0xb2a13601
+0, 448, 448, 64, 184, 0xcafc6091
+0, 512, 512, 64, 132, 0xddd33c0b
+0, 576, 576, 64, 152, 0x83935031
+0, 640, 640, 64, 227, 0x32a86bc4
+0, 704, 704, 64, 122, 0xd04e3571
+0, 768, 768, 64, 163, 0x57d44d16
+0, 832, 832, 64, 147, 0x226043d7
+0, 896, 896, 64, 119, 0x8ad931ed
+0, 960, 960, 64, 153, 0xbb6e432f
+0, 1024, 1024, 64, 185, 0xa01f4ff3
+0, 1088, 1088, 64, 126, 0x85503ce6
+0, 1152, 1152, 64, 246, 0x652c7b59
+0, 1216, 1216, 64, 162, 0xc9f04da0
+0, 1280, 1280, 64, 135, 0x71fa3be0
+0, 1344, 1344, 64, 246, 0x7a6f7788
+0, 1408, 1408, 64, 262, 0xd3097781
+0, 1472, 1472, 64, 60, 0x09a118f5
+0, 1536, 1536, 64, 255, 0xbab5793c
+0, 1600, 1600, 64, 153, 0x6b6a44fb
+0, 1664, 1664, 64, 160, 0x550e4530
+0, 1728, 1728, 64, 215, 0x7fe66144
+0, 1792, 1792, 64, 144, 0xcd723f7d
+0, 1856, 1856, 64, 187, 0x2a0b5c1b
+0, 1920, 1920, 64, 177, 0xb8c355d5
+0, 1984, 1984, 64, 156, 0x867d4f3a
+0, 2048, 2048, 64, 201, 0x62745ff9
+0, 2112, 2112, 64, 137, 0x90c639e0
diff --git a/tests/ref/fate/segment-mp4-to-ts b/tests/ref/fate/segment-mp4-to-ts
new file mode 100644
index 0000000000..8513027b9f
--- /dev/null
+++ b/tests/ref/fate/segment-mp4-to-ts
@@ -0,0 +1,132 @@
+#extradata 0: 795, 0x395101dc
+#tb 0: 1/90000
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 640x360
+#sar 0: 1/1
+0, -7200, 0, 0, 22630, 0x9b109541, S=1, 1, 0x00e000e0
+0, -3600, 14400, 0, 4021, 0xbf7cdb02, F=0x0, S=1, 1, 0x00e000e0
+0, 0, 7200, 0, 1096, 0x4f162690, F=0x0, S=1, 1, 0x00e000e0
+0, 3600, 3600, 0, 687, 0x00394b95, F=0x0, S=1, 1, 0x00e000e0
+0, 7200, 10800, 0, 445, 0x08c3d065, F=0x0, S=1, 1, 0x00e000e0
+0, 10800, 28800, 0, 4212, 0x56d12b8f, F=0x0, S=1, 1, 0x00e000e0
+0, 14400, 21600, 0, 1117, 0xd521260b, F=0x0, S=1, 1, 0x00e000e0
+0, 18000, 18000, 0, 892, 0x4262bdbc, F=0x0, S=1, 1, 0x00e000e0
+0, 21600, 25200, 0, 480, 0x3be1ef0b, F=0x0, S=1, 1, 0x00e000e0
+0, 25200, 43200, 0, 4065, 0x40dee237, F=0x0, S=1, 1, 0x00e000e0
+0, 28800, 36000, 0, 962, 0x31a4ceb1, F=0x0, S=1, 1, 0x00e000e0
+0, 32400, 32400, 0, 651, 0xb2aa317a, F=0x0, S=1, 1, 0x00e000e0
+0, 36000, 39600, 0, 543, 0x9c4e0024, F=0x0, S=1, 1, 0x00e000e0
+0, 39600, 57600, 0, 4221, 0x77c23977, F=0x0, S=1, 1, 0x00e000e0
+0, 43200, 50400, 0, 1040, 0x482cfa34, F=0x0, S=1, 1, 0x00e000e0
+0, 46800, 46800, 0, 576, 0x2686136a, F=0x0, S=1, 1, 0x00e000e0
+0, 50400, 54000, 0, 607, 0xc53c2339, F=0x0, S=1, 1, 0x00e000e0
+0, 54000, 72000, 0, 4755, 0x2f642b58, F=0x0, S=1, 1, 0x00e000e0
+0, 57600, 64800, 0, 1182, 0xbe1a4847, F=0x0, S=1, 1, 0x00e000e0
+0, 61200, 61200, 0, 809, 0x8d948a4e, F=0x0, S=1, 1, 0x00e000e0
+0, 64800, 68400, 0, 656, 0x4fa03c2b, F=0x0, S=1, 1, 0x00e000e0
+0, 68400, 86400, 0, 26555, 0x5629b584, S=1, 1, 0x00e000e0
+0, 72000, 79200, 0, 1141, 0x761b31e8, F=0x0, S=1, 1, 0x00e000e0
+0, 75600, 75600, 0, 717, 0x57746351, F=0x0, S=1, 1, 0x00e000e0
+0, 79200, 82800, 0, 693, 0x78b24263, F=0x0, S=1, 1, 0x00e000e0
+0, 82800, 100800, 0, 3417, 0x560dbc89, F=0x0, S=1, 1, 0x00e000e0
+0, 86400, 93600, 0, 1128, 0xc0f1383c, F=0x0, S=1, 1, 0x00e000e0
+0, 90000, 90000, 0, 650, 0xc3ad485e, F=0x0, S=1, 1, 0x00e000e0
+0, 93600, 97200, 0, 766, 0xd3e9757d, F=0x0, S=1, 1, 0x00e000e0
+0, 97200, 115200, 3600, 4268, 0xec1235b5, F=0x0, S=1, 1, 0x00e000e0
+0, 100800, 108000, 3600, 1119, 0x65f51fb7, F=0x0, S=1, 1, 0x00e000e0
+0, 104400, 104400, 3600, 766, 0x213b78d3, F=0x0, S=1, 1, 0x00e000e0
+0, 108000, 111600, 3600, 770, 0xa7537e6d, F=0x0, S=1, 1, 0x00e000e0
+0, 111600, 129600, 3600, 6349, 0xec225cf9, F=0x0, S=1, 1, 0x00e000e0
+0, 115200, 122400, 3600, 1188, 0x9dea396c, F=0x0, S=1, 1, 0x00e000e0
+0, 118800, 118800, 3600, 805, 0xdd9e88d0, F=0x0, S=1, 1, 0x00e000e0
+0, 122400, 126000, 3600, 752, 0x1f93730a, F=0x0, S=1, 1, 0x00e000e0
+0, 126000, 144000, 3600, 5502, 0x501bda5c, F=0x0, S=1, 1, 0x00e000e0
+0, 129600, 136800, 3600, 1240, 0x7e3661ea, F=0x0, S=1, 1, 0x00e000e0
+0, 133200, 133200, 3600, 830, 0xa8249f38, F=0x0, S=1, 1, 0x00e000e0
+0, 136800, 140400, 3600, 754, 0xab1c815e, F=0x0, S=1, 1, 0x00e000e0
+0, 140400, 158400, 3600, 5328, 0xd2c55ac6, F=0x0, S=1, 1, 0x00e000e0
+0, 144000, 151200, 3600, 1271, 0x46006870, F=0x0, S=1, 1, 0x00e000e0
+0, 147600, 147600, 3600, 849, 0x94dc99c7, F=0x0, S=1, 1, 0x00e000e0
+0, 151200, 154800, 3600, 753, 0xf4236cab, F=0x0, S=1, 1, 0x00e000e0
+0, 154800, 172800, 3600, 25825, 0xd5464dee, S=1, 1, 0x00e000e0
+0, 158400, 165600, 3600, 1206, 0x8ce84344, F=0x0, S=1, 1, 0x00e000e0
+0, 162000, 162000, 3600, 867, 0x312fa07d, F=0x0, S=1, 1, 0x00e000e0
+0, 165600, 169200, 3600, 719, 0x810666d1, F=0x0, S=1, 1, 0x00e000e0
+0, 169200, 187200, 3600, 3786, 0xa96a6825, F=0x0, S=1, 1, 0x00e000e0
+0, 172800, 180000, 3600, 1187, 0x77e649a2, F=0x0, S=1, 1, 0x00e000e0
+0, 176400, 176400, 3600, 750, 0x86da6d2e, F=0x0, S=1, 1, 0x00e000e0
+0, 180000, 183600, 3600, 815, 0xf09a9881, F=0x0, S=1, 1, 0x00e000e0
+0, 183600, 201600, 3600, 5275, 0xee3450bb, F=0x0, S=1, 1, 0x00e000e0
+0, 187200, 194400, 3600, 1352, 0x150a96e1, F=0x0, S=1, 1, 0x00e000e0
+0, 190800, 190800, 3600, 877, 0x6062a120, F=0x0, S=1, 1, 0x00e000e0
+0, 194400, 198000, 3600, 829, 0x5180988c, F=0x0, S=1, 1, 0x00e000e0
+0, 198000, 216000, 3600, 4421, 0x623aad33, F=0x0, S=1, 1, 0x00e000e0
+0, 201600, 208800, 3600, 1464, 0xd34dc851, F=0x0, S=1, 1, 0x00e000e0
+0, 205200, 205200, 3600, 903, 0xf63bbed0, F=0x0, S=1, 1, 0x00e000e0
+0, 208800, 212400, 3600, 717, 0xc17054b8, F=0x0, S=1, 1, 0x00e000e0
+0, 212400, 230400, 3600, 4787, 0x75e9400e, F=0x0, S=1, 1, 0x00e000e0
+0, 216000, 223200, 3600, 1435, 0xb01ccabb, F=0x0, S=1, 1, 0x00e000e0
+0, 219600, 219600, 3600, 851, 0x54bda291, F=0x0, S=1, 1, 0x00e000e0
+0, 223200, 226800, 3600, 809, 0x84e37fee, F=0x0, S=1, 1, 0x00e000e0
+0, 226800, 244800, 3600, 4541, 0xd4e5c0de, F=0x0, S=1, 1, 0x00e000e0
+0, 230400, 237600, 3600, 1545, 0x0099fc98, F=0x0, S=1, 1, 0x00e000e0
+0, 234000, 234000, 3600, 929, 0xfd72d049, F=0x0, S=1, 1, 0x00e000e0
+0, 237600, 241200, 3600, 829, 0xcfda9e96, F=0x0, S=1, 1, 0x00e000e0
+0, 241200, 259200, 3600, 24220, 0x5ca21d71, S=1, 1, 0x00e000e0
+0, 244800, 252000, 3600, 1422, 0xcde6cc34, F=0x0, S=1, 1, 0x00e000e0
+0, 248400, 248400, 3600, 883, 0xedacbe25, F=0x0, S=1, 1, 0x00e000e0
+0, 252000, 255600, 3600, 768, 0x89d774bc, F=0x0, S=1, 1, 0x00e000e0
+0, 255600, 273600, 3600, 3802, 0xea1d70d4, F=0x0, S=1, 1, 0x00e000e0
+0, 259200, 266400, 3600, 1284, 0x2c927097, F=0x0, S=1, 1, 0x00e000e0
+0, 262800, 262800, 3600, 745, 0x81076a7f, F=0x0, S=1, 1, 0x00e000e0
+0, 266400, 270000, 3600, 931, 0x3675dbfe, F=0x0, S=1, 1, 0x00e000e0
+0, 270000, 288000, 3600, 4830, 0x7a807a68, F=0x0, S=1, 1, 0x00e000e0
+0, 273600, 280800, 3600, 1446, 0x6224bc81, F=0x0, S=1, 1, 0x00e000e0
+0, 277200, 277200, 3600, 833, 0x56f78ae2, F=0x0, S=1, 1, 0x00e000e0
+0, 280800, 284400, 3600, 873, 0x9caeaf00, F=0x0, S=1, 1, 0x00e000e0
+0, 284400, 302400, 3600, 5167, 0x1703151f, F=0x0, S=1, 1, 0x00e000e0
+0, 288000, 295200, 3600, 1449, 0x0881b0d6, F=0x0, S=1, 1, 0x00e000e0
+0, 291600, 291600, 3600, 866, 0x0bffa719, F=0x0, S=1, 1, 0x00e000e0
+0, 295200, 298800, 3600, 874, 0xc243a65f, F=0x0, S=1, 1, 0x00e000e0
+0, 298800, 316800, 3600, 5426, 0x7c899c30, F=0x0, S=1, 1, 0x00e000e0
+0, 302400, 309600, 3600, 1574, 0x03b00f0d, F=0x0, S=1, 1, 0x00e000e0
+0, 306000, 306000, 3600, 860, 0x65cea74e, F=0x0, S=1, 1, 0x00e000e0
+0, 309600, 313200, 3600, 829, 0xffd795cd, F=0x0, S=1, 1, 0x00e000e0
+0, 313200, 331200, 3600, 5352, 0x59997996, F=0x0, S=1, 1, 0x00e000e0
+0, 316800, 324000, 3600, 1501, 0xb3b8f001, F=0x0, S=1, 1, 0x00e000e0
+0, 320400, 320400, 3600, 941, 0x92b0cb18, F=0x0, S=1, 1, 0x00e000e0
+0, 324000, 327600, 3600, 823, 0x3d548355, F=0x0, S=1, 1, 0x00e000e0
+0, 327600, 345600, 3600, 24042, 0x441e94fb, S=1, 1, 0x00e000e0
+0, 331200, 338400, 3600, 1582, 0x4f5d1049, F=0x0, S=1, 1, 0x00e000e0
+0, 334800, 334800, 3600, 945, 0x4f3cc9e8, F=0x0, S=1, 1, 0x00e000e0
+0, 338400, 342000, 3600, 815, 0x0ca790a4, F=0x0, S=1, 1, 0x00e000e0
+0, 342000, 360000, 3600, 4425, 0x1db2a088, F=0x0, S=1, 1, 0x00e000e0
+0, 345600, 352800, 3600, 1492, 0x881ce798, F=0x0, S=1, 1, 0x00e000e0
+0, 349200, 349200, 3600, 905, 0xbdd9c278, F=0x0, S=1, 1, 0x00e000e0
+0, 352800, 356400, 3600, 870, 0x64fbb0e1, F=0x0, S=1, 1, 0x00e000e0
+0, 356400, 374400, 3600, 5194, 0x138b1e1d, F=0x0, S=1, 1, 0x00e000e0
+0, 360000, 367200, 3600, 1483, 0xc5c9d717, F=0x0, S=1, 1, 0x00e000e0
+0, 363600, 363600, 3600, 977, 0x3648d9fc, F=0x0, S=1, 1, 0x00e000e0
+0, 367200, 370800, 3600, 834, 0x6c5d8969, F=0x0, S=1, 1, 0x00e000e0
+0, 370800, 388800, 3600, 6956, 0x6a548e0b, F=0x0, S=1, 1, 0x00e000e0
+0, 374400, 381600, 3600, 1187, 0x795f4163, F=0x0, S=1, 1, 0x00e000e0
+0, 378000, 378000, 3600, 925, 0x92bfc2fb, F=0x0, S=1, 1, 0x00e000e0
+0, 381600, 385200, 3600, 747, 0xea9978fc, F=0x0, S=1, 1, 0x00e000e0
+0, 385200, 403200, 3600, 5005, 0xc558c189, F=0x0, S=1, 1, 0x00e000e0
+0, 388800, 396000, 3600, 452, 0x7d92d9d8, F=0x0, S=1, 1, 0x00e000e0
+0, 392400, 392400, 3600, 784, 0xfd597a5f, F=0x0, S=1, 1, 0x00e000e0
+0, 396000, 399600, 3600, 199, 0x79b06355, F=0x0, S=1, 1, 0x00e000e0
+0, 399600, 417600, 3600, 1862, 0x22a2a06c, F=0x0, S=1, 1, 0x00e000e0
+0, 403200, 410400, 3600, 359, 0x11bdae52, F=0x0, S=1, 1, 0x00e000e0
+0, 406800, 406800, 3600, 235, 0xbec26964, F=0x0, S=1, 1, 0x00e000e0
+0, 410400, 414000, 3600, 221, 0x8380682c, F=0x0, S=1, 1, 0x00e000e0
+0, 414000, 432000, 3600, 22588, 0xf0ecf072, S=1, 1, 0x00e000e0
+0, 417600, 424800, 3600, 383, 0x4f3bb571, F=0x0, S=1, 1, 0x00e000e0
+0, 421200, 421200, 3600, 257, 0x22e87802, F=0x0, S=1, 1, 0x00e000e0
+0, 424800, 428400, 3600, 261, 0xdb988134, F=0x0, S=1, 1, 0x00e000e0
+0, 428400, 435600, 3600, 156, 0xd2c3406c, F=0x0, S=1, 1, 0x00e000e0
+0, 432000, 439200, 3600, 330, 0x150d9b60, F=0x0, S=1, 1, 0x00e000e0
+0, 435600, 446400, 3600, 324, 0x558194ee, F=0x0, S=1, 1, 0x00e000e0
+0, 439200, 442800, 3600, 191, 0x108e54d1, F=0x0, S=1, 1, 0x00e000e0
+0, 442800, 450000, 3600, 233, 0xac5b6486, F=0x0