mirror of
https://github.com/wader/fq.git
synced 2024-12-23 21:31:33 +03:00
mp4: More _time decoding
This commit is contained in:
parent
f1507f7f65
commit
f322e78e8e
@ -202,8 +202,8 @@ func init() {
|
|||||||
d.FieldU8("version")
|
d.FieldU8("version")
|
||||||
// TODO: values
|
// TODO: values
|
||||||
d.FieldU24("flags")
|
d.FieldU24("flags")
|
||||||
d.FieldU32("creation_time")
|
_ = decodeFieldTime(d, "creation_time")
|
||||||
d.FieldU32("modification_time")
|
_ = decodeFieldTime(d, "modification_time")
|
||||||
trackID := uint32(d.FieldU32("track_id"))
|
trackID := uint32(d.FieldU32("track_id"))
|
||||||
d.FieldU32("reserved1")
|
d.FieldU32("reserved1")
|
||||||
d.FieldU32("duration")
|
d.FieldU32("duration")
|
||||||
@ -230,8 +230,8 @@ func init() {
|
|||||||
// TODO: values
|
// TODO: values
|
||||||
d.FieldU24("flags")
|
d.FieldU24("flags")
|
||||||
// TODO: timestamps
|
// TODO: timestamps
|
||||||
d.FieldU32("creation_time")
|
_ = decodeFieldTime(d, "creation_time")
|
||||||
d.FieldU32("modification_time")
|
_ = decodeFieldTime(d, "modification_time")
|
||||||
d.FieldU32("time_scale")
|
d.FieldU32("time_scale")
|
||||||
d.FieldU32("duration")
|
d.FieldU32("duration")
|
||||||
decodeFieldLang(d, "language")
|
decodeFieldLang(d, "language")
|
||||||
|
8
format/mp4/testdata/aac.fqtest
vendored
8
format/mp4/testdata/aac.fqtest
vendored
@ -72,8 +72,8 @@ $ fq -d mp4 verbose /aac.mp4
|
|||||||
0x310| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x312-0x315.7 (4)
|
0x310| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x312-0x315.7 (4)
|
||||||
0x310| 00 | . | version: 0 0x316-0x316.7 (1)
|
0x310| 00 | . | version: 0 0x316-0x316.7 (1)
|
||||||
0x310| 00 00 03 | ... | flags: 3 0x317-0x319.7 (3)
|
0x310| 00 00 03 | ... | flags: 3 0x317-0x319.7 (3)
|
||||||
0x310| 00 00 00 00 | .... | creation_time: 0 0x31a-0x31d.7 (4)
|
0x310| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x31a-0x31d.7 (4)
|
||||||
0x310| 00 00| ..| modification_time: 0 0x31e-0x321.7 (4)
|
0x310| 00 00| ..| modification_time: 1904-01-04T00:00:00Z (0) 0x31e-0x321.7 (4)
|
||||||
0x320|00 00 |.. |
|
0x320|00 00 |.. |
|
||||||
0x320| 00 00 00 01 | .... | track_id: 1 0x322-0x325.7 (4)
|
0x320| 00 00 00 01 | .... | track_id: 1 0x322-0x325.7 (4)
|
||||||
0x320| 00 00 00 00 | .... | reserved1: 0 0x326-0x329.7 (4)
|
0x320| 00 00 00 00 | .... | reserved1: 0 0x326-0x329.7 (4)
|
||||||
@ -127,8 +127,8 @@ $ fq -d mp4 verbose /aac.mp4
|
|||||||
0x390| 00 | . | version: 0 0x39e-0x39e.7 (1)
|
0x390| 00 | . | version: 0 0x39e-0x39e.7 (1)
|
||||||
0x390| 00| .| flags: 0 0x39f-0x3a1.7 (3)
|
0x390| 00| .| flags: 0 0x39f-0x3a1.7 (3)
|
||||||
0x3a0|00 00 |.. |
|
0x3a0|00 00 |.. |
|
||||||
0x3a0| 00 00 00 00 | .... | creation_time: 0 0x3a2-0x3a5.7 (4)
|
0x3a0| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x3a2-0x3a5.7 (4)
|
||||||
0x3a0| 00 00 00 00 | .... | modification_time: 0 0x3a6-0x3a9.7 (4)
|
0x3a0| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x3a6-0x3a9.7 (4)
|
||||||
0x3a0| 00 00 ac 44 | ...D | time_scale: 44100 0x3aa-0x3ad.7 (4)
|
0x3a0| 00 00 ac 44 | ...D | time_scale: 44100 0x3aa-0x3ad.7 (4)
|
||||||
0x3a0| 00 00| ..| duration: 3229 0x3ae-0x3b1.7 (4)
|
0x3a0| 00 00| ..| duration: 3229 0x3ae-0x3b1.7 (4)
|
||||||
0x3b0|0c 9d |.. |
|
0x3b0|0c 9d |.. |
|
||||||
|
8
format/mp4/testdata/av1.fqtest
vendored
8
format/mp4/testdata/av1.fqtest
vendored
@ -65,8 +65,8 @@ $ fq -d mp4 verbose /av1.mp4
|
|||||||
0x1240|74 6b 68 64 |tkhd | type: "tkhd" (Track header, overall information about the track) 0x1240-0x1243.7 (4)
|
0x1240|74 6b 68 64 |tkhd | type: "tkhd" (Track header, overall information about the track) 0x1240-0x1243.7 (4)
|
||||||
0x1240| 00 | . | version: 0 0x1244-0x1244.7 (1)
|
0x1240| 00 | . | version: 0 0x1244-0x1244.7 (1)
|
||||||
0x1240| 00 00 03 | ... | flags: 3 0x1245-0x1247.7 (3)
|
0x1240| 00 00 03 | ... | flags: 3 0x1245-0x1247.7 (3)
|
||||||
0x1240| 00 00 00 00 | .... | creation_time: 0 0x1248-0x124b.7 (4)
|
0x1240| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x1248-0x124b.7 (4)
|
||||||
0x1240| 00 00 00 00| ....| modification_time: 0 0x124c-0x124f.7 (4)
|
0x1240| 00 00 00 00| ....| modification_time: 1904-01-04T00:00:00Z (0) 0x124c-0x124f.7 (4)
|
||||||
0x1250|00 00 00 01 |.... | track_id: 1 0x1250-0x1253.7 (4)
|
0x1250|00 00 00 01 |.... | track_id: 1 0x1250-0x1253.7 (4)
|
||||||
0x1250| 00 00 00 00 | .... | reserved1: 0 0x1254-0x1257.7 (4)
|
0x1250| 00 00 00 00 | .... | reserved1: 0 0x1254-0x1257.7 (4)
|
||||||
0x1250| 00 00 00 28 | ...( | duration: 40 0x1258-0x125b.7 (4)
|
0x1250| 00 00 00 28 | ...( | duration: 40 0x1258-0x125b.7 (4)
|
||||||
@ -112,8 +112,8 @@ $ fq -d mp4 verbose /av1.mp4
|
|||||||
0x12c0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x12c8-0x12cb.7 (4)
|
0x12c0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x12c8-0x12cb.7 (4)
|
||||||
0x12c0| 00 | . | version: 0 0x12cc-0x12cc.7 (1)
|
0x12c0| 00 | . | version: 0 0x12cc-0x12cc.7 (1)
|
||||||
0x12c0| 00 00 00| ...| flags: 0 0x12cd-0x12cf.7 (3)
|
0x12c0| 00 00 00| ...| flags: 0 0x12cd-0x12cf.7 (3)
|
||||||
0x12d0|00 00 00 00 |.... | creation_time: 0 0x12d0-0x12d3.7 (4)
|
0x12d0|00 00 00 00 |.... | creation_time: 1904-01-04T00:00:00Z (0) 0x12d0-0x12d3.7 (4)
|
||||||
0x12d0| 00 00 00 00 | .... | modification_time: 0 0x12d4-0x12d7.7 (4)
|
0x12d0| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x12d4-0x12d7.7 (4)
|
||||||
0x12d0| 00 00 32 00 | ..2. | time_scale: 12800 0x12d8-0x12db.7 (4)
|
0x12d0| 00 00 32 00 | ..2. | time_scale: 12800 0x12d8-0x12db.7 (4)
|
||||||
0x12d0| 00 00 02 00| ....| duration: 512 0x12dc-0x12df.7 (4)
|
0x12d0| 00 00 02 00| ....| duration: 512 0x12dc-0x12df.7 (4)
|
||||||
0x12e0|55 c4 |U. | language: "und" 0x12e0-0x12e1.7 (2)
|
0x12e0|55 c4 |U. | language: "und" 0x12e0-0x12e1.7 (2)
|
||||||
|
8
format/mp4/testdata/avc.fqtest
vendored
8
format/mp4/testdata/avc.fqtest
vendored
@ -65,8 +65,8 @@ $ fq -d mp4 verbose /avc.mp4
|
|||||||
0x0b70|74 6b 68 64 |tkhd | type: "tkhd" (Track header, overall information about the track) 0xb70-0xb73.7 (4)
|
0x0b70|74 6b 68 64 |tkhd | type: "tkhd" (Track header, overall information about the track) 0xb70-0xb73.7 (4)
|
||||||
0x0b70| 00 | . | version: 0 0xb74-0xb74.7 (1)
|
0x0b70| 00 | . | version: 0 0xb74-0xb74.7 (1)
|
||||||
0x0b70| 00 00 03 | ... | flags: 3 0xb75-0xb77.7 (3)
|
0x0b70| 00 00 03 | ... | flags: 3 0xb75-0xb77.7 (3)
|
||||||
0x0b70| 00 00 00 00 | .... | creation_time: 0 0xb78-0xb7b.7 (4)
|
0x0b70| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0xb78-0xb7b.7 (4)
|
||||||
0x0b70| 00 00 00 00| ....| modification_time: 0 0xb7c-0xb7f.7 (4)
|
0x0b70| 00 00 00 00| ....| modification_time: 1904-01-04T00:00:00Z (0) 0xb7c-0xb7f.7 (4)
|
||||||
0x0b80|00 00 00 01 |.... | track_id: 1 0xb80-0xb83.7 (4)
|
0x0b80|00 00 00 01 |.... | track_id: 1 0xb80-0xb83.7 (4)
|
||||||
0x0b80| 00 00 00 00 | .... | reserved1: 0 0xb84-0xb87.7 (4)
|
0x0b80| 00 00 00 00 | .... | reserved1: 0 0xb84-0xb87.7 (4)
|
||||||
0x0b80| 00 00 00 28 | ...( | duration: 40 0xb88-0xb8b.7 (4)
|
0x0b80| 00 00 00 28 | ...( | duration: 40 0xb88-0xb8b.7 (4)
|
||||||
@ -112,8 +112,8 @@ $ fq -d mp4 verbose /avc.mp4
|
|||||||
0x0bf0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0xbf8-0xbfb.7 (4)
|
0x0bf0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0xbf8-0xbfb.7 (4)
|
||||||
0x0bf0| 00 | . | version: 0 0xbfc-0xbfc.7 (1)
|
0x0bf0| 00 | . | version: 0 0xbfc-0xbfc.7 (1)
|
||||||
0x0bf0| 00 00 00| ...| flags: 0 0xbfd-0xbff.7 (3)
|
0x0bf0| 00 00 00| ...| flags: 0 0xbfd-0xbff.7 (3)
|
||||||
0x0c00|00 00 00 00 |.... | creation_time: 0 0xc00-0xc03.7 (4)
|
0x0c00|00 00 00 00 |.... | creation_time: 1904-01-04T00:00:00Z (0) 0xc00-0xc03.7 (4)
|
||||||
0x0c00| 00 00 00 00 | .... | modification_time: 0 0xc04-0xc07.7 (4)
|
0x0c00| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0xc04-0xc07.7 (4)
|
||||||
0x0c00| 00 00 32 00 | ..2. | time_scale: 12800 0xc08-0xc0b.7 (4)
|
0x0c00| 00 00 32 00 | ..2. | time_scale: 12800 0xc08-0xc0b.7 (4)
|
||||||
0x0c00| 00 00 02 00| ....| duration: 512 0xc0c-0xc0f.7 (4)
|
0x0c00| 00 00 02 00| ....| duration: 512 0xc0c-0xc0f.7 (4)
|
||||||
0x0c10|55 c4 |U. | language: "und" 0xc10-0xc11.7 (2)
|
0x0c10|55 c4 |U. | language: "und" 0xc10-0xc11.7 (2)
|
||||||
|
8
format/mp4/testdata/flac.fqtest
vendored
8
format/mp4/testdata/flac.fqtest
vendored
@ -73,8 +73,8 @@ $ fq -d mp4 verbose /flac.mp4
|
|||||||
0x300| 00 | . | version: 0 0x30e-0x30e.7 (1)
|
0x300| 00 | . | version: 0 0x30e-0x30e.7 (1)
|
||||||
0x300| 00| .| flags: 3 0x30f-0x311.7 (3)
|
0x300| 00| .| flags: 3 0x30f-0x311.7 (3)
|
||||||
0x310|00 03 |.. |
|
0x310|00 03 |.. |
|
||||||
0x310| 00 00 00 00 | .... | creation_time: 0 0x312-0x315.7 (4)
|
0x310| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x312-0x315.7 (4)
|
||||||
0x310| 00 00 00 00 | .... | modification_time: 0 0x316-0x319.7 (4)
|
0x310| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x316-0x319.7 (4)
|
||||||
0x310| 00 00 00 01 | .... | track_id: 1 0x31a-0x31d.7 (4)
|
0x310| 00 00 00 01 | .... | track_id: 1 0x31a-0x31d.7 (4)
|
||||||
0x310| 00 00| ..| reserved1: 0 0x31e-0x321.7 (4)
|
0x310| 00 00| ..| reserved1: 0 0x31e-0x321.7 (4)
|
||||||
0x320|00 00 |.. |
|
0x320|00 00 |.. |
|
||||||
@ -126,8 +126,8 @@ $ fq -d mp4 verbose /flac.mp4
|
|||||||
0x390| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x392-0x395.7 (4)
|
0x390| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x392-0x395.7 (4)
|
||||||
0x390| 00 | . | version: 0 0x396-0x396.7 (1)
|
0x390| 00 | . | version: 0 0x396-0x396.7 (1)
|
||||||
0x390| 00 00 00 | ... | flags: 0 0x397-0x399.7 (3)
|
0x390| 00 00 00 | ... | flags: 0 0x397-0x399.7 (3)
|
||||||
0x390| 00 00 00 00 | .... | creation_time: 0 0x39a-0x39d.7 (4)
|
0x390| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x39a-0x39d.7 (4)
|
||||||
0x390| 00 00| ..| modification_time: 0 0x39e-0x3a1.7 (4)
|
0x390| 00 00| ..| modification_time: 1904-01-04T00:00:00Z (0) 0x39e-0x3a1.7 (4)
|
||||||
0x3a0|00 00 |.. |
|
0x3a0|00 00 |.. |
|
||||||
0x3a0| 00 00 ac 44 | ...D | time_scale: 44100 0x3a2-0x3a5.7 (4)
|
0x3a0| 00 00 ac 44 | ...D | time_scale: 44100 0x3a2-0x3a5.7 (4)
|
||||||
0x3a0| 00 00 08 9d | .... | duration: 2205 0x3a6-0x3a9.7 (4)
|
0x3a0| 00 00 08 9d | .... | duration: 2205 0x3a6-0x3a9.7 (4)
|
||||||
|
16
format/mp4/testdata/fragmented.fqtest
vendored
16
format/mp4/testdata/fragmented.fqtest
vendored
@ -57,8 +57,8 @@ $ fq -d mp4 verbose /fragmented.mp4
|
|||||||
0x00a0| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0xa4-0xa7.7 (4)
|
0x00a0| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0xa4-0xa7.7 (4)
|
||||||
0x00a0| 00 | . | version: 0 0xa8-0xa8.7 (1)
|
0x00a0| 00 | . | version: 0 0xa8-0xa8.7 (1)
|
||||||
0x00a0| 00 00 03 | ... | flags: 3 0xa9-0xab.7 (3)
|
0x00a0| 00 00 03 | ... | flags: 3 0xa9-0xab.7 (3)
|
||||||
0x00a0| 00 00 00 00| ....| creation_time: 0 0xac-0xaf.7 (4)
|
0x00a0| 00 00 00 00| ....| creation_time: 1904-01-04T00:00:00Z (0) 0xac-0xaf.7 (4)
|
||||||
0x00b0|00 00 00 00 |.... | modification_time: 0 0xb0-0xb3.7 (4)
|
0x00b0|00 00 00 00 |.... | modification_time: 1904-01-04T00:00:00Z (0) 0xb0-0xb3.7 (4)
|
||||||
0x00b0| 00 00 00 01 | .... | track_id: 1 0xb4-0xb7.7 (4)
|
0x00b0| 00 00 00 01 | .... | track_id: 1 0xb4-0xb7.7 (4)
|
||||||
0x00b0| 00 00 00 00 | .... | reserved1: 0 0xb8-0xbb.7 (4)
|
0x00b0| 00 00 00 00 | .... | reserved1: 0 0xb8-0xbb.7 (4)
|
||||||
0x00b0| 00 00 00 00| ....| duration: 0 0xbc-0xbf.7 (4)
|
0x00b0| 00 00 00 00| ....| duration: 0 0xbc-0xbf.7 (4)
|
||||||
@ -88,8 +88,8 @@ $ fq -d mp4 verbose /fragmented.mp4
|
|||||||
0x0100| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x108-0x10b.7 (4)
|
0x0100| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x108-0x10b.7 (4)
|
||||||
0x0100| 00 | . | version: 0 0x10c-0x10c.7 (1)
|
0x0100| 00 | . | version: 0 0x10c-0x10c.7 (1)
|
||||||
0x0100| 00 00 00| ...| flags: 0 0x10d-0x10f.7 (3)
|
0x0100| 00 00 00| ...| flags: 0 0x10d-0x10f.7 (3)
|
||||||
0x0110|00 00 00 00 |.... | creation_time: 0 0x110-0x113.7 (4)
|
0x0110|00 00 00 00 |.... | creation_time: 1904-01-04T00:00:00Z (0) 0x110-0x113.7 (4)
|
||||||
0x0110| 00 00 00 00 | .... | modification_time: 0 0x114-0x117.7 (4)
|
0x0110| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x114-0x117.7 (4)
|
||||||
0x0110| 00 00 32 00 | ..2. | time_scale: 12800 0x118-0x11b.7 (4)
|
0x0110| 00 00 32 00 | ..2. | time_scale: 12800 0x118-0x11b.7 (4)
|
||||||
0x0110| 00 00 00 00| ....| duration: 0 0x11c-0x11f.7 (4)
|
0x0110| 00 00 00 00| ....| duration: 0 0x11c-0x11f.7 (4)
|
||||||
0x0120|55 c4 |U. | language: "und" 0x120-0x121.7 (2)
|
0x0120|55 c4 |U. | language: "und" 0x120-0x121.7 (2)
|
||||||
@ -310,8 +310,8 @@ $ fq -d mp4 verbose /fragmented.mp4
|
|||||||
0x0290|74 6b 68 64 |tkhd | type: "tkhd" (Track header, overall information about the track) 0x290-0x293.7 (4)
|
0x0290|74 6b 68 64 |tkhd | type: "tkhd" (Track header, overall information about the track) 0x290-0x293.7 (4)
|
||||||
0x0290| 00 | . | version: 0 0x294-0x294.7 (1)
|
0x0290| 00 | . | version: 0 0x294-0x294.7 (1)
|
||||||
0x0290| 00 00 03 | ... | flags: 3 0x295-0x297.7 (3)
|
0x0290| 00 00 03 | ... | flags: 3 0x295-0x297.7 (3)
|
||||||
0x0290| 00 00 00 00 | .... | creation_time: 0 0x298-0x29b.7 (4)
|
0x0290| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x298-0x29b.7 (4)
|
||||||
0x0290| 00 00 00 00| ....| modification_time: 0 0x29c-0x29f.7 (4)
|
0x0290| 00 00 00 00| ....| modification_time: 1904-01-04T00:00:00Z (0) 0x29c-0x29f.7 (4)
|
||||||
0x02a0|00 00 00 02 |.... | track_id: 2 0x2a0-0x2a3.7 (4)
|
0x02a0|00 00 00 02 |.... | track_id: 2 0x2a0-0x2a3.7 (4)
|
||||||
0x02a0| 00 00 00 00 | .... | reserved1: 0 0x2a4-0x2a7.7 (4)
|
0x02a0| 00 00 00 00 | .... | reserved1: 0 0x2a4-0x2a7.7 (4)
|
||||||
0x02a0| 00 00 00 00 | .... | duration: 0 0x2a8-0x2ab.7 (4)
|
0x02a0| 00 00 00 00 | .... | duration: 0 0x2a8-0x2ab.7 (4)
|
||||||
@ -342,8 +342,8 @@ $ fq -d mp4 verbose /fragmented.mp4
|
|||||||
0x02f0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x2f4-0x2f7.7 (4)
|
0x02f0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x2f4-0x2f7.7 (4)
|
||||||
0x02f0| 00 | . | version: 0 0x2f8-0x2f8.7 (1)
|
0x02f0| 00 | . | version: 0 0x2f8-0x2f8.7 (1)
|
||||||
0x02f0| 00 00 00 | ... | flags: 0 0x2f9-0x2fb.7 (3)
|
0x02f0| 00 00 00 | ... | flags: 0 0x2f9-0x2fb.7 (3)
|
||||||
0x02f0| 00 00 00 00| ....| creation_time: 0 0x2fc-0x2ff.7 (4)
|
0x02f0| 00 00 00 00| ....| creation_time: 1904-01-04T00:00:00Z (0) 0x2fc-0x2ff.7 (4)
|
||||||
0x0300|00 00 00 00 |.... | modification_time: 0 0x300-0x303.7 (4)
|
0x0300|00 00 00 00 |.... | modification_time: 1904-01-04T00:00:00Z (0) 0x300-0x303.7 (4)
|
||||||
0x0300| 00 00 ac 44 | ...D | time_scale: 44100 0x304-0x307.7 (4)
|
0x0300| 00 00 ac 44 | ...D | time_scale: 44100 0x304-0x307.7 (4)
|
||||||
0x0300| 00 00 00 00 | .... | duration: 0 0x308-0x30b.7 (4)
|
0x0300| 00 00 00 00 | .... | duration: 0 0x308-0x30b.7 (4)
|
||||||
0x0300| 55 c4 | U. | language: "und" 0x30c-0x30d.7 (2)
|
0x0300| 55 c4 | U. | language: "und" 0x30c-0x30d.7 (2)
|
||||||
|
8
format/mp4/testdata/hevc.fqtest
vendored
8
format/mp4/testdata/hevc.fqtest
vendored
@ -72,8 +72,8 @@ $ fq -d mp4 verbose /hevc.mp4
|
|||||||
0x0900| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x901-0x904.7 (4)
|
0x0900| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x901-0x904.7 (4)
|
||||||
0x0900| 00 | . | version: 0 0x905-0x905.7 (1)
|
0x0900| 00 | . | version: 0 0x905-0x905.7 (1)
|
||||||
0x0900| 00 00 03 | ... | flags: 3 0x906-0x908.7 (3)
|
0x0900| 00 00 03 | ... | flags: 3 0x906-0x908.7 (3)
|
||||||
0x0900| 00 00 00 00 | .... | creation_time: 0 0x909-0x90c.7 (4)
|
0x0900| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x909-0x90c.7 (4)
|
||||||
0x0900| 00 00 00| ...| modification_time: 0 0x90d-0x910.7 (4)
|
0x0900| 00 00 00| ...| modification_time: 1904-01-04T00:00:00Z (0) 0x90d-0x910.7 (4)
|
||||||
0x0910|00 |. |
|
0x0910|00 |. |
|
||||||
0x0910| 00 00 00 01 | .... | track_id: 1 0x911-0x914.7 (4)
|
0x0910| 00 00 00 01 | .... | track_id: 1 0x911-0x914.7 (4)
|
||||||
0x0910| 00 00 00 00 | .... | reserved1: 0 0x915-0x918.7 (4)
|
0x0910| 00 00 00 00 | .... | reserved1: 0 0x915-0x918.7 (4)
|
||||||
@ -127,8 +127,8 @@ $ fq -d mp4 verbose /hevc.mp4
|
|||||||
0x0980| 00 | . | version: 0 0x98d-0x98d.7 (1)
|
0x0980| 00 | . | version: 0 0x98d-0x98d.7 (1)
|
||||||
0x0980| 00 00| ..| flags: 0 0x98e-0x990.7 (3)
|
0x0980| 00 00| ..| flags: 0 0x98e-0x990.7 (3)
|
||||||
0x0990|00 |. |
|
0x0990|00 |. |
|
||||||
0x0990| 00 00 00 00 | .... | creation_time: 0 0x991-0x994.7 (4)
|
0x0990| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x991-0x994.7 (4)
|
||||||
0x0990| 00 00 00 00 | .... | modification_time: 0 0x995-0x998.7 (4)
|
0x0990| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x995-0x998.7 (4)
|
||||||
0x0990| 00 00 32 00 | ..2. | time_scale: 12800 0x999-0x99c.7 (4)
|
0x0990| 00 00 32 00 | ..2. | time_scale: 12800 0x999-0x99c.7 (4)
|
||||||
0x0990| 00 00 02| ...| duration: 512 0x99d-0x9a0.7 (4)
|
0x0990| 00 00 02| ...| duration: 512 0x99d-0x9a0.7 (4)
|
||||||
0x09a0|00 |. |
|
0x09a0|00 |. |
|
||||||
|
8
format/mp4/testdata/mp3.fqtest
vendored
8
format/mp4/testdata/mp3.fqtest
vendored
@ -73,8 +73,8 @@ $ fq -d mp4 verbose /mp3.mp4
|
|||||||
0x320|68 64 |hd |
|
0x320|68 64 |hd |
|
||||||
0x320| 00 | . | version: 0 0x322-0x322.7 (1)
|
0x320| 00 | . | version: 0 0x322-0x322.7 (1)
|
||||||
0x320| 00 00 03 | ... | flags: 3 0x323-0x325.7 (3)
|
0x320| 00 00 03 | ... | flags: 3 0x323-0x325.7 (3)
|
||||||
0x320| 00 00 00 00 | .... | creation_time: 0 0x326-0x329.7 (4)
|
0x320| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x326-0x329.7 (4)
|
||||||
0x320| 00 00 00 00 | .... | modification_time: 0 0x32a-0x32d.7 (4)
|
0x320| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x32a-0x32d.7 (4)
|
||||||
0x320| 00 00| ..| track_id: 1 0x32e-0x331.7 (4)
|
0x320| 00 00| ..| track_id: 1 0x32e-0x331.7 (4)
|
||||||
0x330|00 01 |.. |
|
0x330|00 01 |.. |
|
||||||
0x330| 00 00 00 00 | .... | reserved1: 0 0x332-0x335.7 (4)
|
0x330| 00 00 00 00 | .... | reserved1: 0 0x332-0x335.7 (4)
|
||||||
@ -127,9 +127,9 @@ $ fq -d mp4 verbose /mp3.mp4
|
|||||||
0x3a0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x3a6-0x3a9.7 (4)
|
0x3a0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x3a6-0x3a9.7 (4)
|
||||||
0x3a0| 00 | . | version: 0 0x3aa-0x3aa.7 (1)
|
0x3a0| 00 | . | version: 0 0x3aa-0x3aa.7 (1)
|
||||||
0x3a0| 00 00 00 | ... | flags: 0 0x3ab-0x3ad.7 (3)
|
0x3a0| 00 00 00 | ... | flags: 0 0x3ab-0x3ad.7 (3)
|
||||||
0x3a0| 00 00| ..| creation_time: 0 0x3ae-0x3b1.7 (4)
|
0x3a0| 00 00| ..| creation_time: 1904-01-04T00:00:00Z (0) 0x3ae-0x3b1.7 (4)
|
||||||
0x3b0|00 00 |.. |
|
0x3b0|00 00 |.. |
|
||||||
0x3b0| 00 00 00 00 | .... | modification_time: 0 0x3b2-0x3b5.7 (4)
|
0x3b0| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x3b2-0x3b5.7 (4)
|
||||||
0x3b0| 00 00 ac 44 | ...D | time_scale: 44100 0x3b6-0x3b9.7 (4)
|
0x3b0| 00 00 ac 44 | ...D | time_scale: 44100 0x3b6-0x3b9.7 (4)
|
||||||
0x3b0| 00 00 0c ee | .... | duration: 3310 0x3ba-0x3bd.7 (4)
|
0x3b0| 00 00 0c ee | .... | duration: 3310 0x3ba-0x3bd.7 (4)
|
||||||
0x3b0| 55 c4| U.| language: "und" 0x3be-0x3bf.7 (2)
|
0x3b0| 55 c4| U.| language: "und" 0x3be-0x3bf.7 (2)
|
||||||
|
8
format/mp4/testdata/mpeg2.fqtest
vendored
8
format/mp4/testdata/mpeg2.fqtest
vendored
@ -71,9 +71,9 @@ $ fq -d mp4 verbose /mpeg2.mp4
|
|||||||
0x2020| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x2026-0x2029.7 (4)
|
0x2020| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x2026-0x2029.7 (4)
|
||||||
0x2020| 00 | . | version: 0 0x202a-0x202a.7 (1)
|
0x2020| 00 | . | version: 0 0x202a-0x202a.7 (1)
|
||||||
0x2020| 00 00 03 | ... | flags: 3 0x202b-0x202d.7 (3)
|
0x2020| 00 00 03 | ... | flags: 3 0x202b-0x202d.7 (3)
|
||||||
0x2020| 00 00| ..| creation_time: 0 0x202e-0x2031.7 (4)
|
0x2020| 00 00| ..| creation_time: 1904-01-04T00:00:00Z (0) 0x202e-0x2031.7 (4)
|
||||||
0x2030|00 00 |.. |
|
0x2030|00 00 |.. |
|
||||||
0x2030| 00 00 00 00 | .... | modification_time: 0 0x2032-0x2035.7 (4)
|
0x2030| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x2032-0x2035.7 (4)
|
||||||
0x2030| 00 00 00 01 | .... | track_id: 1 0x2036-0x2039.7 (4)
|
0x2030| 00 00 00 01 | .... | track_id: 1 0x2036-0x2039.7 (4)
|
||||||
0x2030| 00 00 00 00 | .... | reserved1: 0 0x203a-0x203d.7 (4)
|
0x2030| 00 00 00 00 | .... | reserved1: 0 0x203a-0x203d.7 (4)
|
||||||
0x2030| 00 00| ..| duration: 40 0x203e-0x2041.7 (4)
|
0x2030| 00 00| ..| duration: 40 0x203e-0x2041.7 (4)
|
||||||
@ -125,8 +125,8 @@ $ fq -d mp4 verbose /mpeg2.mp4
|
|||||||
0x20b0|68 64 |hd |
|
0x20b0|68 64 |hd |
|
||||||
0x20b0| 00 | . | version: 0 0x20b2-0x20b2.7 (1)
|
0x20b0| 00 | . | version: 0 0x20b2-0x20b2.7 (1)
|
||||||
0x20b0| 00 00 00 | ... | flags: 0 0x20b3-0x20b5.7 (3)
|
0x20b0| 00 00 00 | ... | flags: 0 0x20b3-0x20b5.7 (3)
|
||||||
0x20b0| 00 00 00 00 | .... | creation_time: 0 0x20b6-0x20b9.7 (4)
|
0x20b0| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x20b6-0x20b9.7 (4)
|
||||||
0x20b0| 00 00 00 00 | .... | modification_time: 0 0x20ba-0x20bd.7 (4)
|
0x20b0| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x20ba-0x20bd.7 (4)
|
||||||
0x20b0| 00 00| ..| time_scale: 12800 0x20be-0x20c1.7 (4)
|
0x20b0| 00 00| ..| time_scale: 12800 0x20be-0x20c1.7 (4)
|
||||||
0x20c0|32 00 |2. |
|
0x20c0|32 00 |2. |
|
||||||
0x20c0| 00 00 02 00 | .... | duration: 512 0x20c2-0x20c5.7 (4)
|
0x20c0| 00 00 02 00 | .... | duration: 512 0x20c2-0x20c5.7 (4)
|
||||||
|
8
format/mp4/testdata/opus.fqtest
vendored
8
format/mp4/testdata/opus.fqtest
vendored
@ -72,9 +72,9 @@ $ fq -d mp4 verbose /opus.mp4
|
|||||||
0x210| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x217-0x21a.7 (4)
|
0x210| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x217-0x21a.7 (4)
|
||||||
0x210| 00 | . | version: 0 0x21b-0x21b.7 (1)
|
0x210| 00 | . | version: 0 0x21b-0x21b.7 (1)
|
||||||
0x210| 00 00 03 | ... | flags: 3 0x21c-0x21e.7 (3)
|
0x210| 00 00 03 | ... | flags: 3 0x21c-0x21e.7 (3)
|
||||||
0x210| 00| .| creation_time: 0 0x21f-0x222.7 (4)
|
0x210| 00| .| creation_time: 1904-01-04T00:00:00Z (0) 0x21f-0x222.7 (4)
|
||||||
0x220|00 00 00 |... |
|
0x220|00 00 00 |... |
|
||||||
0x220| 00 00 00 00 | .... | modification_time: 0 0x223-0x226.7 (4)
|
0x220| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x223-0x226.7 (4)
|
||||||
0x220| 00 00 00 01 | .... | track_id: 1 0x227-0x22a.7 (4)
|
0x220| 00 00 00 01 | .... | track_id: 1 0x227-0x22a.7 (4)
|
||||||
0x220| 00 00 00 00 | .... | reserved1: 0 0x22b-0x22e.7 (4)
|
0x220| 00 00 00 00 | .... | reserved1: 0 0x22b-0x22e.7 (4)
|
||||||
0x220| 00| .| duration: 53 0x22f-0x232.7 (4)
|
0x220| 00| .| duration: 53 0x22f-0x232.7 (4)
|
||||||
@ -126,8 +126,8 @@ $ fq -d mp4 verbose /opus.mp4
|
|||||||
0x2a0|64 68 64 |dhd |
|
0x2a0|64 68 64 |dhd |
|
||||||
0x2a0| 00 | . | version: 0 0x2a3-0x2a3.7 (1)
|
0x2a0| 00 | . | version: 0 0x2a3-0x2a3.7 (1)
|
||||||
0x2a0| 00 00 00 | ... | flags: 0 0x2a4-0x2a6.7 (3)
|
0x2a0| 00 00 00 | ... | flags: 0 0x2a4-0x2a6.7 (3)
|
||||||
0x2a0| 00 00 00 00 | .... | creation_time: 0 0x2a7-0x2aa.7 (4)
|
0x2a0| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x2a7-0x2aa.7 (4)
|
||||||
0x2a0| 00 00 00 00 | .... | modification_time: 0 0x2ab-0x2ae.7 (4)
|
0x2a0| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x2ab-0x2ae.7 (4)
|
||||||
0x2a0| 00| .| time_scale: 48000 0x2af-0x2b2.7 (4)
|
0x2a0| 00| .| time_scale: 48000 0x2af-0x2b2.7 (4)
|
||||||
0x2b0|00 bb 80 |... |
|
0x2b0|00 bb 80 |... |
|
||||||
0x2b0| 00 00 09 d8 | .... | duration: 2520 0x2b3-0x2b6.7 (4)
|
0x2b0| 00 00 09 d8 | .... | duration: 2520 0x2b3-0x2b6.7 (4)
|
||||||
|
8
format/mp4/testdata/vorbis.fqtest
vendored
8
format/mp4/testdata/vorbis.fqtest
vendored
@ -73,8 +73,8 @@ $ fq -d mp4 verbose /vorbis.mp4
|
|||||||
0x0260|64 |d |
|
0x0260|64 |d |
|
||||||
0x0260| 00 | . | version: 0 0x261-0x261.7 (1)
|
0x0260| 00 | . | version: 0 0x261-0x261.7 (1)
|
||||||
0x0260| 00 00 03 | ... | flags: 3 0x262-0x264.7 (3)
|
0x0260| 00 00 03 | ... | flags: 3 0x262-0x264.7 (3)
|
||||||
0x0260| 00 00 00 00 | .... | creation_time: 0 0x265-0x268.7 (4)
|
0x0260| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x265-0x268.7 (4)
|
||||||
0x0260| 00 00 00 00 | .... | modification_time: 0 0x269-0x26c.7 (4)
|
0x0260| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x269-0x26c.7 (4)
|
||||||
0x0260| 00 00 00| ...| track_id: 1 0x26d-0x270.7 (4)
|
0x0260| 00 00 00| ...| track_id: 1 0x26d-0x270.7 (4)
|
||||||
0x0270|01 |. |
|
0x0270|01 |. |
|
||||||
0x0270| 00 00 00 00 | .... | reserved1: 0 0x271-0x274.7 (4)
|
0x0270| 00 00 00 00 | .... | reserved1: 0 0x271-0x274.7 (4)
|
||||||
@ -127,9 +127,9 @@ $ fq -d mp4 verbose /vorbis.mp4
|
|||||||
0x02e0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x2e5-0x2e8.7 (4)
|
0x02e0| 6d 64 68 64 | mdhd | type: "mdhd" (Media header, overall information about the media) 0x2e5-0x2e8.7 (4)
|
||||||
0x02e0| 00 | . | version: 0 0x2e9-0x2e9.7 (1)
|
0x02e0| 00 | . | version: 0 0x2e9-0x2e9.7 (1)
|
||||||
0x02e0| 00 00 00 | ... | flags: 0 0x2ea-0x2ec.7 (3)
|
0x02e0| 00 00 00 | ... | flags: 0 0x2ea-0x2ec.7 (3)
|
||||||
0x02e0| 00 00 00| ...| creation_time: 0 0x2ed-0x2f0.7 (4)
|
0x02e0| 00 00 00| ...| creation_time: 1904-01-04T00:00:00Z (0) 0x2ed-0x2f0.7 (4)
|
||||||
0x02f0|00 |. |
|
0x02f0|00 |. |
|
||||||
0x02f0| 00 00 00 00 | .... | modification_time: 0 0x2f1-0x2f4.7 (4)
|
0x02f0| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x2f1-0x2f4.7 (4)
|
||||||
0x02f0| 00 00 ac 44 | ...D | time_scale: 44100 0x2f5-0x2f8.7 (4)
|
0x02f0| 00 00 ac 44 | ...D | time_scale: 44100 0x2f5-0x2f8.7 (4)
|
||||||
0x02f0| 00 00 08 c0 | .... | duration: 2240 0x2f9-0x2fc.7 (4)
|
0x02f0| 00 00 08 c0 | .... | duration: 2240 0x2f9-0x2fc.7 (4)
|
||||||
0x02f0| 55 c4 | U. | language: "und" 0x2fd-0x2fe.7 (2)
|
0x02f0| 55 c4 | U. | language: "und" 0x2fd-0x2fe.7 (2)
|
||||||
|
8
format/mp4/testdata/vp9.fqtest
vendored
8
format/mp4/testdata/vp9.fqtest
vendored
@ -65,8 +65,8 @@ $ fq -d mp4 verbose /vp9.mp4
|
|||||||
0x15e0| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x15e4-0x15e7.7 (4)
|
0x15e0| 74 6b 68 64 | tkhd | type: "tkhd" (Track header, overall information about the track) 0x15e4-0x15e7.7 (4)
|
||||||
0x15e0| 00 | . | version: 0 0x15e8-0x15e8.7 (1)
|
0x15e0| 00 | . | version: 0 0x15e8-0x15e8.7 (1)
|
||||||
0x15e0| 00 00 03 | ... | flags: 3 0x15e9-0x15eb.7 (3)
|
0x15e0| 00 00 03 | ... | flags: 3 0x15e9-0x15eb.7 (3)
|
||||||
0x15e0| 00 00 00 00| ....| creation_time: 0 0x15ec-0x15ef.7 (4)
|
0x15e0| 00 00 00 00| ....| creation_time: 1904-01-04T00:00:00Z (0) 0x15ec-0x15ef.7 (4)
|
||||||
0x15f0|00 00 00 00 |.... | modification_time: 0 0x15f0-0x15f3.7 (4)
|
0x15f0|00 00 00 00 |.... | modification_time: 1904-01-04T00:00:00Z (0) 0x15f0-0x15f3.7 (4)
|
||||||
0x15f0| 00 00 00 01 | .... | track_id: 1 0x15f4-0x15f7.7 (4)
|
0x15f0| 00 00 00 01 | .... | track_id: 1 0x15f4-0x15f7.7 (4)
|
||||||
0x15f0| 00 00 00 00 | .... | reserved1: 0 0x15f8-0x15fb.7 (4)
|
0x15f0| 00 00 00 00 | .... | reserved1: 0 0x15f8-0x15fb.7 (4)
|
||||||
0x15f0| 00 00 00 28| ...(| duration: 40 0x15fc-0x15ff.7 (4)
|
0x15f0| 00 00 00 28| ...(| duration: 40 0x15fc-0x15ff.7 (4)
|
||||||
@ -111,8 +111,8 @@ $ fq -d mp4 verbose /vp9.mp4
|
|||||||
0x1660| 6d 64 68 64| mdhd| type: "mdhd" (Media header, overall information about the media) 0x166c-0x166f.7 (4)
|
0x1660| 6d 64 68 64| mdhd| type: "mdhd" (Media header, overall information about the media) 0x166c-0x166f.7 (4)
|
||||||
0x1670|00 |. | version: 0 0x1670-0x1670.7 (1)
|
0x1670|00 |. | version: 0 0x1670-0x1670.7 (1)
|
||||||
0x1670| 00 00 00 | ... | flags: 0 0x1671-0x1673.7 (3)
|
0x1670| 00 00 00 | ... | flags: 0 0x1671-0x1673.7 (3)
|
||||||
0x1670| 00 00 00 00 | .... | creation_time: 0 0x1674-0x1677.7 (4)
|
0x1670| 00 00 00 00 | .... | creation_time: 1904-01-04T00:00:00Z (0) 0x1674-0x1677.7 (4)
|
||||||
0x1670| 00 00 00 00 | .... | modification_time: 0 0x1678-0x167b.7 (4)
|
0x1670| 00 00 00 00 | .... | modification_time: 1904-01-04T00:00:00Z (0) 0x1678-0x167b.7 (4)
|
||||||
0x1670| 00 00 32 00| ..2.| time_scale: 12800 0x167c-0x167f.7 (4)
|
0x1670| 00 00 32 00| ..2.| time_scale: 12800 0x167c-0x167f.7 (4)
|
||||||
0x1680|00 00 02 00 |.... | duration: 512 0x1680-0x1683.7 (4)
|
0x1680|00 00 02 00 |.... | duration: 512 0x1680-0x1683.7 (4)
|
||||||
0x1680| 55 c4 | U. | language: "und" 0x1684-0x1685.7 (2)
|
0x1680| 55 c4 | U. | language: "und" 0x1684-0x1685.7 (2)
|
||||||
|
Loading…
Reference in New Issue
Block a user