Skip to content

Commit

Permalink
fqtest: Refactor our script part to own package
Browse files Browse the repository at this point in the history
Hopefully can be reused for docs generation
  • Loading branch information
wader committed Oct 6, 2021
1 parent 30ad643 commit 6916880
Show file tree
Hide file tree
Showing 93 changed files with 500 additions and 591 deletions.
1 change: 0 additions & 1 deletion format/ape/testdata/apev2.fqtest
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ffmpeg -f lavfi -i sine -ac 2 -t 10ms -f mp3 test.mp3
# mp3gain test.mp3
# fq '.footers[0] | tobytes' test.mp3 > apev2
/apev2:
$ fq -d apev2 verbose /apev2
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /apev2 (apev2) 0x0-0xad.7 (174)
| | | header: {} 0x0-0x1f.7 (32)
Expand Down
1 change: 0 additions & 1 deletion format/flac/testdata/frame.fqtest
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# test decode separate frame
# ffmpeg -f lavfi -i sine -t 0.01s -f flac pipe:1 | fq - '.frames[0]._bytes' > frame
/frame:
$ fq -d flac_frame verbose /frame
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /frame (flac_frame) 0x0-0x1ff.7 (512)
| | | header: {} 0x0-0x7.7 (8)
Expand Down
1 change: 0 additions & 1 deletion format/flac/testdata/mono16.fqtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/mono16.flac:
$ fq -d flac verbose /mono16.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /mono16.flac (flac) 0x0-0x8597.7 (34200)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (Correct) 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/flac/testdata/mono24.fqtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/mono24.flac:
$ fq -d flac verbose /mono24.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /mono24.flac (flac) 0x0-0xbcca.7 (48331)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (Correct) 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/flac/testdata/mono8.fqtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/mono8.flac:
$ fq -d flac verbose /mono8.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /mono8.flac (flac) 0x0-0x4cef.7 (19696)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (Correct) 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/flac/testdata/picture_seek_gain.fqtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/picture_seek_gain.flac:
$ fq -d flac verbose /picture_seek_gain.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /picture_seek_gain.flac (flac) 0x0-0x225f.7 (8800)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (Correct) 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/flac/testdata/stereo16.fqtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/stereo16.flac:
$ fq -d flac verbose /stereo16.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /stereo16.flac (flac) 0x0-0xc54b.7 (50508)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (Correct) 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/flac/testdata/stereo24.fqtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/stereo24.flac:
$ fq -d flac verbose /stereo24.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /stereo24.flac (flac) 0x0-0x11bcb.7 (72652)
0x00000|66 4c 61 43 |fLaC | magic: "fLaC" (Correct) 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/flac/testdata/stereo8.fqtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/stereo8.flac:
$ fq -d flac verbose /stereo8.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /stereo8.flac (flac) 0x0-0x6d5c.7 (27997)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (Correct) 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/gif/testdata/4x4.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# gm convert -size 4x4 'xc:#000' 'xc:#fff' 4x4.gif
/4x4.gif:
$ fq -d gif verbose /4x4.gif
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /4x4.gif (gif) 0x0-0x5e.7 (95)
0x00|47 49 46 38 39 61 |GIF89a | header: "GIF89a" (Correct) 0x0-0x5.7 (6)
Expand Down
1 change: 0 additions & 1 deletion format/gzip/testdata/test.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# echo test | gzip -N > test.gz
/test.gz:
$ fq -d gzip verbose /test.gz
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /test.gz (gzip) 0x0-0x18.7 (25)
0x00|1f 8b |.. | identification: "\x1f\x8b" (Correct) 0x0-0x1.7 (2)
Expand Down
1 change: 0 additions & 1 deletion format/icc/testdata/sRGB2014.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# sRGB2014.icc is from https://www.color.org/srgbprofiles.xalter
/sRGB2014.icc:
$ fq -d icc_profile verbose /sRGB2014.icc
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /sRGB2014.icc (icc_profile) 0x0-0xbcf.7 (3024)
| | | header: {} 0x0-0x7f.7 (128)
Expand Down
1 change: 0 additions & 1 deletion format/id3/testdata/apic.fqtest
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# ffmpeg -f lavfi -i anullsrc=d=10ms -f lavfi -i testsrc=s=4x4:r=1:d=1 -map 0:0 -map 1:0 -f mp3 test.mp3
# fq test.mp3 '.. | select(format == "id3v2")._bytes' > apic
/apic:
$ fq -d id3v2 verbose /apic
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /apic (id3v2) 0x0-0xb3.7 (180)
0x00|49 44 33 |ID3 | magic: "ID3" (Correct) 0x0-0x2.7 (3)
Expand Down
1 change: 0 additions & 1 deletion format/id3/testdata/id3v1.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -t 10ms -write_id3v1 1 -metadata title=test -f mp3 pipe:1 | fq - '.footers[0]._bytes' > id3v1
/id3v1:
$ fq -d id3v1 verbose /id3v1
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /id3v1 (id3v1) 0x0-0x7f.7 (128)
0x00|54 41 47 |TAG | magic: "TAG" (Correct) 0x0-0x2.7 (3)
Expand Down
1 change: 0 additions & 1 deletion format/id3/testdata/id3v23.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -t 0s -id3v2_version 3 -f mp3 pipe:1 > id3v23
/id3v23:
$ fq -d id3v2 verbose /id3v23
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /id3v23 (id3v2) 0x0-0x2c.7 (45)
0x00|49 44 33 |ID3 | magic: "ID3" (Correct) 0x0-0x2.7 (3)
Expand Down
1 change: 0 additions & 1 deletion format/id3/testdata/id3v24.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -t 0s -id3v2_version 4 -f mp3 pipe:1 > id3v24
/id3v24:
$ fq -d id3v2 verbose /id3v24
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /id3v24 (id3v2) 0x0-0x2c.7 (45)
0x00|49 44 33 |ID3 | magic: "ID3" (Correct) 0x0-0x2.7 (3)
Expand Down
1 change: 0 additions & 1 deletion format/id3/testdata/utf16-apic.fqtest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# convert -size 4x4 "xc:#000" 4x4.png
# eyeD3 --encoding=utf16 --add-image=4x4.png:OTHER:test test.mp3
# fq test.mp3 .headers[0]._bits > utf16-apic
/utf16-apic:
$ fq -d id3v2 verbose /utf16-apic
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /utf16-apic (id3v2) 0x0-0x255.7 (598)
0x000|49 44 33 |ID3 | magic: "ID3" (Correct) 0x0-0x2.7 (3)
Expand Down
1 change: 0 additions & 1 deletion format/jpeg/testdata/4x4.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# gm convert -size 4x4 'xc:#000' 4x4.jpg
/4x4.jpg:
$ fq -d jpeg verbose /4x4.jpg
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /4x4.jpg (jpeg) 0x0-0x9f.7 (160)
| | | segments: [9] 0x0-0x9f.7 (160)
Expand Down
2 changes: 0 additions & 2 deletions format/json/testdata/json.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/test.json:
/json.gz:
$ fq -d json . /test.json
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x00|7b 0a 20 20 20 20 22 61 22 3a 20 31 32 33 2c 0a|{. "a": 123,.|.: {} /test.json (json)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/aac.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -c:a aac -f matroska -t 50ms aac.mkv
/aac.mkv:
$ fq -d matroska verbose /aac.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /aac.mkv (matroska) 0x0-0x4c3.7 (1220)
| | | elements: [2] 0x0-0x4c3.7 (1220)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/av1.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -g 1 -c:v librav1e -t 50ms av1.mkv
/av1.mkv:
$ fq -d matroska verbose /av1.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /av1.mkv (matroska) 0x0-0x13e6.7 (5095)
| | | elements: [2] 0x0-0x13e6.7 (5095)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/avc.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -c:v h264 -f matroska -t 50ms avc.mkv
/avc.mkv:
$ fq -d matroska verbose /avc.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /avc.mkv (matroska) 0x0-0xd46.7 (3399)
| | | elements: [2] 0x0-0xd46.7 (3399)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/flac.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -ac 2 -c:a flac -strict experimental -f matroska -t 50ms flac.mkv
/flac.mkv:
$ fq -d matroska verbose /flac.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /flac.mkv (matroska) 0x0-0x4ce.7 (1231)
| | | elements: [2] 0x0-0x4ce.7 (1231)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/hevc.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -c:v hevc -f matroska -t 50ms hevc.mkv
/hevc.mkv:
$ fq -d matroska verbose /hevc.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /hevc.mkv (matroska) 0x0-0x13ea.7 (5099)
| | | elements: [2] 0x0-0x13ea.7 (5099)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/mp3.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -c:a mp3 -f matroska -t 50ms mp3.mkv
/mp3.mkv:
$ fq -d matroska verbose /mp3.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /mp3.mkv (matroska) 0x0-0x4db.7 (1244)
| | | elements: [2] 0x0-0x4db.7 (1244)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/mpeg2.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -c:v mpeg2video -f matroska -t 50ms mpeg2.mkv
/mpeg2.mkv:
$ fq -d matroska verbose /mpeg2.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /mpeg2.mkv (matroska) 0x0-0x21c9.7 (8650)
| | | elements: [2] 0x0-0x21c9.7 (8650)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/opus.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -strict experimental -c:a opus -f matroska -t 50ms opus.mkv
/opus.mkv:
$ fq -d matroska verbose /opus.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /opus.mkv (matroska) 0x0-0x3ec.7 (1005)
| | | elements: [2] 0x0-0x3ec.7 (1005)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/path.fqtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/avc.mkv:
$ fq -d matroska 'matroska_path(".Segment.Tracks[0].TrackEntry[0].CodecID")' /avc.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.elements[1].elements[3].elements[1].elements[4]: {}
| | | type: string (3)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/vorbis.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -ac 2 -strict experimental -c:a vorbis -f matroska -t 50ms vorbis.mkv
/vorbis.mkv:
$ fq -d matroska verbose /vorbis.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /vorbis.mkv (matroska) 0x0-0x10fa.7 (4347)
| | | elements: [2] 0x0-0x10fa.7 (4347)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/vp8.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -c:v vp8 -f matroska -t 50ms vp8.mkv
/vp8.mkv:
$ fq -d matroska verbose /vp8.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /vp8.mkv (matroska) 0x0-0x148b.7 (5260)
| | | elements: [2] 0x0-0x148b.7 (5260)
Expand Down
1 change: 0 additions & 1 deletion format/matroska/testdata/vp9.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -c:v vp9 -f matroska -t 50ms vp9.mkv
/vp9.mkv:
$ fq -d matroska verbose /vp9.mkv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /vp9.mkv (matroska) 0x0-0x1785.7 (6022)
| | | elements: [2] 0x0-0x1785.7 (6022)
Expand Down
1 change: 0 additions & 1 deletion format/mp3/testdata/header-zeros-frames.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -t 10ms -f mp3 pipe:1 | fq - '.headers._bytes, ("\x00\x00\x00" | tobytes), .frames[0]._bytes' > header-zeros-frames.mp3
/header-zeros-frames.mp3:
$ fq -d mp3 verbose /header-zeros-frames.mp3
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /header-zeros-frames.mp3 (mp3) 0x0-0xff.7 (256)
| | | headers: [1] 0x0-0x2c.7 (45)
Expand Down
1 change: 0 additions & 1 deletion format/mp3/testdata/headerfooter.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -t 1ms -write_xing 0 -write_id3v2 4 -write_id3v1 1 -metadata title=test -f mp3 headerfooter.mp3
/headerfooter.mp3:
$ fq -d mp3 verbose /headerfooter.mp3
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /headerfooter.mp3 (mp3) 0x0-0x25d.7 (606)
| | | headers: [1] 0x0-0x3c.7 (61)
Expand Down
1 change: 0 additions & 1 deletion format/mp3/testdata/test.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -ac 2 -t 10ms -metadata title=test -write_xing 1 -write_id3v1 1 -f mp3 test.mp3
/test.mp3:
$ fq -d mp3 '.headers[0].magic | verbose' /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) 0x0-0x2.7 (3)
Expand Down
1 change: 0 additions & 1 deletion format/mp3/testdata/unknown.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# fq '"aaaa", .frames[0], "bbbb", .frames[0], "ccccc" | tobytes' test.mp3 > unknown.mp3
/unknown.mp3:
$ fq -d mp3 . /unknown.mp3
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /unknown.mp3 (mp3)
| | | headers: [0]
Expand Down
1 change: 0 additions & 1 deletion format/mp3/testdata/xing.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -y -f lavfi -i sine -ac 2 -t 10ms -f mp3 temp.mp3 && fq temp.mp3 '.frame[0].xing | tobits' > xing
/xing:
$ fq -d xing verbose /xing
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /xing (xing) 0x0-0x9b.7 (156)
0x00|49 6e 66 6f |Info | header: "Info" 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/aac.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -c:a aac -f mp4 -t 50ms aac.mp4
/aac.mp4:
$ fq -d mp4 verbose /aac.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /aac.mp4 (mp4) 0x0-0x59c.7 (1437)
| | | boxes: [4] 0x0-0x59c.7 (1437)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/av1.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -y -v trace -f lavfi -i testsrc -c:v librav1e -t 50ms av1.mp4
/av1.mp4:
$ fq -d mp4 verbose /av1.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /av1.mp4 (mp4) 0x0-0x14b1.7 (5298)
| | | boxes: [4] 0x0-0x14b1.7 (5298)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/avc.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -c:v h264 -f mp4 -t 50ms avc.mp4
/avc.mp4:
$ fq -d mp4 verbose /avc.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /avc.mp4 (mp4) 0x0-0xdf2.7 (3571)
| | | boxes: [4] 0x0-0xdf2.7 (3571)
Expand Down
4 changes: 0 additions & 4 deletions format/mp4/testdata/dash.fqtest
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# ffmpeg -f lavfi -i sine -f lavfi -i testsrc -g 1 -c:a aac -c:v h264 -f mp4 -t 100ms dash_in.mp4
# packager 'in=dash_in.mp4,stream=audio,init_segment=dash_audio_init.mp4,segment_template=dash_audio_$Number$.m4s
# packager 'in=dash_in.mp4,stream=video,init_segment=dash_video_init.mp4,segment_template=dash_video_$Number$.m4s'
/dash_audio_init.mp4:
/dash_audio_1.m4s:
/dash_video_init.mp4:
/dash_video_1.m4s:
$ fq -d mp4 verbose /dash_audio_init.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /dash_audio_init.mp4 (mp4) 0x0-0x32f.7 (816)
| | | boxes: [2] 0x0-0x32f.7 (816)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/flac.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -ac 2 -c:a flac -strict experimental -f mp4 -t 50ms flac.mp4
/flac.mp4:
$ fq -d mp4 verbose /flac.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /flac.mp4 (mp4) 0x0-0x542.7 (1347)
| | | boxes: [4] 0x0-0x542.7 (1347)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/fragmented.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -f lavfi -i testsrc -g 1 -c:a aac -c:v h264 -f mp4 -movflags +global_sidx+frag_keyframe+empty_moov -t 100ms fragmented.mp4
/fragmented.mp4:
$ fq -d mp4 verbose /fragmented.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /fragmented.mp4 (mp4) 0x0-0x2bb3.7 (11188)
| | | boxes: [11] 0x0-0x2bb3.7 (11188)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/heic.fqtest
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# ffmpeg -f lavfi -i testsrc=size=16x16:r=1 -preset slower -r 1 -t 1s -pix_fmt yuv420p -f hevc heic.hvc
# MP4Box -add-image heic.hvc -ab heic -new heic.mp4
/heic.mp4:
$ fq -d mp4 verbose /heic.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /heic.mp4 (mp4) 0x0-0xb2c.7 (2861)
| | | boxes: [4] 0x0-0xb2c.7 (2861)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/hevc.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -c:v hevc -f mp4 -t 50ms hevc.mp4
/hevc.mp4:
$ fq -d mp4 verbose /hevc.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /hevc.mp4 (mp4) 0x0-0x149a.7 (5275)
| | | boxes: [4] 0x0-0x149a.7 (5275)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/mp3.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -c:a mp3 -f mp4 -t 50ms mp3.mp4
/mp3.mp4:
$ fq -d mp4 verbose /mp3.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /mp3.mp4 (mp4) 0x0-0x564.7 (1381)
| | | boxes: [4] 0x0-0x564.7 (1381)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/mpeg2.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -c:v mpeg2video -f mp4 -t 50ms mpeg2.mp4
/mpeg2.mp4:
$ fq -d mp4 verbose /mpeg2.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /mpeg2.mp4 (mp4) 0x0-0x22a8.7 (8873)
| | | boxes: [4] 0x0-0x22a8.7 (8873)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/opus.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -strict experimental -c:a opus -t 50ms opus.mp4
/opus.mp4:
$ fq -d mp4 verbose /opus.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /opus.mp4 (mp4) 0x0-0x438.7 (1081)
| | | boxes: [4] 0x0-0x438.7 (1081)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/path.fqtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/fragmented.mp4:
$ fq -d mp4 'mp4_path(".moov.trak[1]")' /fragmented.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.boxes[1].boxes[2]: {}
0x280| 00 00 01 bf | .... | size: 447
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/vorbis.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -ac 2 -strict experimental -c:a vorbis -t 50ms vorbis.mp4
/vorbis.mp4:
$ fq -d mp4 verbose /vorbis.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /vorbis.mp4 (mp4) 0x0-0x1188.7 (4489)
| | | boxes: [4] 0x0-0x1188.7 (4489)
Expand Down
1 change: 0 additions & 1 deletion format/mp4/testdata/vp9.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i testsrc -c:v vp9 -t 50ms vp9.mp4
/vp9.mp4:
$ fq -d mp4 verbose /vp9.mp4
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /vp9.mp4 (mp4) 0x0-0x184e.7 (6223)
| | | boxes: [4] 0x0-0x184e.7 (6223)
Expand Down
1 change: 0 additions & 1 deletion format/mpeg/testdata/adts.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -y -f lavfi -i sine -ac 2 -t 40ms -f adts adts
/adts:
$ fq -d adts verbose /adts
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: [3] /adts (adts) 0x0-0x406.7 (1031)
| | | [0]: frame {} (adts_frame) 0x0-0x153.7 (340)
Expand Down
1 change: 0 additions & 1 deletion format/mpeg/testdata/avc_annexb.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -y -f lavfi -i testsrc -t 10ms -f h264 avc_annexb
/avc_annexb:
$ fq -d avc_annexb verbose /avc_annexb
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: [8] /avc_annexb (avc_annexb) 0x0-0xae4.7 (2789)
0x0000|00 00 00 01 |.... | [0]: start_code 00000001 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/mpeg/testdata/hevc_annexb.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -y -f lavfi -i testsrc -t 10ms -f hevc hevc_annexb
/hevc_annexb:
$ fq -d hevc_annexb verbose /hevc_annexb
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: [10] /hevc_annexb (hevc_annexb) 0x0-0x1193.7 (4500)
0x0000|00 00 00 01 |.... | [0]: start_code 00000001 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/mpeg/testdata/mp3-frame-mono-crc.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -f lavfi -i sine -t 10ms -f wav pipe:1 | lame - - | fq - '.frame[1] | tobits' > mp3-frame-mono-crc
/mp3-frame-mono-crc:
$ fq -d mp3_frame '.header.crc | verbose' /mp3-frame-mono-crc
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0| 2c b9 | ,. |.header.crc: 2cb9 0x4-0x5.7 (2)
1 change: 0 additions & 1 deletion format/mpeg/testdata/mp3-frame-mono.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -y -f lavfi -i sine -ac 1 -t 10ms -f mp3 file && fq file '.frame[1] | tobits' > mp3-frame-mono
/mp3-frame-mono:
$ fq -d mp3_frame verbose /mp3-frame-mono
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /mp3-frame-mono (mp3_frame) 0x0-0xcf.7 (208)
| | | header: {} 0x0-0x3.7 (4)
Expand Down
1 change: 0 additions & 1 deletion format/mpeg/testdata/mp3-frame-stereo.fqtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ffmpeg -y -f lavfi -i sine -ac 2 -t 10ms -f mp3 file && fq file '.frame[1] | tobits' > mp3-frame-stereo
/mp3-frame-stereo:
$ fq -d mp3_frame verbose /mp3-frame-stereo
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.: {} /mp3-frame-stereo (mp3_frame) 0x0-0x1a0.7 (417)
| | | header: {} 0x0-0x3.7 (4)
Expand Down
Loading

0 comments on commit 6916880

Please sign in to comment.