mirror of
https://github.com/wader/fq.git
synced 2024-12-02 04:05:35 +03:00
a7a101ca67
Also add authors to avro and macho decoders Generated with: for i in $(go run . -r -n '_registry | [([([.files[][].name | split(".")[0]] | unique[]), (.formats[].name)] | count[] | select(.[1] == 2)[0]), (.formats[] | select(.decode_in_arg).name)] | unique[]'); do DIR=$(dirname $(find format -name $i.go)); echo "$ fq -h $i" > "$DIR/testdata/help_$i.fqtest" ; done
19 lines
448 B
Markdown
19 lines
448 B
Markdown
### Lookup element using path
|
|
|
|
```sh
|
|
$ fq 'matroska_path(".Segment.Tracks[0)")' file.mkv
|
|
```
|
|
|
|
### Get path to element
|
|
|
|
```sh
|
|
$ fq 'grep_by(.id == "Tracks") | matroska_path' file.mkv
|
|
```
|
|
|
|
### References
|
|
- https://tools.ietf.org/html/draft-ietf-cellar-ebml-00
|
|
- https://matroska.org/technical/specs/index.html
|
|
- https://www.matroska.org/technical/basics.html
|
|
- https://www.matroska.org/technical/codec_specs.html
|
|
- https://wiki.xiph.org/MatroskaOpus
|