mirror of
https://github.com/wader/fq.git
synced 2024-12-26 23:15:04 +03:00
377af133e0
Make cwd for a test script the directory where the script is. Use relative paths
18 lines
1.5 KiB
Plaintext
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 raw 'tobytes[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
|