1
1
mirror of https://github.com/wader/fq.git synced 2024-11-26 21:55:57 +03:00
Commit Graph

1457 Commits

Author SHA1 Message Date
@0xb17bea125
abde823a79 tzif: use PeekFindByte() to find end of the string 2022-12-04 21:02:39 +09:00
@0xb17bea125
2ee6360b97 support tzif (time zone information format) 2022-12-04 21:02:39 +09:00
Mattias Wadman
7f7bf1e125
Merge pull request #501 from wader/doc-usage-dev-tips
doc,dev: Add more usage and dev tips
2022-12-03 19:29:32 +01:00
Mattias Wadman
6fc84a885c doc,dev: Add more usage and dev tips 2022-12-03 19:00:47 +01: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
Mattias Wadman
0b5a2d2719
Merge pull request #475 from wader/gomod-update
gomod: Update modules that lack bump config
2022-10-30 14:17:02 +01:00
Mattias Wadman
d8641ab1c3 gomod: Update modules that lack bump config 2022-10-30 14:08:50 +01:00
Mattias Wadman
a5742ff9ac
Merge pull request #474 from wader/gojq-rebase
gojq: Update rebased fq fork
2022-10-30 14:08:38 +01:00
Mattias Wadman
349d949701 gojq: Update rebased fq fork
From upstream:
improve performance of assignment operators and del function
improve jq compatibility of walk function (fix #195)
2022-10-30 14:00:00 +01:00
Mattias Wadman
83ef85ecee
Merge pull request #473 from wader/nttw6-link-docs
doc: Add link to nttw6 presentation video and slides
2022-10-30 13:59:28 +01:00
Mattias Wadman
4bfd9d8119 doc: Add link to nttw6 presentation video and slides
Also clarify install instructions a bit
2022-10-30 13:28:46 +01:00
Mattias Wadman
37ef134c88
Merge pull request #470 from wader/bump-gomod-BurntSushi/toml-1.2.1
Update gomod-BurntSushi/toml to 1.2.1 from 1.2.0
2022-10-22 18:27:37 +02:00
Mattias Wadman
4fc6b497f4
Merge pull request #469 from wader/bump-make-golangci-lint-1.50.1
Update make-golangci-lint to 1.50.1 from 1.50.0
2022-10-22 18:26:59 +02:00