ws-video: MJPEG (codecs/Jpeg, yuv420p full range; encoder remaps limited-range frames) and MPEG-1 (codecs/Mpeg1, display reordering with the packet pts as tag) in the codec registry; VideoFrame times count from the demuxer's startTime (TS starts at 1.4 s); Matroska Vorbis keeps its codec delay; fixtures decode with -fps_mode passthrough
This commit is contained in:
1 parent
ba996820b5
commit
bd06545e2e
9 files changed
+136
-11
No files matched your search
@@ -269,7 +269,9 @@ local function openAudio(demuxer: any, track: any): (any, Err.Err?)
|
||||
return nil, err
|
||||
end
|
||||
local dec, oerr = F.open(buf, { format = fmt, category = "audio" })
|
||||
if dec and fmt ~= "opus" and type(track.codecDelay) == "number" and track.codecDelay > 0 then
|
||||
-- Matroska CodecDelay: ffmpeg drops it for MPEG audio / AAC; Opus has its own pre-skip and Vorbis's delay is
|
||||
-- already the decoder's own (its first packet returns nothing)
|
||||
if dec and fmt ~= "opus" and fmt ~= "vorbis" and type(track.codecDelay) == "number" and track.codecDelay > 0 then
|
||||
dec = AudioWrap.trim(dec, math.floor(track.codecDelay * dec.sampleRate + 0.5))
|
||||
end
|
||||
return dec, oerr
|
||||
|
||||
Reference in new issue
Block a user