mirror of
https://github.com/wader/fq.git
synced 2024-11-30 18:08:16 +03:00
31 lines
2.1 KiB
Plaintext
31 lines
2.1 KiB
Plaintext
/test.mp3:
|
|
# ffmpeg -f lavfi -i sine -t 10ms test.mp3
|
|
# test alt //
|
|
$ fq -d mp3 '.headers[].frames[0].flags.unsync // 123' /test.mp3
|
|
123
|
|
$ fq -d mp3 '.headers[].frames[0].size // 123' /test.mp3
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
|
0x00| 00 00| ..|.headers[0].frames[0].size: 15
|
|
0x10|00 0f |.. |
|
|
# test each in decoded order
|
|
$ fq -d mp3 '.headers[0][]' /test.mp3
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
|
0x0|49 44 33 |ID3 |.headers[0].magic: "ID3" (Correct)
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
|
0x0| 04 | . |.headers[0].version: 4
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
|
0x0| 00 | . |.headers[0].revision: 0
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.headers[0].flags: {}
|
|
0x0| 00 | . | unsynchronisation: false
|
|
0x0| 00 | . | extended_header: false
|
|
0x0| 00 | . | experimental_indicator: false
|
|
0x0| 00 | . | unused: 0
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
|
0x0| 00 00 00 23 | ...# |.headers[0].size: 35
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.headers[0].frames: [1]
|
|
0x00| 54 53 53 45 00 00| TSSE..| [0]: {}
|
|
0x10|00 0f 00 00 03 4c 61 76 66 35 38 2e 34 35 2e 31|.....Lavf58.45.1|
|
|
0x20|30 30 00 |00. |
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
|
0x20| 00 00 00 00 00 00 00 00 00 00 | .......... |.headers[0].padding: Correct (none) (zero padding)
|