2021-11-23 13:24:09 +03:00
|
|
|
# ffmpeg -y -f lavfi -i anoisesrc -lpc_passes 1 -strict -2 -c:a flac -t 50000s size64.mp4
|
2022-11-20 21:22:16 +03:00
|
|
|
# fq -d bytes '.[0:100]' size64.mp4 > size64
|
2021-11-23 13:24:09 +03:00
|
|
|
# TODO: test that don't uses decode failure?
|
2022-05-21 20:33:52 +03:00
|
|
|
$ fq -d mp4 '.boxes[] | d' size64
|
2022-05-20 13:38:43 +03:00
|
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.boxes[0]{}: box
|
2021-11-23 13:24:09 +03:00
|
|
|
0x00|00 00 00 1c |.... | size: 28
|
|
|
|
0x00| 66 74 79 70 | ftyp | type: "ftyp" (File type and compatibility)
|
|
|
|
0x00| 69 73 6f 6d | isom | major_brand: "isom"
|
|
|
|
0x00| 00 00 02 00| ....| minor_version: 512
|
2021-12-08 18:20:37 +03:00
|
|
|
| | | brands[0:3]:
|
2021-11-23 13:24:09 +03:00
|
|
|
0x10|69 73 6f 6d |isom | [0]: "isom" (All files based on the ISO Base Media File Format)
|
|
|
|
0x10| 69 73 6f 32 | iso2 | [1]: "iso2" (All files based on the 2004 edition of the ISO file format)
|
|
|
|
0x10| 6d 70 34 31 | mp41 | [2]: "mp41" (MP4 version 1)
|
2022-05-20 13:38:43 +03:00
|
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.boxes[1]{}: box
|
2021-11-23 13:24:09 +03:00
|
|
|
0x10| 00 00 00 01| ....| size: 1 (Use 64 bit size)
|
|
|
|
0x20|6d 64 61 74 |mdat | type: "mdat" (Media data container)
|
|
|
|
0x20| 00 00 00 01 ad 85 9d aa | ........ | size64: 7206182314
|