1
1
mirror of https://github.com/wader/fq.git synced 2024-12-20 20:01:59 +03:00
Commit Graph

1615 Commits

Author SHA1 Message Date
David McDonald
4a28e44f44 changes decoder package name from bookmark to apple_bookmark 2022-12-01 23:31:57 -06:00
David McDonald
81269430fe removed unnecessary conversions 2022-12-01 23:31:57 -06:00
David McDonald
d0b044c2f0 converts to snake_case and refactors decode helper 2022-12-01 23:31:57 -06:00
David McDonald
5146f28dbb fixes broken test for all.fqtest 2022-12-01 23:31:57 -06:00
David McDonald
5b1455e777 removed unused function 2022-12-01 23:31:57 -06:00
David McDonald
0a72635a78 remade documentation 2022-12-01 23:31:57 -06:00
David McDonald
6f4d1cb1de updated documentation 2022-12-01 23:31:57 -06:00
David McDonald
dbc6fccdda updated doc with apple reference 2022-12-01 23:31:57 -06:00
David McDonald
34db9d7fea regenerated docs, added tests, fixed torepr 2022-12-01 23:31:57 -06:00
David McDonald
8f930aacee forgot to add bookmark.jq in last commit 2022-12-01 23:31:57 -06:00
David McDonald
0287ffa4dc decoding well but torepr needs work 2022-12-01 23:31:56 -06:00
David McDonald
71b17d0382 apple bookmarkdata decoder initial commit 2022-12-01 23:31:56 -06:00
Mattias Wadman
1dd9c8759a
Merge pull request #500 from wader/rename-unknown-gap
decode,interp: Rename unknown gap fields from "unknown#" to "gap#"
2022-12-01 21:07:11 +01:00
Mattias Wadman
e77f776999 decode,interp: Rename unknown gap fields from "unknown#" to "gap#"
Think it makes it clearer and also less likely to collide with a field
name a deocder wants to use.
2022-12-01 20:43:30 +01:00
Mattias Wadman
012e7527f0
Merge pull request #499 from wader/bit-format-default-string
interp: Change default bits_format=string
2022-12-01 18:08:12 +01:00
Mattias Wadman
8d69f1fb23 interp: Change default bits_format=string
I think this is more intuitive but might in some case cause very large JSON output
but maybe that less common or expected. In does cases i think you either want to
use some other bits_format (md5, truncate, etc) or you delete/transform the jq value
before turn it into JSON.

Strings in gojq are binary safe so you can use to hold raw bytes. But note that
convert the binary into JSON is lossy, same as the JSON standard.

Add bits_format option documentation.
2022-12-01 17:49:34 +01:00
Mattias Wadman
36ea3a95cd
Merge pull request #497 from wader/help-nicer-line-break
interp,help: Properly count line length when breaking on whole words
2022-11-29 19:08:00 +01:00
Mattias Wadman
42d9f2c27d interp,help: Properly count line length when breaking on whole words
Whitespace between words were not counted
2022-11-29 18:59:32 +01:00
Mattias Wadman
684e24d1a4
Merge pull request #496 from wader/interp-mimic-jq-usage-only-expr-tty
interp: mimic jq: if expr arg is given read stdin even if tty
2022-11-29 18:56:28 +01:00
Mattias Wadman
ba88a68466 interp: mimic jq: if expr arg is given read stdin even if tty 2022-11-29 18:39:57 +01:00
Mattias Wadman
af71be2b64
Merge pull request #495 from wader/ctxstack-fix-trigger-before-push-panic
interp: Fix panic when trigger before any context has been pushed
2022-11-29 17:45:56 +01:00
Mattias Wadman
568afff3f0 interp: Fix panic when trigger before any context has been pushed
Make sure there is a top cancel function before calling it.
Fixes panic caused when interrupting decode before interp context has been pushed.

Also cleanup confusing naming a bit.

