mirror of
https://github.com/wader/fq.git
synced 2024-12-24 13:52:02 +03:00
21 lines
1.2 KiB
Plaintext
21 lines
1.2 KiB
Plaintext
$ fq -d matroska 'matroska_path(".segment.tracks[0].track_entry[0].codec_id")' avc.mkv
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.elements[1].elements[3].elements[1].elements[4]{}: element
|
|
0x150| 86 | . | id: "codec_id" (0x86) (An ID corresponding to the codec, see [@?MatroskaCodec] for more info.)
|
|
| | | type: "string"
|
|
0x150| 8f | . | size: 15
|
|
0x150| 56 5f 4d 50 45 47 34 2f 49 53 4f 2f| V_MPEG4/ISO/| value: "V_MPEG4/ISO/AVC"
|
|
0x160|41 56 43 |AVC |
|
|
$ fq -d matroska 'matroska_path(".segment.tracks[0].track_entry[0].codec_id") | matroska_path' avc.mkv
|
|
".segment.tracks.track_entry.codec_id"
|
|
$ fq -d matroska 'matroska_path(matroska_path(".segment.tracks[0].track_entry[0].codec_id"))' avc.mkv
|
|
".segment.tracks.track_entry.codec_id"
|
|
# TODO: use some test format
|
|
$ fq -n '"a" | mp3_frame | matroska_path(".segment")'
|
|
exitcode: 5
|
|
stderr:
|
|
error: not matroska format
|
|
$ fq -n '1 | matroska_path(".segment")'
|
|
exitcode: 5
|
|
stderr:
|
|
error: expected decode value but got: number (1)
|