mirror of
https://github.com/wader/fq.git
synced 2024-12-18 10:52:44 +03:00
55 lines
5.2 KiB
Plaintext
55 lines
5.2 KiB
Plaintext
# ffmpeg -f lavfi -i sine -t 10ms -f ogg pipe:1 | fq - '.steam[0].packet[0] | tobits' > vorbis-identifcation
|
|
/vorbis-identifcation:
|
|
$ fq -d vorbis_packet verbose /vorbis-identifcation
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f| |.: {} /vorbis-identifcation (vorbis_packet) 0x0-0x1d.7 (30)
|
|
0x00|01 |. | packet_type: Identification (1) 0x0-0x0.7 (1)
|
|
0x00| 76 6f 72 62 69 73 | vorbis | magic: "vorbis" (Correct) 0x1-0x6.7 (6)
|
|
0x00| 00 00 00 00 | .... | vorbis_version: Correct (0x0) 0x7-0xa.7 (4)
|
|
0x00| 01 | . | audio_channels: 1 0xb-0xb.7 (1)
|
|
0x00| 44 ac 00 00| D...| audio_sample_rate: 44100 0xc-0xf.7 (4)
|
|
0x10|00 00 00 00 |.... | bitrate_maximum: 0 0x10-0x13.7 (4)
|
|
0x10| 80 38 01 00 | .8.. | bitrate_nominal: 80000 0x14-0x17.7 (4)
|
|
0x10| 00 00 00 00 | .... | bitrate_minimum: 0 0x18-0x1b.7 (4)
|
|
0x10| b8 | . | blocksize_1: 2048 0x1c-0x1c.3 (0.4)
|
|
0x10| b8 | . | blocksize_0: 256 0x1c.4-0x1c.7 (0.4)
|
|
0x10| 01| | .| | padding0: Correct (none) (zero padding) 0x1d-0x1d.6 (0.7)
|
|
0x10| 01| | .| | framing_flag: Correct (0x1) 0x1d.7-0x1d.7 (0.1)
|
|
# ffmpeg -f lavfi -i sine -t 10ms -f ogg pipe:1 | fq - '.packet[1] | tobits' > vorbis-comment
|
|
/vorbis-comment:
|
|
$ fq -d vorbis_packet verbose /vorbis-comment
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f| |.: {} /vorbis-comment (vorbis_packet) 0x0-0x3f.7 (64)
|
|
0x00|03 |. | packet_type: Comment (3) 0x0-0x0.7 (1)
|
|
0x00| 76 6f 72 62 69 73 | vorbis | magic: "vorbis" (Correct) 0x1-0x6.7 (6)
|
|
| | | comment: {} (vorbis_comment) 0x7-0x3e.7 (56)
|
|
0x00| 0d 00 00 00 | .... | vendor_length: 13 0x7-0xa.7 (4)
|
|
0x00| 4c 61 76 66 35| Lavf5| vendor: "Lavf58.29.100" 0xb-0x17.7 (13)
|
|
0x10|38 2e 32 39 2e 31 30 30 |8.29.100 |
|
|
0x10| 01 00 00 00 | .... | user_comment_list_length: 1 0x18-0x1b.7 (4)
|
|
| | | user_comments: [1] 0x1c-0x3e.7 (35)
|
|
| | | [0]: user_comment {} 0x1c-0x3e.7 (35)
|
|
0x10| 1f 00 00 00| ....| length: 31 0x1c-0x1f.7 (4)
|
|
0x20|65 6e 63 6f 64 65 72 3d 4c 61 76 63 35 38 2e 35|encoder=Lavc58.5| vendor: "encoder=Lavc58.54.100 libvorbis" 0x20-0x3e.7 (31)
|
|
0x30|34 2e 31 30 30 20 6c 69 62 76 6f 72 62 69 73 |4.100 libvorbis |
|
|
0x30| 01| .| padding0: Correct (none) (zero padding) 0x3f-0x3f.6 (0.7)
|
|
0x30| 01| .| frame_bit: Correct (0x1) 0x3f.7-0x3f.7 (0.1)
|
|
# ffmpeg -f lavfi -i sine -t 10ms -f ogg pipe:1 | fq - '.packet[2] | tobits' > vorbis-setup
|
|
/vorbis-setup:
|
|
$ fq -d vorbis_packet verbose /vorbis-setup
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f| |.: {} /vorbis-setup (vorbis_packet) 0x0-0xc74.7 (3189)
|
|
0x000|05 |. | packet_type: Setup (5) 0x0-0x0.7 (1)
|
|
0x000| 76 6f 72 62 69 73 | vorbis | magic: "vorbis" (Correct) 0x1-0x6.7 (6)
|
|
0x000| 22 | " | vorbis_codebook_count: 35 0x7-0x7.7 (1)
|
|
0x000| 42 43 56 | BCV | codecooke_sync: Correct (0x564342) 0x8-0xa.7 (3)
|
|
0x000| 01 00 | .. | codebook_dimensions: 1 0xb-0xc.7 (2)
|
|
0x000| 40 00 00| @..| codebook_entries: 64 0xd-0xf.7 (3)
|
|
0x010|24 73 18 2a 46 a5 73 16 84 10 1a 42 50 19 e3 1c|$s.*F.s....BP...| unknown0: 2473182a46a5731684101a425019e31c... 0x10-0xc74.7 (3173)
|
|
* |until 0xc74.7 (end) (3173) | |
|
|
# ffmpeg -f lavfi -i sine -t 10ms -f ogg pipe:1 | fq - '.packet[3] | tobits' > vorbis-audio
|
|
/vorbis-audio:
|
|
$ fq -d vorbis_packet verbose /vorbis-audio
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f| |.: {} /vorbis-audio (vorbis_packet) 0x0-0x20.7 (33)
|
|
0x00|54 |T | packet_type: Audio (0) 0x0-0x0.7 (1)
|
|
0x00| dd cb ce aa 5e d8 7f 2d 01 42 00 a0 dd 71 77| ....^..-.B...qw| unknown0: ddcbceaa5ed87f2d014200a0dd71778b... 0x1-0x20.7 (32)
|
|
0x10|8b ed cd 37 df 7c 33 3a 0c c3 30 0c c3 30 d4 50|...7.|3:..0..0.P|
|
|
0x20|02| |.| |
|