Thanks @pldin601 for reporting
2022-11-29 17:38:58 +01:00
Mattias Wadman
73ec686f7a
Merge pull request #492 from wader/mp4-png-mapping
mp4: Add png mapping
2022-11-25 20:00:25 +01:00
Mattias Wadman
ef2d5232ba mp4: Add png mapping
Also support samples decode for tracks without hdlr box
2022-11-25 19:49:18 +01:00
Mattias Wadman
a97d37ee42
Merge pull request #490 from wader/release-0.1.0
fq: Release 0.1.0
2022-11-24 16:26:04 +01:00
Mattias Wadman
bd4287b4ff fq: Release 0.1.0 2022-11-24 16:16:53 +01:00
Mattias Wadman
8af2905775
Merge pull request #488 from wader/mp4-decode-more-sample-flags
mp4: Decode more sample flags
2022-11-23 14:37:29 +01:00
Mattias Wadman
d75748d816 mp4: Decode more sample flags 2022-11-23 14:29:13 +01:00
Mattias Wadman
d1dbc2dc16
Merge pull request #486 from wader/matroska-fix-path
matroska: Fix path tests and make _tree_path more robust
2022-11-20 20:23:14 +01:00
Mattias Wadman
646f32d563 matroska: Fix path tests and make _tree_path more robust 2022-11-20 20:16:41 +01:00
Mattias Wadman
a68aeb4b7e
Merge pull request #485 from wader/replace-raw-bits-bytes
raw,bits,bytes: Replace raw format with bits and bytes format that de…
2022-11-20 20:09:32 +01:00
Mattias Wadman
c93301fc70 raw,bits,bytes: Replace raw format with bits and bytes format that decode to a binary
raw format was a hack to skip decoding to be able to get a binary using tobyte etc.
Now you can do fq -d bytes ... instead of fq -d raw 'tobytes | ...'
2022-11-20 19:51:12 +01:00
Mattias Wadman
17a9d5d1f8
Merge pull request #476 from wader/avi
wav,avi,avc_au: Add avi decoder and refactor wav decoder
2022-11-19 13:19:07 +01:00
Mattias Wadman
0cf46e1196 wav,avi,avc_au: Add avi decoder and refactor wav decoder
avi and wav now share  common riff decode code
avc_au decoder can now handle annexb format
2022-11-19 13:11:27 +01:00
Mattias Wadman
e3522c8949
Merge pull request #484 from wader/gomod-update
mod: Update ones without bump config
2022-11-19 11:07:15 +01:00
Mattias Wadman
1c7d3252c0 mod: Update ones without bump config 2022-11-19 10:59:13 +01:00
Mattias Wadman
4f9f2d738c
Merge pull request #483 from wader/gojq-rebase2
gojq: Update rebased fq fork
2022-11-19 10:53:40 +01:00
Mattias Wadman
450f584461 gojq: Update rebased fq fork 2022-11-19 10:47:14 +01:00
Mattias Wadman
0c3d47732c
Merge pull request #482 from wader/doc-one-more-demo
Improve README.md a bit, one more demo and move up usage
2022-11-17 11:22:31 +01:00
Mattias Wadman
7b6492eed0 Improve README.md a bit, one more demo and move up usage 2022-11-17 11:10:08 +01:00
Mattias Wadman
58e741902e
Merge pull request #481 from wader/xing-info-has-ext
mp3_frame_tags: Refactor and rename xing format to mp3_frame_tags
2022-11-16 17:40:57 +01:00
Mattias Wadman
c3a0686c9e mp3_frame_tags: Refactor and rename xing format to mp3_frame_tags
Make more sense to use a more general name when there is both info and xing
and possibly vbri in the future. Also both xing and info seems to have extension
fields

Remove some old tests that are not really needed anymore.
2022-11-16 17:32:03 +01:00
Mattias Wadman
2606e7ba46
Merge pull request #480 from wader/mp3-frame-correct-size
mp3_frame: Fix issue calc frame size for some configs
2022-11-16 17:31:47 +01:00
Mattias Wadman
2de875393a mp3_frame: Fix issue calc frame size for some configs
Seems have to use the 144000*bitrate/sameplrate to get correct size or
one would miss one byte (odd size rounded to even?)
2022-11-16 15:55:10 +01:00
Mattias Wadman
96b56c1ad1
Merge pull request #478 from wader/bump-docker-golang-1.19.3
Update docker-golang to 1.19.3 from 1.19.2
2022-11-02 17:13:20 +01:00
Mattias Wadman
7bb800728a
Merge pull request #479 from wader/bump-github-go-version-1.19.3
Update github-go-version to 1.19.3 from 1.19.2, 1.19.2, 1.19.2
2022-11-02 17:13:04 +01:00
bump
003197eb2a Update github-go-version to 1.19.3 from 1.19.2, 1.19.2, 1.19.2 2022-11-02 16:04:11 +00:00
bump
e033449749 Update docker-golang to 1.19.3 from 1.19.2 2022-11-02 16:04:07 +00:00
Mattias Wadman
5529084dc1
Merge pull request #477 from wader/better-decode-error-help
cli: Better decode error help
2022-11-02 12:40:11 +01:00
Mattias Wadman
41b2d1ad1b cli: Better decode error help 2022-11-02 12:28:53 +01:00