1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 13:22:58 +03:00
fq/format/mp4/testdata/size64.fqtest
Mattias Wadman c93301fc70 raw,bits,bytes: Replace raw format with bits and bytes format that decode to a binary
raw format was a hack to skip decoding to be able to get a binary using tobyte etc.
Now you can do fq -d bytes ... instead of fq -d raw 'tobytes | ...'
2022-11-20 19:51:12 +01:00

18 lines
1.5 KiB
Plaintext

# ffmpeg -y -f lavfi -i anoisesrc -lpc_passes 1 -strict -2 -c:a flac -t 50000s size64.mp4
# fq -d bytes '.[0:100]' size64.mp4 > size64
# TODO: test that don't uses decode failure?
$ fq -d mp4 '.boxes[] | d' size64
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.boxes[0]{}: box
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
| | | brands[0:3]:
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)
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.boxes[1]{}: box
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