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
[./formats_list.jq]: sh-start
[./formats_list.sh]: sh-start
aac_frame,
adts,
adts_frame,
apev2,
ar,
asn1_ber,
[asn1_ber](doc/formats.md#asn1_ber),
av1_ccr,
av1_frame,
av1_obu,
@ -50,12 +50,12 @@ avc_nalu,
avc_pps,
avc_sei,
avc_sps,
avro_ocf,
[avro_ocf](doc/formats.md#avro_ocf),
bencode,
bsd_loopback_frame,
bson,
[bson](doc/formats.md#bson),
bzip2,
cbor,
[cbor](doc/formats.md#cbor),
dns,
dns_tcp,
elf,
@ -81,24 +81,24 @@ id3v2,
ipv4_packet,
jpeg,
json,
matroska,
[matroska](doc/formats.md#matroska),
mp3,
mp3_frame,
mp4,
[mp4](doc/formats.md#mp4),
mpeg_asc,
mpeg_es,
mpeg_pes,
mpeg_pes_packet,
mpeg_spu,
mpeg_ts,
msgpack,
[msgpack](doc/formats.md#msgpack),
ogg,
ogg_page,
opus_packet,
pcap,
pcapng,
png,
protobuf,
[protobuf](doc/formats.md#protobuf),
protobuf_widevine,
pssh_playready,
raw,

View File

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

View File

@ -1,2 +1,7 @@
#!/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"