mirror of
https://github.com/wader/fq.git
synced 2024-12-27 15:42:07 +03:00
20 lines
943 B
Plaintext
20 lines
943 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]: {}
|
|
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: [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 a decode value but got: number (1)
|