tests/video: comments: specs only
This commit is contained in:
1 parent
96602286f8
commit
1d4f02d984
14 files changed
+37
-109
No files matched your search
+2
-10
@@ -1,8 +1,5 @@
|
||||
-- video/mkv tests: Matroska / WebM files from ffmpeg and mkvmerge (VP8 + Opus / Vorbis, MJPEG + PCM, MPEG-1 + MP2,
|
||||
-- VP8 + FLAC, srt subtitles, Xiph / EBML / fixed lacing, zlib compression, unknown-size clusters, a truncated file):
|
||||
-- tracks and every packet against ffprobe, frames against ffmpeg (bit-exact VP8, PSNR for MJPEG / MPEG-1), audio
|
||||
-- through the api hook against ffmpeg, seeking, subtitles; our muxer's output (remux and MJPEG) read back. Fixtures:
|
||||
-- tools/fixtures/mkv.py.
|
||||
-- video/mkv tests: Matroska / WebM files from ffmpeg and mkvmerge against ffprobe / ffmpeg; our muxer read back.
|
||||
-- Fixtures: tools/fixtures/mkv.py.
|
||||
local T = require("@tests/T")
|
||||
local C = require("@tests/video/_common")
|
||||
local F = require("@rosetta")
|
||||
@@ -13,7 +10,6 @@ local Fx = require("@tests/gen/mkv_cases")
|
||||
|
||||
local t = T.suite("mkv")
|
||||
|
||||
-- 1. contract
|
||||
t:eq(Mkv.name, "mkv", "name")
|
||||
t:eq(Mkv.category, "video", "category")
|
||||
t:check(table.find(Mkv.extensions, "webm") ~= nil, "webm extension")
|
||||
@@ -24,7 +20,6 @@ for _, c in Fx do
|
||||
byName[c.name] = c
|
||||
end
|
||||
|
||||
-- 2. every fixture
|
||||
for _, c in Fx do
|
||||
local label = c.name
|
||||
t:check(Mkv.sniff(Bytes.reader(buffer.fromstring(c.data))) > 0, label .. ": sniff")
|
||||
@@ -68,7 +63,6 @@ for _, c in Fx do
|
||||
end
|
||||
end
|
||||
|
||||
-- 3. specific files
|
||||
do
|
||||
local v = C.open(byName["vp8_opus.webm"].data)
|
||||
t:eq(v.format, "webm", "webm: format")
|
||||
@@ -98,7 +92,6 @@ do
|
||||
t:eq(F.format("webm").name, "mkv", "format(webm) is mkv")
|
||||
end
|
||||
|
||||
-- 4. our muxer: remux WebM (VP8 + Opus copied) and read it back packet for packet
|
||||
do
|
||||
local src = byName["vp8_opus.webm"]
|
||||
local v = C.open(src.data)
|
||||
@@ -126,7 +119,6 @@ do
|
||||
t:check(bad == nil and berr ~= nil and berr.code == Err.UNSUPPORTED, "webm refuses MJPEG: " .. tostring(berr))
|
||||
end
|
||||
|
||||
-- 5. errors and the fuzz pass
|
||||
local e1 = select(2, Mkv.open(Bytes.reader(buffer.fromstring("\26\69\223\163\128"))))
|
||||
t:check(e1 ~= nil, "empty EBML header fails")
|
||||
local samples = {}
|
||||
|
||||
Reference in new issue
Block a user