Fix UHD remux: skip DV EL from video_pending, dynamic lookahead
- Secondary video streams (Dolby Vision EL) no longer block codec detection - Lookahead buffer: 10 MB default, 100 MB for UHD (>15 streams) - Verified: Dune UHD 84.6 GB remux completes at 101 MB/s - Verified: V for Vendetta BD 21.3 GB remux completes at 131 MB/s
This commit is contained in:
@@ -84,7 +84,11 @@ impl MkvStream {
|
||||
for s in &dt.streams {
|
||||
let (pid, track, parser) = match s {
|
||||
crate::disc::Stream::Video(v) => {
|
||||
ws.video_pending += 1;
|
||||
// Only count primary video as pending — secondary streams
|
||||
// (Dolby Vision EL, PiP) may never produce codec headers
|
||||
if !v.secondary {
|
||||
ws.video_pending += 1;
|
||||
}
|
||||
(v.pid, MkvTrack::video(v), codec::parser_for_codec(v.codec))
|
||||
}
|
||||
crate::disc::Stream::Audio(a) => {
|
||||
|
||||
Reference in New Issue
Block a user