1
1
mirror of https://github.com/wader/fq.git synced 2024-12-01 02:30:32 +03:00

Merge pull request #169 from wader/formats-href

doc: Add href in supported format list
This commit is contained in:
Mattias Wadman 2022-02-19 01:45:24 +01:00 committed by GitHub
commit e8bcc20f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 11 deletions

View File

@ -32,14 +32,14 @@ I pronounce jq /dʒeikju:/ so I usually pronounce fq /efkju:/.
### Supported formats ### Supported formats
[./formats_list.jq]: sh-start [./formats_list.sh]: sh-start
aac_frame, aac_frame,
adts, adts,
adts_frame, adts_frame,
apev2, apev2,
ar, ar,
asn1_ber, [asn1_ber](doc/formats.md#asn1_ber),
av1_ccr, av1_ccr,
av1_frame, av1_frame,
av1_obu, av1_obu,
@ -50,12 +50,12 @@ avc_nalu,
avc_pps, avc_pps,
avc_sei, avc_sei,
avc_sps, avc_sps,
avro_ocf, [avro_ocf](doc/formats.md#avro_ocf),
bencode, bencode,
bsd_loopback_frame, bsd_loopback_frame,
bson, [bson](doc/formats.md#bson),
bzip2, bzip2,
cbor, [cbor](doc/formats.md#cbor),
dns, dns,
dns_tcp, dns_tcp,
elf, elf,
@ -81,24 +81,24 @@ id3v2,
ipv4_packet, ipv4_packet,
jpeg, jpeg,
json, json,
matroska, [matroska](doc/formats.md#matroska),
mp3, mp3,
mp3_frame, mp3_frame,
mp4, [mp4](doc/formats.md#mp4),
mpeg_asc, mpeg_asc,
mpeg_es, mpeg_es,
mpeg_pes, mpeg_pes,
mpeg_pes_packet, mpeg_pes_packet,
mpeg_spu, mpeg_spu,
mpeg_ts, mpeg_ts,
msgpack, [msgpack](doc/formats.md#msgpack),
ogg, ogg,
ogg_page, ogg_page,
opus_packet, opus_packet,
pcap, pcap,
pcapng, pcapng,
png, png,
protobuf, [protobuf](doc/formats.md#protobuf),
protobuf_widevine, protobuf_widevine,
pssh_playready, pssh_playready,
raw, raw,

View File

@ -105,7 +105,7 @@ fq -d mp4 -o force=true file.mp4
fq -d raw 'mp4({force: true})' file.mp4 fq -d raw 'mp4({force: true})' file.mp4
``` ```
## Format functions ## Format details
[./formats_collect.sh]: sh-start [./formats_collect.sh]: sh-start

View File

@ -1,2 +1,7 @@
#!/usr/bin/env fq -rnf #!/usr/bin/env fq -rnf
[formats[] | "\(.name)"] | join(",\n")
[ (formats | keys[]) as $format
| if ($doc_formats | indices($format)) != [] then "[\($format)](doc/formats.md#\($format))"
else $format
end
] | join(",\n")

4
doc/formats_list.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# what formats has a .md file
DOC_FORMATS=$(echo $(ls -1 $REPODIR/format/*/*.md | sed "s#$REPODIR/format/.*/\(.*\).md#\1#"))
./formats_list.jq --arg doc_formats "$DOC_FORMATS"