1
1
mirror of https://github.com/wader/fq.git synced 2024-12-27 15:42:07 +03:00
fq/format/mp4/testdata/path.fqtest
Mattias Wadman 21ad628add interp: dump: Show field name for compound values in arrays
mp3: Remove one level of struct for granales
dump: Makes it a bit easier to understand array of arrays/structs.
avro_ocf: Rename ocf.go -> avro_ocr.go to have same name of source file as format
pcap,pcapng: Rename tcp flow struct to tcp_connection, makes more sense i think
mp4: Add ISOBMFF to format description
2022-04-21 17:47:15 +02:00

20 lines
945 B
Plaintext

$ fq -d mp4 'mp4_path(".moov.trak[1]")' /fragmented.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.boxes[1].boxes[2]{}: box
0x280| 00 00 01 bf | .... | size: 447
0x280| 74 72 61 6b | trak | type: "trak" (Container for an individual track or stream)
0x280| 00 00 00 5c| ...\| boxes[0:2]:
0x290|74 6b 68 64 00 00 00 03 00 00 00 00 00 00 00 00|tkhd............|
* |until 0x442.7 (439) | |
$ fq -d mp4 'mp4_path(".moov.trak[1]") | mp4_path' /fragmented.mp4
".moov.trak[1]"
$ fq -d mp4 'mp4_path(mp4_path(".moov.trak[1]"))' /fragmented.mp4
".moov.trak[1]"
$ fq -n '"a" | raw | mp4_path(".moov")'
exitcode: 5
stderr:
error: not mp4 format
$ fq -n '1 | mp4_path(".moov")'
exitcode: 5
stderr:
error: expected decode value but got: number (1)