1
1
mirror of https://github.com/wader/fq.git synced 2024-12-27 07:24:48 +03:00
fq/pkg/interp/testdata/basic.fqtest
Mattias Wadman 1b32b42f93 decode: Major decode API refactor
Generate more code
More generic and comfortable API
Improve and Update format decoder to new API
Add some more format tests
2021-11-15 21:12:07 +01:00

32 lines
660 B
Plaintext

# ffmpeg -f lavfi -i sine -t 10ms test.mp3
$ fq -i . /test.mp3
mp3> .headers[0].magic == "ID3"
true
mp3> .headers[0].version == 4
true
mp3> .frames[0].header.protection == true
false
mp3> .headers[0].flags + {}
{
"experimental_indicator": false,
"extended_header": false,
"unsynchronisation": false,
"unused": 0
}
mp3> ._unknown
false
mp3> format
"mp3"
mp3> .headers[0].magic | format
null
mp3> ._format
"mp3"
mp3> .headers[0].magic._format
null
mp3> ^D
$ fq -d raw .
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} - (raw)
0x0|61 62 63 0a| |abc.| | unknown0: raw bits
stdin:
abc