1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 09:56:07 +03:00
fq/pkg/interp/testdata/basic.fqtest

35 lines
979 B
Plaintext

# ffmpeg -f lavfi -i sine -t 10ms test.mp3
$ fq -i . test.mp3
mp3> .headers[0].header.magic == "ID3"
true
mp3> .headers[0].header.version == 4
true
mp3> .frames[0].header.protection == true
false
mp3> .headers[0].header.flags + {}
{
"experimental_indicator": false,
"extended_header": false,
"unsynchronisation": false,
"unused": 0
}
mp3> ._gap
false
mp3> format
"mp3"
mp3> .headers[0].header.magic | format
null
mp3> ._format
"mp3"
mp3> .headers[0].header.magic._format
null
mp3> ^D
# TODO: use test format
$ fq -d mp3_frame .
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: <stdin> (mp3_frame)
| | | error: mp3_frame: U11(sync): failed at position 1.3 (read size 0 seek pos 0): failed to assert Uint
| | | header{}:
0x0|61 62 63 0a| |abc.| | gap0: raw bits
stdin:
abc