mirror of
https://github.com/wader/fq.git
synced 2024-12-11 07:23:09 +03:00
3b717c3ba4
Add toxml/fromxml for XML encoding, mighe be lossy on ordering fromxml has {seq:bool} to add #seq attributes to improve ordering toxml has {indent:number} to choose space indent depth Add tojson, same as in jq but also has {indent:number} options Add toyaml/fromyaml for YAML Add totoml/fromtoml for TOML Add tojq/fromjq for jq-flavored JSON (optional quotes for keys, comments and trailing commas support) Add tocsv/fromcsv for CSV formcvs takes {comma:string, comment:string} for custom separtor and comment character Rename/split hex into tohex/fromhex Rename/split base64 into tobase64/frombase64 tobase64/frombase64 takes {encoding:string} option for base64 flavour (std, url, rawstd, rawurl) Add to/from<format> urlpath, urlquery, url, xmlentities, base64, hex Add to<hash> md4, md5, sha1, sha256, sha512, sha3_224, sha3_256, sha3_384, sha3_512 Add to/from<encoding> iso8859-1, utf8, utf16, utf16le, utf16be
18 lines
2.0 KiB
Plaintext
18 lines
2.0 KiB
Plaintext
$ fq -n '"000000106674797069736f6d0000020000000013636f6c726e636c7800010001000100" | fromhex | mp4 | dv'
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: (mp4) 0x0-0x22.7 (35)
|
|
| | | boxes[0:2]: 0x0-0x22.7 (35)
|
|
| | | [0]{}: box 0x0-0xf.7 (16)
|
|
0x00|00 00 00 10 |.... | size: 16 0x0-0x3.7 (4)
|
|
0x00| 66 74 79 70 | ftyp | type: "ftyp" (File type and compatibility) 0x4-0x7.7 (4)
|
|
0x00| 69 73 6f 6d | isom | major_brand: "isom" 0x8-0xb.7 (4)
|
|
0x00| 00 00 02 00| ....| minor_version: 512 0xc-0xf.7 (4)
|
|
| | | brands[0:0]: 0x10-NA (0)
|
|
| | | [1]{}: box 0x10-0x22.7 (19)
|
|
0x10|00 00 00 13 |.... | size: 19 0x10-0x13.7 (4)
|
|
0x10| 63 6f 6c 72 | colr | type: "colr" (Specifies the colourspace of the image) 0x14-0x17.7 (4)
|
|
0x10| 6e 63 6c 78 | nclx | parameter_type: "nclx" 0x18-0x1b.7 (4)
|
|
0x10| 00 01 | .. | primaries_index: "bt709" (1) (ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP 177 Annex B) 0x1c-0x1d.7 (2)
|
|
0x10| 00 01| ..| transfer_function_index: "bt709" (1) (ITU-R BT1361) 0x1e-0x1f.7 (2)
|
|
0x20|00 01 |.. | matrix_index: "bt709" (1) (ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / derived in SMPTE RP 177 Annex B) 0x20-0x21.7 (2)
|
|
0x20| 00| | .| | color_range: 0 0x22-0x22.7 (1)
|