8000 GitHub - dhucul/NoirMediaPlayer · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

NOIR Media Player

NOIR is a modern, keyboard-first DVD, video, audio, and network-stream player for Windows. It is built with WPF on .NET 10, uses Windows Media Foundation for supported local and direct HTTP/HTTPS playback, and retains VLC/AACS as a compatibility fallback during the migration to Windows APIs.

Mac version: a native Apple Silicon port is available at NoirMediaPlayer-Mac. Download the disk image from its latest release.

What is included

  • Sleek black custom-chrome interface using Segoe UI Variable and Segoe Fluent Icons
  • Windows Media Foundation playback with a LibVLC 3 compatibility fallback and hardware-decoding support
  • Local video and audio playback across common container and codec formats
  • Optical DVD and Blu-ray source discovery
  • One-click optical-disc eject with active-drive selection
  • VIDEO_TS and BDMV folder playback
  • DVD menu activation and Alt + arrow-key navigation
  • HTTP, HTTPS, RTSP, RTP, UDP, and direct network streams
  • Multi-select file opening, recursive folder scanning, and drag-and-drop
  • Searchable play queue with M3U/M3U8 import and export
  • Shuffle plus Off, All, and One repeat modes
  • Automatic next-item playback
  • Remembered playback positions and recent-source history
  • Audio-track and subtitle-track selection
  • External SRT, ASS, SSA, SUB, VTT/WEBVTT, and IDX subtitle loading
  • Playback rates from 0.5× to 2×
  • Original aspect-ratio playback (Inspector → View → Aspect ratio → Original), optional ratio overrides, 90-degree rotation, and chapter navigation
  • PNG video snapshots saved to Pictures\Noir Snapshots
  • Fullscreen and always-on-top mini-player modes
  • Persistent volume, mute, playback, and decoding preferences
  • Per-monitor DPI awareness and long-path support

Windows playback migration

Quick Settings → Prefer Windows playback is enabled by default and applies the next time a source opens. Windows Media Foundation is tried for local MP4, M4V, MOV, AVI, WMV, MP3, M4A, AAC, WAV, WMA, 3GP, ASF, FLAC, and MKV files. Direct HTTP/HTTPS URLs with these file extensions can also use native playback; Matroska requires successful bounded timeline inspection first and retains the compatibility cases described below. Playback uses the codecs available to Windows; a container extension does not guarantee codec support. A native startup failure, rendering error, or startup timeout automatically retries the source with VLC.

Turning off hardware decoding now keeps supported video and audio on Windows, including supported HTTP/HTTPS sources. Video uses Media Foundation's frame-server mode without a DXGI device manager, which selects software decoding and processing. Windows transfers each available frame into a WIC bitmap, and first-party Win32/GDI code presents it in the existing video window. Audio and the playback clock remain on Media Engine. Original proportions, all five aspect overrides, source orientation/PAR, manual rotation, resize modes, source-resolution captures, supported external captions and chapters, audio selection/off, pause/rate, restart, and later compatibility handoff retain their existing behavior. A single retained picture avoids frame or dispatcher queues; the WIC frame and display DIB are each limited to 64 MiB. Unsupported codecs, media-type negotiation, oversized surfaces, and presentation failures retry VLC. The current Windows software MJPEG fixtures in AVI and Matroska return MF_E_TRANSFORM_TYPE_NOT_SET and retain their working compatibility picture and captions. Unsupported embedded captions, alternate video, and other unknown streams still use compatibility playback. Disabling the Windows-playback preference selects VLC directly.

Plain embedded UTF-8/SRT subtitles in local MKV with ordinary default-track flags now use Windows Media Foundation timed text and its cue notifications, rendered by the first-party WPF caption presenter. Track names/languages, multiple embedded tracks, subtitles off, external-caption selection, paused seeking, replay and source-frame PNG captures retain their selections and timing. Initial selection occurs before playback starts so the first cue is included. Captions remain upright and follow the displayed picture during resizing. Windows cue data is copied into bounded managed text; native cue pointers are not retained. Formatted or positioned text, binary/image captions, overlapping cues, customized default/forced/accessibility track flags, other embedded formats and network captions retain VLC. A bounded first-party EBML metadata check preserves those automatic track choices without reading media payloads. A later unsupported cue switches to compatibility playback with position, pause, audio and subtitle choices restored; no embedded subtitle extraction or third-party parser is used.

Multiple audio tracks, track selection, and disabling/re-enabling audio now stay on the Windows backend. Track labels use the stream's name and language when supplied. Local video snapshots use a separate Media Foundation Source Reader to decode the frame at the playback clock, then save a PNG through Windows imaging without restarting playback or capturing the player controls.

Independent native snapshots, including validated ASF captures during VLC playback, run in a hidden child process with one capture slot and a ten-second request deadline. Timeout, stop, source changes and shutdown terminate that process independently of the live player. A bounded two-second cleanup wait allows the child to exit before another capture; the slot stays reserved if termination is delayed. A hung decoder can therefore be retried without restarting the app. Only successful child output is published from a temporary file; canceled or partial output is discarded. The child also exits on parent-pipe closure and has a thirty-second lifetime watchdog. It starts without the player window or VLC prewarm, receives captured source/time/rotation/caption state through a size-limited pipe, and uses software snapshot decoding. The existing per-image and HTTP budgets still apply; there is no total process-memory or VRAM quota. Captures do not occupy the transport command queue. Completed capture failures retain the VLC fallback; request timeouts leave playback unchanged. Live VLC renderer snapshots continue to use the serialized playback queue.

A bounded snapshot smoke test on 2026-10-23 verified the real worker process and PNG publication using one two-second, 160×96 MJPEG video (ten frames), captured at 1.2 seconds. Image dimensions and 153 sampled pixels passed; the worker exited successfully, its capture slot was released, and no staging files remained. Fixture encoding and capture ran sequentially in software, with a one-core affinity, 384 MiB per-process memory cap, 512 MiB aggregate cap, and a twenty-second overall deadline. These are smoke-test limits, not application-wide resource quotas. This check did not exercise live playback, disc playback, or GPU stress workloads.

Fallback position restoration waits up to two seconds for usable duration and seekability after stream restoration settles. A source that cannot seek proceeds without repositioning, while saved bookmarks remain intact. Rotation selected during source inspection or queued native creation is applied before opening the source and reconciled again before showing playback.

Native snapshots also honor standard 0°, 90°, 180°, and 270° source orientation metadata, including portrait phone recordings. Media Foundation supplies the stored frame rotation, and WPF applies the correction after pixel-aspect scaling and before composing captions. This keeps exported dimensions consistent with the native picture and captions upright, including local and supported HTTP video, anamorphic sources, and captures after resize, mini-player, or fullscreen changes. Unknown rotation attribute values, inconsistent decoder orientation, and decoding failures retain compatibility capture.

The manual Rotate control now keeps supported video on Windows. With hardware decoding enabled, Media Foundation presents through its windowless swap chain, and first-party C# calls to Direct3D 11 and DirectComposition rotate the video surface by 90°, 180°, or 270° without reopening the media. With hardware decoding disabled, the GDI presenter applies the same rotation to software-decoded frames. Source orientation and pixel-aspect correction happen before manual rotation; the picture stays centered and letterboxed at its resulting original proportions through resizing, mini-player, fullscreen, and minimize/restore. External captions remain upright in the rotated picture, including native PNG captures. Rotation retains pause/play state, the clock, chapters, rate, audio off/selection, and caption selection. Restart also opens the selected rotation natively. Audio-only sources retain their transport and caption pane. If the graphics adapter cannot supply a composition device with hardware decoding enabled, the established Windows window renderer remains available for original presentation; unavailable or failed native rotation uses the existing VLC handoff.

The 16:9, 16:10, 4:3, 1:1, and 21:9 aspect overrides also stay on Windows. Media Foundation fills a surface at the source's exact display aspect ratio, and the software GDI presenter or DirectComposition's visual transform fits the whole picture to the selected final ratio, including after manual rotation. No source pixels are cropped. The picture stays centered through resizing, mini-player, fullscreen, and minimize/restore; selecting Original restores source proportions. Caption layout follows the displayed picture while glyphs remain upright and unstretched. Pause/play state, the clock, audio off/selection, chapters, and the player instance are retained. Preselected ratios, changes while a source is opening, and restart also stay native. Audio-only sources keep the full caption pane. PNG exports retain source dimensions with pixel-aspect/source-orientation correction and manual rotation; ratio overrides affect the view, matching the existing compatibility capture behavior. Unsupported ratio strings, unavailable native presentation, excessive surface dimensions, and presentation failures retain VLC. A later unsupported feature carries the selected ratio and rotation through the existing handoff; VLC's existing paused H.264 input-clock reporting is unchanged.

Snapshots from supported finite, seekable HTTP/HTTPS video can also stay native when the server supplies consistent byte ranges. A read-only first-party .NET range stream feeds the Windows Media Foundation byte-stream reader; it uses a shared eight-second network deadline, at most 256 requests/64 MiB of input, and a 1 MiB cache. It checks range offsets, lengths, content encoding, and supplied entity validators before decoding. Media is read into bounded memory without saving a temporary video file. Captures use source resolution, pixel-aspect correction, and the selected supported external captions while retaining the playing/paused session, clock, playback rate, and audio selection. Servers without usable ranges, changed or incomplete responses, stalled reads, unsupported decoding, and other unmigrated snapshot cases retry through VLC with the existing session handoff.

The video surface is now a first-party Win32/WPF host shared by Windows playback and the VLC fallback. Its owned, non-activating overlay follows resizing, minimization, fullscreen, and mini-player mode. The LibVLCSharp.WPF package has been removed; the core LibVLCSharp wrapper remains for compatibility playback.

SRT and WebVTT files can stay on Windows playback for plain text, supported inline bold/italic/underline styling, supported foreground colors, and WebVTT background colors. First-party C# parsing and Windows/WPF text rendering support cue timing, multiline Unicode text, seeking, subtitle-track selection, and turning subtitles off. Balanced lowercase <b>, <i>, and <u> tags can be nested with supported color tags; their formatting is applied to the video overlay and native PNG snapshots. WebVTT also supports cue identifiers, comments, and its six named character references. SubRip supports common named text escapes and ordinary unescaped ampersands. Escaped markup remains literal text. A dedicated playback-clock timer updates captions, including consecutive cues with identical text but different styles or colors.

SubRip colors support lowercase <font color="…"> tags with opaque #RRGGBB values or basic HTML color names (plus grey, cyan, magenta, and orange); values can be double-quoted, single-quoted, or unquoted. WebVTT supports its eight standard foreground classes: <c.white>, <c.lime>, <c.cyan>, <c.red>, <c.yellow>, <c.magenta>, <c.blue>, and <c.black>. The corresponding opaque background classes, such as <c.bg_blue>, also stay native. One foreground and one background class can share a tag in either order, for example <c.yellow.bg_blue>, following the WebVTT default color classes. Nested tags restore the parent's foreground, background, and inline styles when they close. The renderer uses WPF's shaped glyph outlines, text selection geometry, and per-run brushes to keep overlay and snapshot colors consistent, including colored underlines, wrapped lines, and bidirectional Unicode text. Background fills stay inside the picture and clear when the cue changes or subtitles turn off.

WebVTT voice spans now also stay native. Speaker names in <v Alice>Dialogue</v> remain non-visible annotations, while dialogue, multiline Unicode text, inline styles, colors and backgrounds use the Windows/WPF renderer on both video and audio. A voice covering the whole cue may omit its closing </v>; other tags remain balanced. Standard foreground/background classes also work directly on supported bold, italic, underline and voice spans, such as <b.yellow.bg_blue>Text</b> and <v.red Narrator>Text</v>. The parser admits bounded plain speaker names and the same six named WebVTT character references. Automatic/manual loading, caption timing, backward seeks, subtitles-off, chapter commands, rotated source PNGs, restart and compatibility handoff retain the original caption files and track inventory.

WebVTT language spans, s 8000 uch as <lang ja-JP>日本語</lang>, also stay native for known Windows/.NET culture names. WPF's per-range culture support applies the language to text shaping, including language-specific Japanese/Chinese glyphs in the overlay and PNG snapshots. Neutral, script and region names are supported, including the documented zh-CN and zh-TW aliases. Nested language spans restore the surrounding language; styles, standard color classes and voice annotations retain their own scopes. Language annotations remain invisible, and changing only the language still refreshes the caption. Local and HTTP video/audio, subtitle selection/off, backward seeking, rotation, restart and later compatibility handoff preserve the original files and selected tracks.

SubRip's common alignment extension, {\an1} through {\an9}, now stays native with Windows/WPF text alignment and layout. A single exact tag at the start of a cue selects bottom, middle or top placement, with left, center or right alignment. Multiline Unicode text, supported inline styles and colors retain their formatting, and an untagged cue returns to the usual bottom-center position. Captions stay upright and inside the fitted picture through resizing, mini-player, fullscreen, aspect overrides and rotation; source-resolution PNGs use the same placement. Automatic/manual loading, local and HTTP video/audio, seeking, selection/off, chapters, restart and compatibility handoff retain the original caption files and track selection.

Transparency, other color syntaxes, font face/size attributes, CSS (including voice/language-specific rules), custom WebVTT classes, competing or duplicate foreground/background classes, unknown or unsupported language tags, ruby, karaoke, WebVTT positioning, SubRip coordinate/movement/animation or combined overrides, overlapping cues, malformed or excessive markup, unusually long captions, and other unsupported subtitle content continue through VLC. ASS/SSA files retain their complete compatibility renderer. The parser retains the original files for compatibility handoff, so formatting is preserved when a later feature needs VLC.

Supported SRT and WebVTT sidecars are discovered beside the video and in its subs and subtitles folders, including supported inline styles. Both .vtt and .webvtt use the same strict UTF-8 WebVTT parser for automatic discovery and manual loading, including local and HTTP audio/video playback. The subtitle file picker includes both extensions.

A single exact-name sidecar (for example, film.mp4 and film.srt) or a single qualified sidecar is selected automatically on Windows playback. Qualified names can describe a language, region, forced captions, or accessibility: film.en.srt, film.pt-BR.vtt, film.en_US.srt, film.en.forced.webvtt, film_en.srt, and film (English SDH).vtt are supported examples. The description must follow the complete media stem and a separator, using ASCII letters/digits, spaces, periods, underscores, hyphens, parentheses, or brackets. Multiple supported sidecars stay native when one exact-name file supplies an unambiguous default; all discovered tracks remain selectable. Discovery and parsing run away from the UI thread with limits on files, tracks, bytes, cues, and elapsed time.

Equal-priority defaults (such as two qualified files with no exact-name file), unsupported matching tracks, fuzzy names, non-ASCII or other unsupported descriptions, non-default search folders, and uncertain filename matching retain VLC's discovery and selection rules. Matching unsupported content in any track keeps compatibility playback instead of omitting that track. Restart and compatibility handoff preserve the complete native subtitle inventory, selected track or subtitles-off state, and original files. Restored native tracks populate the selector immediately, so automatic captions can be turned off and back on before the next metadata timer tick.

Supported external SRT/WebVTT captions now also stay native on audio-only sources, including direct HTTP/HTTPS audio with manually loaded captions. The first-party WPF renderer uses the full playback pane with an opaque black background; a previous video's last frame cannot show through. Automatic discovery, colors and inline styles, cue transitions, paused/backward seeking, audio disable/re-enable, chapter jumps, track selection, and subtitles-off work without creating a video stream or restarting the source. Audio-only snapshot requests and unsupported caption content retain the existing VLC fallback, including pause, position, audio selection, loaded caption files, and caption selection. Embedded captions outside the validated local MKV text path retain compatibility playback.

Discs, disc folders, other formats, and sources with unsupported embedded subtitles or alternate video streams continue through VLC. Caption discovery checks Windows' separate timed-text service as well as the audio/video stream inventory, so embedded captions do not disappear from the track selectors. RTSP/RTP/UDP streams, unidentified web content, unsupported web endpoints, and URLs with explicit username/password credentials also stay on VLC. Hardware decoding can be disabled for supported native video and audio; unavailable Windows software codecs retain compatibility playback.

Extensionless HTTP/HTTPS URLs and common download/API endpoints (.php, .asp, .aspx, .ashx, .axd, .cgi, .bin, and .download) can now keep supported MP4-family, WAV, AVI, Matroska, and ASF (WMV/WMA) content on Windows. Startup checks the content through the bounded range reader before admitting it: RIFF signatures and exact lengths must agree, MIME types must be compatible, MP4/Matroska files must pass the complete chapter/timeline inspection, and Windows must validate an ASF file's finite, seekable, unprotected timeline and canonical markers. The probe has a two-second network deadline, an 8 MiB traffic limit, and a 1 MiB cache. Identified types also travel to the Windows snapshot reader, so supported generic binary responses retain source-frame captures. The original source URL and query string stay in the session; the app does not add an extension or save a temporary media file. Playback still uses Windows' source resolution.

These endpoint sources retain supported captions, chapter commands, snapshots, audio off/on, pause, rate, restart, and compatibility handoff. Matroska endpoints accept compatible audio/video Matroska MIME types or generic binary responses only after the full physical timeline has been validated, including chapters after the media data. Supported audio-only Matroska also retains multiple audio tracks and can run with hardware decoding disabled. ASF endpoints accept compatible WMV/WMA/ASF MIME types or generic binary responses after Windows' metadata reader validates the source. WMV retains source-frame snapshots and captions; WMA can also run with hardware decoding disabled. Validated Windows ASF markers remain available with VLC decoding, including when the Windows-playback preference is disabled. Handoff retains their provenance and reuses the map even if the server stops accepting ranges; opening a different container cannot carry those markers into the new session. Video with multiple audio tracks retains VLC because immediate seeking after a native track change did not reliably preserve the clock. Re-enabling the already selected native audio stream now changes mute state without unnecessarily reconfiguring that stream. Playlists/manifests, other EBML document types, non-range or live inputs, contradictory MIME types, uncertain RIFF/MP4 layouts, ordered/linked or other unsupported Matroska timelines, unvalidated ASF metadata, enabled visible chapter tracks, and other endpoint containers retain VLC. Recognized media-file URLs keep their existing format-specific routing and inspection.

Previous/next chapter navigation in supported local Matroska files now seeks through Windows Media Foundation without restarting playback. A bounded first-party EBML metadata reader admits a single visible edition with flat, enabled chapter markers on the physical timeline. It skips encoded media instead of decoding it and reads metadata away from the UI thread. Pause, playback rate, audio selection, loaded captions, and native snapshots remain available. Chapterless Matroska navigation stays native as a no-op, matching VLC. Native chapter commands wait off the UI thread for Windows to confirm each seek before calculating another jump, so rapid requests cannot both use the previous clock position. Explicit seeks reset the chapter-position hint. A confirmation timeout retains the intended absolute target during compatibility handoff.

Ordered, linked, nested, hidden/disabled, multiple-edition, malformed, or unsupported Matroska chapter metadata retains VLC from the start, so virtual timelines and chapter commands are not silently discarded.

Finite HTTP/HTTPS .mkv sources can now also stay on Windows Media Foundation's Matroska support. Before native startup, the first-party reader validates the complete physical chapter timeline through bounded HTTP byte ranges, including chapters after the media data. Inspection runs off the UI thread with the same two-second network deadline, 8 MiB traffic limit, and 1 MiB cache used for HTTP MP4 chapters. It skips encoded media, validates HTTP responses and supplied entity validators, and saves no temporary media file. Supported audio-only sources retain multiple audio tracks and can run with hardware decoding off. Supported video with a single audio track retains chapters, caption selection, source-frame snapshots, pause/play, rate, and audio off. Chapterless sources keep chapter commands as native no-ops.

Failed or incomplete HTTP inspection, live/non-range sources, unsupported Matroska timelines, embedded subtitles, and unsupported codecs/streams retain VLC. Network Matroska video with multiple audio tracks also retains VLC: the native regression fixture could play and switch audio but could not confirm a subsequent seek. This restriction preserves seeking and track selection while that replacement remains incomplete. Restart and later compatibility handoff retain native caption files/selection, audio selection/off, pause, time, and rate.

Local MPG, MPEG, and standalone VOB program-stream files now try Windows playback when a bounded first-party metadata check finds a consistent program map with one video stream and at most one audio stream. The check reads at most 1 MiB without changing the source, validates map CRCs and packet bounds, and rejects private/DVD packets, scrambling, conditional access, extra or undeclared tracks, and unknown layouts. Windows' discovered stream counts must match the map before playback is accepted. Available Windows codecs still determine decoding; H.264/AAC and video-only fixtures are verified with hardware decoding enabled and disabled. Original-aspect resizing, pause/resume, rate and audio selection/off remain available. Validated chapterless files keep chapter navigation as a no-op.

MPEG seeking and frame capture still hand off to VLC: Windows accepted the regression fixture's seek but landed several seconds beyond the target, and its Source Reader shares this limitation. The handoff preserves position requests, pause, playback rate and audio-off; paused capture waits for a picture before pausing the compatibility input. MPEG files with automatic captions remain on VLC from startup, and manually loading captions switches to VLC before native caption presentation. This preserves existing caption behavior while first-frame/paused caption composition remains unverified. TS, MTS and M2TS files also retain VLC because caption restoration during native handoff could disturb their audio/video program inventory. Standalone VOB support does not alter DVD folder/disc navigation, protection or subpictures. No DVD/Blu-ray routing or compatibility libraries have changed.

Local MP4, M4V, M4A, MOV, and 3GP files also keep chapter navigation on Windows when their metadata contains a supported Nero version-1 chapter list, GoPro HiLight markers, or a supported QuickTime chapter track. A bounded first-party atom reader skips encoded audio/video and handles 64-bit box sizes and movie durations. Validated chapterless files keep navigation as a native no-op.

Direct HTTP/HTTPS sources in the same MP4 family now retain these supported chapter commands on Windows, including audio-only playback with hardware decoding off. Startup inspects chapter metadata away from the UI thread through the shared first-party HTTP range reader, with a two-second network deadline, at most 8 MiB fetched, and a 1 MiB cache. It skips media payloads and validates ranges, lengths, encodings, redirects, and supplied entity validators. No temporary media file is saved. Chapter jumps use Windows Media Foundation seeking and preserve the native session, pause/play state, rate, audio selection/off, external captions, and video snapshots. Failed, slow, unsupported or inconsistent metadata inspection leaves the existing VLC chapter handoff available; enabled visible chapter tracks use compatibility playback from the start. Other unmigrated network containers and disc chapters retain compatibility playback.

QuickTime chapters support a single disabled, self-contained text or tx3g track on an unmodified timeline, including a single identity edit. The reader validates chapter ownership, timing, sample sizes, chunk mappings, local data references, and text-sample boundaries. It supports 32/64-bit headers and chunk offsets, fixed/variable sample sizes, multiple chunks, and run-length timing tables. Chapter jumps preserve the Windows session, paused/playing state, audio selection, external captions, and source-frame snapshots. Nero lists and GoPro HiLight markers retain their existing precedence when also present.

Enabled chapter tracks retain VLC from the start because they can also present visible text or pictures. Alternate chapter lists, external references, trims/gaps/rate changes, nonzero composition offsets, fragmented/compressed movies, oversized or malformed metadata, and other unsupported layouts retain VLC chapter navigation through the existing session handoff.

Local WMV, WMA, and ASF chapter markers now use Windows' metadata APIs, with chapter seeks through Media Foundation during native playback. The reader opens files with read-only access through IWMMetadataEditor2 and retrieves markers through IWMHeaderInfo; it never flushes or edits the source. It validates a finite, seekable, unprotected timeline and distinct marker times, with limits on marker count, name size, and inspection time. Chapterless files keep navigation as a no-op. The Windows marker API supplies the canonical timeline instead of adding a bundled ASF parser.

Finite HTTP/HTTPS WMV, WMA, and ASF sources now also keep supported chapter navigation on Windows. The shared bounded range reader feeds Windows' IWMSyncReader::OpenStream, and IWMHeaderInfo supplies the same canonical markers and validation used for local sources. This reader is used only for metadata; playback and chapter seeks remain on Media Foundation. Inspection runs off the UI thread with a two-second network deadline, an 8 MiB traffic limit, and a 1 MiB cache. It requests no decoded samples, performs no metadata writes, and saves no temporary media file. Supported native video keeps source-frame snapshots and captions; supported WMA audio also retains native playback with hardware decoding disabled. Failed metadata inspection leaves basic playback available and retains the existing chapter handoff.

These Windows marker maps also remain available during local and supported HTTP ASF compatibility playback, including when complex captions need VLC, or when the Windows-playback preference is disabled. This adds chapter navigation where the bundled VLC ASF reader exposes no chapters. Handoff retains an already validated map without repeating metadata inspection, so marker navigation can continue if the server stops supporting ranges. Paused seek positions drive subsequent chapter commands, the timeline display, and resume bookmarks while VLC caches its old clock. Playback, explicit seeks, and source replacement update or clear that position. Native chapter jumps retain captions, audio off/selection, playback rate, paused state, and source-frame snapshots. Unreadable or unsupported marker metadata, duplicate times, excessive markers or names, and failed remote inspection retain the existing compatibility behavior.

Validated ASF video can also use Windows Source Reader capture while live playback remains on VLC. This includes original-aspect video with hardware decoding disabled or the Windows-playback preference off, using local files, supported HTTP sources, and identified download endpoints. Capture uses the confirmed physical chapter position after paused seeks, so it does not depend on VLC producing another picture. It preserves the player, pause/play state, audio selection/off, rate, source URL, and selected supported external SRT/WebVTT captions. Manually loaded and restored plain caption files are associated with uniquely confirmed VLC track IDs; the current selection supplies snapshot captions, and source replacement clears those associations. Caption files that have changed since parsing keep their compatibility renderer. Handoff publishes restored controls before dependent commands run, without waiting for a metadata timer tick. Manual rotation, forced aspect ratios, alternate or disabled video, unknown/automatic/embedded or complex caption tracks, and unvalidated timelines retain VLC capture. If Windows cannot read or decode the source, capture retries the existing renderer; an already failed native snapshot is not decoded a second time during the same handoff. VLC's video-output limitation after paused ASF seeks can still affect these remaining compatibility capture paths.

Unsupported embedded captions, complex external subtitle rendering, and unmigrated chapter navigation still use the compatibility backend. Requesting one of these features during native playback switches the current source to VLC, retaining its position, paused state, audio-track choice, rotation, and loaded SRT/WebVTT tracks (including supported styles and the subtitles-off selection) before applying the command. Captions are restored once during handoff without duplicate tracks. Audio and caption selections are confirmed before dependent commands run, including audio-off restoration when a native command is still completing. The saved position is applied after stream selection and pause restoration; paused seeks settle on the playback worker and retry once if VLC's input clock moves away from the target. Manually added compatibility captions are also explicitly selected after discovery. Snapshots that Windows cannot decode also retry through VLC. Hover over the playback status to see the active engine.

Inspector → View → Aspect ratio → Original preserves the source display aspect ratio as the window changes size, including mini-player and fullscreen. Windows handles native picture-aspect correction and letterboxing; VLC uses its automatic source aspect ratio.

VLC, the LibVLCSharp wrapper and AACS are retained dependencies. DVD and Blu-ray playback in the main player use the working VLC/AACS backend. The native disc replacement effort has stopped; the separate experimental readers and preview remain available as development code. Existing Windows playback for supported ordinary files remains enabled. The detailed migration inventory below records that work and its limitations, rather than a scheduled disc rewrite.

VLC updates ship with NOIR releases. Normal builds and publishes select our tested custom VLC engine through tools/vlc/DefaultRuntime.props, retaining DVD, Blu-ray and AACS support. Build and publish validate the disc components and regenerate the plug-in cache. A separate VLC desktop installation does not update NOIR's bundled engine.

The completion target is common video/audio playback plus DVD and Blu-ray video. Rare formats, unusual stream protocols, and obscure subtitle/layout variants are no longer migration milestones. Existing compatibility support remains available for them; expanding their native support will not hold up the main work.

Historical native coverage and replacement gaps:

Milestone Current position and completion requirement
Common files MP4/MKV/MOV/AVI/WMV video and MP3/AAC/M4A/WAV/FLAC/WMA audio already have native playback paths with supported Windows codecs. Validated plain embedded SRT in local MKV now stays native; finish other common embedded subtitles, remaining multi-track/seek issues and TS/M2TS cases. Guarded local MPEG program streams now have native basic playback; their precise seeks, capture and captions retain VLC. Verify ordinary controls, aspect ratio/resize, audio/subtitle selection and snapshots against representative media.
DVD Own C# IFO reading, chapter/cell mapping, VOB title streaming, NAV/PCI/DSI reading, menu interaction, a bounded VM subset, domain/call/resume resolution, forward VOBU traversal, cell completion and still holds are implemented. The separate Windows preview decodes SPU bitmaps, schedules moving subpictures/menu highlights, accepts keyboard/mouse menu input and resolves painted moving-menu commands. Actual decoded-pixel checks pass on Windows-generated H.264/AAC control media; Microsoft MPEG-2 activation still fails with 0xC004F011, so real DVD decoding remains unverified. Private audio, moving-to-held menu continuity, title-domain moving buttons, complex colour controls, continuous cell decoding, remaining VM/angle/protection work and full player integration remain. The separate DirectShow DVD backend/test host is also retained. Default DVD playback continues through VLC.
Blu-ray A first-party bounded MPLS reader now inspects playlist clip order, trim points, chapter marks, track PIDs/languages and alternate angles. A separate inspector runs these readers without VLC. Native disc playback, title selection, menus and protection remain unverified; implement and verify them before changing disc playback routing. Playing an individual M2TS file does not complete Blu-ray support. A replacement for the current AACS/protected-disc path has not been established, so retain its working backend until an equivalent is available and verified.

The ordinary-file core has native playback paths; DVD and Blu-ray continue through VLC/AACS. No dependency-removal schedule is active. Windows codec availability varies by installation; see Microsoft's supported codec table. A common container extension does not establish that its audio/video codecs are available.

NOIR now includes its own C# DVD structure reader and physical title-stream foundation. DvdDiscInspection reads the video manager and title-set IFO files through Windows filesystem APIs, resolves global titles to program chains/programs/cells, validates chapter references and decodes PAL/NTSC BCD times into exact 90 kHz ticks. It tries a complete .BUP file when an IFO is missing or invalid, without mixing tables from different files. Inspection is read-only, with a 4 MiB per-file limit, 32 MiB total limit, cancellation and a five-second deadline checked between reads and parsing. Authored restrictions, commands, still holds, angles, interleaving, parental navigation and ambiguous timelines keep a compatibility requirement instead of being flattened into an invented movie timeline.

DvdLinearTitleMap provides explicit chapter-to-cell/sector targets for the admitted sequential subset. DvdTitleStream reads the selected cells across numbered VOB files, including cells crossing file boundaries, omitted sectors and backward physical extents. It exposes a read-only seekable stream, bounds each read to 1 MiB, validates cell extents against sector-aligned VOB sizes, and closes every opened file on failure or disposal. It preserves stored NAV/PES bytes; it does not execute DVD commands, decrypt CSS, normalize timestamps or decode video/audio/subpictures. These components are a foundation for the replacement and are not connected to the player's default DVD routing yet.

DvdNavigationPacket now reads one clear 2048-byte NAV sector, checks pack/packet boundaries and matching PCI/DSI identities, and extracts VOBU metadata, highlight times, color/alpha words, display groups, button geometry, directional neighbors and the complete eight-byte button commands. DSI search/angle words are retained without being treated as executable sector jumps. Unknown flags and unsupported button offsets require compatibility handling; malformed counts, geometry and references fail inspection.

DvdMenuNavigation implements keyboard, numeric and mouse button selection, inclusive hit regions, selection/activation highlights, forced and automatic activation, presentation-clock timing (including wrap and indefinite holds), and combined PGC/NAV user-operation restrictions. It selects the authored normal/wide/letterbox/pan-scan group rather than reusing coordinates from a different presentation. Repeated highlights retain the previous layout and timing; command-only updates replace the matching group's commands. Callers must change the navigation epoch on a seek, branch, restart or disc change. Missing prior state, changed domains/cells, ambiguous groups and stale/out-of-order packets cannot revive old buttons. Button commands use the bounded VM: supported register-only and highlight/select-only commands execute in this model, while unsupported instructions or unresolved stream/domain targets halt input and retain their exact command bytes for compatibility handoff. GPRMs survive menu/domain changes; an explicit reset clears the VM for a new disc/session. The separate native preview now connects this model to the frame clock, authored palette/SPU pixels and inverse viewport transform. Physical-disc parity and default-player integration remain unverified.

DvdVirtualMachine owns immutable snapshots of 16 general registers and 24 system-register slots. Player parameters remain unknown until supplied; reserved or missing registers cannot be silently read as zero. The implemented instruction subset includes NOP, conditional goto/break, all seven comparisons, immediate/register assignment, general-register swap, saturating add/subtract/multiply, divide/modulo (including DVD zero-divisor behavior), bitwise AND/OR/XOR and validated set-highlight. Link/jump/call instructions produce typed symbolic cell/program/PGC/chapter/title/menu/resume/exit requests. DvdDomainResolver now resolves the supported subset using the IFO topology. The first-party completion model can accept those proposals; a verified decoder/presenter must still consume the resulting stream positions before live integration. Menu integration accepts commands with completed local effects, including highlights within the current group, and does not execute auto-activation twice on a mouse click.

Each command-table run copies its inputs, admits at most 255 rows, has a default 1,024-instruction budget (maximum 16,384), and checks cancellation between instructions. Unsupported opcodes, nonzero reserved fields, unavailable system parameters, invalid branch targets and exhausted budgets return the original state. Supported completion returns a new snapshot; control transfers return only a proposed snapshot and symbolic target. Remaining VM work includes combined instruction families, combined arithmetic/link operations, counters/timers, random values, stream-selection/system operations and parental operations. This code does not import another library's VM state and cannot resume a live VLC session's hidden registers.

DvdNavigationCatalog reads first-play, manager-menu, title-set-menu and title PGCs, language units, entry IDs, next/previous/go-up links and pre/post/cell command bytes. It reuses the existing bounded file loader and whole-file BUP recovery. Each language/domain has its own PGC keys and sector space. Command-only PGCs are admitted, while malformed references and overlapping sections fail inspection. The catalog caps total chains, cells and commands and gives each snapshot a distinct identity so stale state cannot be applied to a newly read disc. It does not infer a main movie or flatten separate titles/menus into one stream.

DvdDomainResolver checks domain legality and resolves local cells/programs/chapters, PGC links, global/local titles and language-specific menus to explicit positions. It executes supported destination pre/post tables, with shared instruction/transition budgets and cancellation. Chapter links skip PGC pre-commands; title/chapter jumps run the appropriate entry commands. DVD calls save one title-resume slot, not an invented nested stack: the slot retains the title PGC/cell and SPRMs 4–8; resume restores the title position/highlight while preserving GPRMs and other player parameters changed in menus. Explicit resume cells and authored call-at-cell-start behavior are validated. Menu-to-menu jumps preserve the slot; another title call replaces it. Nested/menu calls, missing resume points, stale snapshots/epochs, ambiguous language/title/chapter contexts, unsupported metadata and failures in later entry commands discard the entire proposal.

Pending menu commands can be prepared against the resolver only when domain/PGC, navigation epoch, sector, VOB/cell and player parameters match. Preparation leaves the menu and live player untouched. Domain results retain PlaybackVerified=false. The separate native preview consumes these positions; continuous decoding/timestamps across cells, remaining menu/angle cases, decoder/protection verification and main-player integration remain before changing live disc routing. DVD continues using VLC and Blu-ray continues using VLC/AACS.

DvdVobSource and DvdStreamTraversal now read the resolved domain through Windows file APIs: first-play/manager menus use VIDEO_TS.VOB, title-set menus use VTS_nn_0.VOB, and 8000 titles use the concatenated numbered title VOBs. Each preparation reads at most 1,024 sectors (2 MiB), checks the current catalog/title/program/cell state, matching NAV sector/VOB/cell IDs, physical file extents and VOBU ranges, and follows supported forward DSI links within that cell. Pack/PES lengths are checked without searching inside elementary payloads. Scrambling, angle/interleave data, malformed or unavailable links and oversized units return compatibility with no partial bytes or continuation. Original bytes and timestamps are preserved; no decoding or decryption occurs. Ordinary traversal retains the presentation epoch, while seeks/domain transfers still invalidate stale menu positions. Read-only handles close on success, failure and cancellation.

The last VOBU exposes a pending cell boundary containing its cell/PGC still duration, cell-command number and highlight presence. Traversal never silently crosses a cell or runs those commands. DvdCellPlayback now queues each VOBU with a unique presentation ticket and waits for an explicit acknowledgement that its final frame has been presented and its audio drained. An intermediate VOBU advances within its current cell; a boundary starts the authored hold or prepares cell completion. Repeated/concurrent acknowledgements cannot run completion twice. Seeks and branches require a newer navigation epoch and invalidate old presentation/hold callbacks.

Timed holds use an injectable monotonic clock, start after presentation, and exclude paused intervals. A PGC hold applies only at the final cell; finite cell/PGC durations add without byte overflow, and either 255 duration makes the hold indefinite. The host must keep the last frame visible and continue processing menu input. Explicit still release observes the combined PGC/NAV Still_Off prohibition and does not bypass a menu with highlighted buttons; finite authored expiry continues normally. These restrictions follow the Windows DVD StillOff behavior. Authored menu branches cancel the old hold without running its cell command. Local menu effects preserve the hold clock. DvdMenuAction.InputState supplies the pre-command registers to the completion model, preventing an already executed local increment from being applied twice.

DvdDomainResolver.CompleteCell validates the boundary and executes only the selected one-based cell-command row, after the hold has ended. A non-branching command falls through to the next cell, updating program/chapter registers; an authored link/call chooses its own destination. The last cell runs the PGC post table and next-PGC pre table, or stops if no successor exists. All work shares the existing instruction/transition budgets. Unsupported operations, bad references, exhausted budgets and later post/pre failures discard the whole proposal, including cell-command register effects and resume changes. The completion gate latches such failures for compatibility instead of retrying the command on every tick.

Navigation tests use original synthetic clear IFO/NAV/PES sectors and fake monotonic clocks. They cover full-title cell traversal, command selection/order, timed and indefinite holds, pause/resume, menu actions, stale/cancelled/concurrent callbacks, bounded failures and rollback. Native bridge tests separately verify actual Windows decoding and HWND painting of generated control media. The main player has not been switched to this path, and physical-disc native playback remains unverified.

DvdCellMedia prepares one clear authored cell through the validated traversal layer, retaining at most 32 MiB/1,024 VOBUs with a five-second preparation deadline. A read-only seekable COM stream supplies the decoder view to IMFMediaEngineEx.SetSourceFromByteStream; video is decoded through Windows and transferred to the existing WIC/Win32 software presenter with original-aspect fitting. No cell video is saved to disk. Preparation admits one video stream, at most one MPEG PES audio stream, and one unambiguous SPU channel. Moving cells additionally require a validated video/NAV clock; explicitly held manager/title-set menus retain final-NAV rendering. Admitted SPU PES packets become equal-length MPEG padding in a separate decoder view (at most another 32 MiB); original navigation and source bytes remain intact. Private audio, alternate streams, protected data, mid-cell entry and exceeded budgets require compatibility.

DvdSubpicture reads bounded SPU control sequences, inclusive display rectangles and both interlaced fields of the DVD 2-bit nibble RLE. It preserves forced-display state, processes timed start/stop/colour/contrast updates in 1,024-tick units on the 90 kHz clock, and uses the authored PGC's sixteen 00YYCrCb colours with BT.601 conversion and four-bit opacity. DvdSubpictureStream assembles fragments across PES/VOBUs, validates full 33-bit PTS markers/wrap, and rejects incomplete, out-of-order, ambiguous-channel or unsupported control data before native presentation. Limits include 65,535 bytes per SPU, 64 control sequences, 256 packets and 16 MiB of decoded indices per prepared cell. CHG_COLCON and cross-cell SPU assembly retain compatibility.

Held-menu rendering samples the SPU timeline at the final NAV end timestamp. Button selection/activation overrides colour and opacity only inside the authored inclusive rectangle. The presenter restores the retained unmodified WIC frame before each update, preventing repeated alpha blending or stale highlights. It applies SPU coordinates in the DVD 720 x 480/576 canvas before the picture's aspect/rotation transform, keeping overlays aligned when resized. Composited pixels must paint before the still clock starts. Menu reconstruction includes earlier NAV layouts for continuation packets and retains PGC input prohibitions; repositioning disposes the old frame, fragments and menu binding. Format behavior was checked against the primary FFmpeg SPU reader and dvdauthor SPU reader; this implementation is C# and adds no library dependency.

DvdSubpictureTiming now schedules moving images from the frame presentation timestamp returned by OnVideoStreamTick. Windows can rebase the source clock: the native preview opens timed cells paused, pairs the first decoded frame with the authored first video PTS, composites that frame, and then starts playback. An early user pause keeps that first frame paused. The source and frame origins stay separate; the first subtitle never defines video time zero. Integer conversion preserves the 33-bit 90 kHz domain and wrap. Start, stop, colour and opacity changes are sampled before the matching video frame is painted, under the same presenter lock. No new frame means no SPU advance, so pause/buffering preserve the corresponding image and playback rate follows media timestamps. Repeated frames reuse the same colourized bitmap. Final-NAV held-menu composition freezes this schedule; repositioning and the next cell create a fresh engine and clock.

Moving timing validates the first video PES timestamp, PTS/DTS marker bits, the complete NAV interval order and all collected video PTS values. Leading pictures with an ambiguous presentation order, missing entry timestamps, clocks outside their authored cell, and reversed native presentation time require compatibility. Limits include 65,536 video timestamps and a one-hour authored cell clock, in addition to the existing source/SPU budgets. MPEG seeking remains rejected before changing the source clock. Stream-selection policy, cross-cell continuity and moving SPU/menu input during the explicitly held-menu preparation path remain unfinished.

DvdMovingMenu now connects moving manager/title-set menus to that clock. Preparation validates the NAV layouts without running commands. Frame-time updates load only reached NAV packets, retaining prior layouts for highlight continuations and applying command-only updates. Selection/activation colours are composited with the same video frame. Input and automatic/forced activation require the current frame to have painted; selection windows and combined PGC/NAV prohibitions still apply. Arrows, Enter, numeric selection and pointer hover/click use the authored links and inclusive button rectangles. Pointer coordinates invert the actual fitted picture and rotation, so letterboxes cannot activate the old selection. Moving menus without SPU packets can still use authored video buttons if the clock is valid. Invalid canvas coordinates or an unready clock require compatibility.

A command creates one immutable request bound to its NAV, domain, cell and epoch. The engine pauses and stops submitting frames until the activated highlight paints and the session resolves the request. Local effects are committed once from DvdMenuAction.InputState; selection registers and local effects survive later cell completion. A resolved branch uses the observed moving NAV position, cancels the unfinished cell without its cell-completion command, shuts down the old reader/engine, and opens the authored destination. The user's pause choice survives this transition. Duplicate/stale requests, mismatched registers and unsupported commands cannot advance the VM; command failures retain the current committed domain state and require compatibility. Replay tracking is bounded to 4,096 committed moving-menu commands per navigation epoch.

WindowsDvdCellSession owns the native engine and managed stream lifetime. It waits for current video data before creating a presentation surface. Decoder read-ahead and byte-stream EOF cannot advance navigation: completion requires Windows' ended state, decoded frames and a successful paint of the latest transferred frame. Only then are the cell's VOBUs acknowledged to DvdCellPlayback, which handles the still and selected cell command. The final frame stays available during a hold; the next cell uses a fresh engine so old events cannot complete a new cell. Decoder/renderer failures preserve the uncompleted navigation position and shut the native engine down before releasing its stream.

This is a diagnostic cell renderer with explicit limits. It resets decoding between cells and does not yet provide seamless moving/held menu continuity, title-domain moving buttons, continuous A/V timestamps or complete DVD stream selection. Native control tests use Windows-generated H.264/AAC program streams, including video-only output, decoded pixel checks through the HWND paint path, half-transparent SPU images, selection colours, repeated updates and clearing, pause/resume, tall-window letterboxing, rotation, native EOF and retained end frames. Additional 480-line controls verify moving SPU start/colour/opacity/stop, first-frame pause, rate changes and a 100-second PES/SCR offset whose Windows frame timestamps are rebased. Moving-menu controls separately verify actual selected/activated pixels, forced actions, keyboard/numeric/transformed-pointer input, a pending action's frozen clock, continuation commands and pause preservation. Synthetic IFO/NAV sessions verify branch destinations and cell-command ordering. These tests do not establish MPEG-2 DVD support or audible real-disc playback. Microsoft MPEG-2 activation still reports SL_E_LICENSE_FILE_NOT_INSTALLED (0xC004F011), while H.264 activates. The default native renderer retains this exact failure and leaves the working main-player compatibility routing intact.

The separate tools/NoirMediaPlayer.NativeDvdHost previews this first-party navigation/Media Foundation path. It is distinct from the older DirectShow test host and never starts the main player's VLC session. Build it with dotnet build tools/NoirMediaPlayer.NativeDvdHost --configuration Release -p:Platform=x64. Its executable accepts --source '<local DVD root>' --report '<new JSONL file>' or the noninteractive --probe --report '<new JSON file>'. Moving menus accept arrows, Enter, digits 1–9 and pointer hover/click; the existing held-menu keyboard controls remain. The preview starts from authored first-play, retains explicit compatibility failures, and does not infer a main movie, decrypt media or alter player settings. Reports never overwrite existing files. There is no useful physical-disc retry while the MPEG-2 licensing result remains unchanged.

The supplied libdvdread structures, NAV layout definitions, libdvdnav structure documentation, instruction reference, domain/resume reference and VOBU traversal reference inform the DVD field layouts, instruction semantics and navigation domains. Their GPL source checkouts remain outside the application; no C implementation or new third-party dependency is included. Remaining DVD work is described above, including real-disc verification. The missing Windows MPEG-2 license described below is still unresolved. DVD playback keeps the repaired VLC backend, and Blu-ray keeps VLC/AACS.

The standalone NoirMediaPlayer.DiscInspector now handles DVD roots, VIDEO_TS folders and VIDEO_TS.IFO as well as its existing Blu-ray inputs. It compiles the same first-party readers without loading VLC. Double-click tools/Inspect-DvdStructure.cmd with a DVD in G: to inspect its information files; the report is saved under %LOCALAPPDATA%/NoirMediaPlayer/NativeDiscTests. For another drive or a metadata export, run tools/Inspect-DvdStructure.ps1 -Source '<path>'. This is a structure check, not a playback test; --source and --dvd-navigation read metadata only, and no inspector mode reads decryption keys.

For a separately saved clear NAV sector, the standalone inspector accepts --nav-sector '<2048-byte file>' [--output '<new JSON file>']. This mode reads that one local sector only, reports its parsed menu fields and compatibility requirements, and does not scan video, execute commands, decrypt content or verify playback. Existing reports and source files are never overwritten.

To exercise the VM independently, use --vm-commands '<binary command-table file>' [--output '<new JSON file>']. Each row is eight big-endian instruction bytes, with no table header. This mode starts with zero general registers and unknown player system parameters, executes the supported subset on an isolated snapshot and reports the result/proposed target. It never opens media or changes a player session. Unsupported instructions, exhausted budgets and unresolved navigation targets produce a compatibility result/nonzero exit; reports cannot overwrite the command source or existing files.

Use --dvd-navigation '<DVD root, VIDEO_TS folder or VIDEO_TS.IFO>' [--output '<new JSON file>'] to inspect the full navigation catalog and prepare its authored first-play sequence. This reads information files only, starts with unknown player parameters, and never opens video or changes the player. Ambiguous/unsupported startup or a missing first-play PGC produces a compatibility result/nonzero exit. A resolved cell is a proposed metadata position, not verified playback. No main title is chosen by length or guesswork.

To opt into bounded VOB reading, use --dvd-stream '<local DVD root or VIDEO_TS folder>' [--output '<new JSON file>']. It follows the authored first-play target for at most 16 VOBUs (32 MiB), stopping at the first cell boundary or compatibility requirement. Reports contain sector/clock identities, byte counts, SHA-256 hashes and pending boundary requirements, with no saved video/audio, decoded frames or keys. A budget stop is reported as VobuLimit; unsupported navigation or stream data returns a nonzero exit. Existing reports cannot be overwritten. This mode does not select an implicit main movie, complete a cell or change live playback.

Run tools/Inspect-WindowsDiscSupport.ps1 in 64-bit PowerShell to check whether the Windows DVD components activate. This read-only probe neither opens a disc nor changes playback routing. A successful probe is preparation for DVD implementation, not a claim that native DVD or Blu-ray playback works.

Double-click tools/Inspect-WindowsDiscSupport.cmd to run the same component/codec check outside the development sandbox without entering PowerShell commands or starting another disc test. It saves a new components-*.json report under %LOCALAPPDATA%/NoirMediaPlayer/NativeDiscTests, including the modern MPEG-2 decoder's exact class ID and activation HRESULT. This is useful for confirming whether the sandbox-only licensing result also occurs in the normal Windows session.

Run the new DVD playback test from ordinary 64-bit Windows PowerShell, using the .NET 10 SDK and an explicit disc drive or DVD folder:

& './tools/Test-WindowsDvdPlayback.ps1' -Source 'G:\'

For a DVD in G:, you can instead double-click tools/Test-WindowsDvdPlayback.cmd in File Explorer. It opens the separate NOIR · Windows DVD playback test window and leaves the console open for errors. Its reports are saved under %LOCALAPPDATA%/NoirMediaPlayer/NativeDiscTests. A successful test in the regular NOIR window verifies the existing compatibility path, not this separate backend.

The test opens a separate playback window using the same WindowsDvdSession backend compiled into NOIR, with no VLC/AACS references. Its playback graph uses explicit Microsoft decoders and a windowless Windows VMR9 renderer with source aspect correction and letterboxing. It rejects partial render results, missing streams, renderer substitution and graphs containing filters outside the supported Windows components. DVD commands retain the Navigator's authored operation restrictions. Native COM objects stay on one STA thread with a message pump and are released there when the test closes.

The first physical DVD test failed with VFW_E_DVD_DECNOTENOUGH (0x8004027B), while the Microsoft video decoder's capability API reported DVD, VMR9 and EVR support. Capability flags alone do not prove the decoder can connect and play the disc. The test now preserves the native HRESULT, logs decoder capabilities and bounded filter/pin connection details, and provides selectable status text and a Copy status button. Native DVD playback remains unverified until the real-disc failure is resolved.

The captured failure left the Navigator, both Microsoft decoders and VMR9 wholly disconnected. For that specific graph, the backend retries explicit Windows ConnectDirect connections for video, audio and subpictures, including the decoder's dynamic subpicture output and VMR9 composition for subtitles/menu highlights. The physical retry rejected both video and audio decoder inputs with VFW_E_NO_ACCEPTABLE_TYPES (0x80040207). The next attempt now queries the Navigator's advertised media types and retries only types accepted by the decoder, passing each original type unchanged to ConnectDirect. Reports retain the major/subtype/format GUIDs, format length, acceptance result and exact connection result; they contain no samples, format payloads or keys. Enumeration is bounded and its COM allocations are released on every path. This does not retry malformed volumes, partially connected graphs, duplicate required components or unknown filters, and never starts a graph with incomplete connections. Disc navigation and protection remain with Windows. Real-disc verification of this path is still required before enabling it in the main player.

The physical retry with advertised formats still failed: video QueryAccept returned S_OK, but the exact-type connection returned VFW_E_TYPE_NOT_ACCEPTED (0x8004022A); audio QueryAccept returned S_FALSE. A separate probe of the modern Microsoft MPEG-2 Media Foundation decoder (CLSID_CMSMPEGDecoderMFT, 2D709E52-123F-49B5-9CBC-9AF5CDE28FB9) returned SL_E_LICENSE_FILE_NOT_INSTALLED (0xC004F011), while H.264 activated. The user then ran the component check in ordinary Windows: components-26594-29020-12381.json confirms the same modern MPEG-2 licensing failure outside the development sandbox, with the DVD components and H.264 activating successfully. The earlier probe mistakenly used the legacy CMpeg2DecMediaObject class and its 0x80040154 result must not be interpreted as modern codec availability. Both diagnostic tools now log the correct class ID and activation result. The confirmed missing MPEG-2 codec license is a Windows prerequisite to resolve; it does not prove the cause of every DirectShow connection failure or justify rejecting a working graph. Repeating the unchanged disc test is not a useful next step until codec availability changes.

Microsoft lists MPEG-2 as an optional Windows codec supplied by Windows DVD Player, but the user reports that Windows DVD Player is unavailable. NOIR therefore cannot depend on obtaining that app to provide DVD support on this installation. The Media Foundation MPEG-2 decoder does not support encrypted DVD playback, so a generic MPEG-2 extension alone is not a verified replacement for DVD navigation, protection and audio. Native DVD remains opt-in test code until a usable Windows decoder path and real-disc picture, sound, menus and controls are verified. No Windows components, codec packs, licenses or system settings have been changed by this work; VLC/AACS remain in place.

The standard pinned VideoLAN.LibVLC.Windows runtime omits DVD access plug-ins, which explains a concrete packaging gap in the original DVD fallback. Builds and publishes now add only the matching official x64 libdvdnav_plugin.dll and libdvdread_plugin.dll from VideoLAN.LibVLC.Windows.GPL 3.0.23.1. These two temporary third-party plug-ins retain DVD menus/title access through the existing backend; the rest of that package is not imported. The core VLC version and Blu-ray/AACS components are unchanged. Source links, verified package/binary hashes and GPL/LGPL notices are documented in src/NoirMediaPlayer/ThirdParty/Dvd/README.md and copied to licenses/dvd. DVD-related engine messages now join the bounded disc diagnostic buffer. The user reported failures across two DVDs before this fix and has now confirmed real DVD playback in the updated main player using the compatibility launcher with a DVD in G:. This confirms the repaired VLC fallback, not native Windows DVD playback. DVD menus, chapter navigation, audio/subtitle selection and original-aspect resizing still need separate physical confirmation.

With a DVD in G:, tools/Test-DvdCompatibilityPlayback.cmd opens the updated Release x64 main NOIR player and starts the disc through that fallback. It is distinct from Test-WindowsDvdPlayback.cmd, which tests the unverified Windows backend. Main-player DVD failures now save the bounded engine messages and plug-in presence under %LOCALAPPDATA%/NoirMediaPlayer/DiscDiagnostics/dvd-compatibility-failure-*.json; the error dialog shows the report path. Diagnostic write failures retain the original playback error.

Check picture and sound, pause/play/stop, seeking, chapters, root/title menus, audio/subpicture choices and original-aspect resizing. The test records events, state and errors in a new JSONL report under Documents/NoirMediaPlayer/NativeDiscTests; -ReportDirectory selects another local report folder. It does not copy disc video or alter the main player's settings. Graph initialization, a running graph or an automated self-test alone do not verify decoded picture, sound or menu behavior. Main-window integration, snapshots, remaining presentation/caption controls and real-disc feature parity remain gates before switching DVD playback away from VLC. Blu-ray continues on its existing VLC/AACS path.

If an optical drive is inaccessible inside a restricted development session but readable in Explorer, run tools/Export-DiscTestMetadata.ps1 -Source 'G:\' -Destination '<new local folder>' in ordinary Windows PowerShell. It copies bounded BDMV playlist/clip-info metadata, or DVD IFO/BUP metadata, and records stream names/sizes. It never copies video/audio streams, AACS files or keys. The destination must be new and outside the source; a metadata export is not a playable disc.

Inspect a Blu-ray disc root, BDMV folder, metadata export or individual MPLS file with the .NET 10 SDK:

dotnet run --project tools/NoirMediaPlayer.DiscInspector --configuration Release -p:Platform=x64 -- --source '<disc or export folder>' --output '<new report.json>'

The inspector reports each playlist independently and preserves the 45 kHz clip/mark clock before converting chapters to milliseconds. It does not infer a main movie from playlist length. Random/shuffle playback, still holds, subpaths, alternate angles, extension data and ambiguous chapter markers are retained or flagged, rather than converted into a misleading linear chapter map. Invalid playlists are reported individually with a nonzero exit status; reports never overwrite existing files. The tool compiles the same first-party readers as the app, with no VLC/AACS references. This completes the playlist metadata foundation, not the Blu-ray playback backend; disc commands still use the working compatibility path.

The first supplied Blu-ray metadata export passed inspection: 11 playlists referencing six stream names, including two equal-duration playlists with different chapter lists and a still-image playlist. Export hashes were verified before inspection. This validates real-disc metadata reading; video/audio decoding, menu behavior and protected playback still require separate verification.

Final verification covers the common-file and disc requirements above. Remove VLC/AACS and their packaging only when the corresponding required replacement passes those checks. Dependency removal is not conditional on migrating every rare format, but DVD/Blu-ray functionality must not be lost to remove a library.

The detailed compatibility inventory below records current fallback cases. Items outside the reduced completion target are deferred:

Area Replacement and verification still needed
Video presentation Windows software MJPEG negotiation and unavailable or oversized presentation surfaces. Original-aspect playback, manual rotation, forced aspect ratios, and source-orientation/rotation snapshots are native through supported hardware or software playback.
Captions Embedded captions outside validated plain SRT in local MKV, ASS/SSA and image subtitles, complex SRT/WebVTT layout/CSS/overlap/karaoke, unsupported language tags, and ambiguous or unmigrated automatic discovery.
Chapters Complex Matroska editions/timelines, remaining MP4 chapter layouts and edits, network chapters outside supported MP4/Matroska/ASF byte-range sources, and disc chapter navigation.
Formats and streaming Remaining containers/codecs and RTSP/RTP/UDP, live/unvalidated network Matroska and Matroska video with multiple audio tracks, unidentified content and other web endpoints/containers, multi-audio-track endpoint video, and credential-bearing URLs.
Optical discs DVD menus/navigation, Blu-ray navigation and AACS/protected playback, including real discs and disc folders. Replacement support must be verified on physical and protected media.
Dependency retirement Remove the core LibVLCSharp wrapper, VideoLAN runtime/plugins, and AACS/disc libraries, then update build/installer/license packaging after their feature replacements pass verification.

NOIR bundles an open-source libaacs runtime for AACS integration. It does not bundle decryption keys or certificates.

When an AACS-protected Blu-ray is opened, NOIR uses the bundled 64-bit libaacs and libbluray modules. If the runtime is missing or damaged, NOIR reports AACS REQUIRED instead of remaining at BUFFERING 0%. A protected disc that does not begin playback within 35 seconds is stopped with an AACS-specific error rather than buffering indefinitely. Unprotected Blu-rays do not require a key database.

For protected media, place your legally obtained plaintext KEYDB.cfg at %APPDATA%\aacs\KEYDB.cfg using Quick Settings → Blu-ray AACS → Open key folder. Download AACS keys accepts either plaintext or a ZIP download and extracts and validates the database before installing it. If a ZIP archive has already been saved as KEYDB.cfg, NOIR repairs it automatically at startup and retains the archive as KEYDB.cfg.backup. Finding a valid file does not prove that it contains a matching key for a particular disc; NOIR reports an unlock failure when playback cannot begin. A different compatible 64-bit libaacs.dll can be selected in Quick Settings and is validated and applied after NOIR restarts. The VideoLAN libaacs project supplies no keys or certificates; key material must be configured for the disc in accordance with local law, or the disc must be played with licensed Blu-ray playback software. Binary provenance, source links, and licenses for the replaceable bundled libraries are documented in src/NoirMediaPlayer/ThirdParty/Aacs/README.md.

Keyboard controls

Key Action
Space Play or pause
Left / Right Seek backward or forward 10 seconds
Shift + Left / Right Seek backward or forward 30 seconds
Up / Down Volume up or down
Page Up / Page Down Previous or next queue item
F / Esc Enter or leave fullscreen
P Toggle mini player
M Mute
S Save a snapshot
V Load external subtitles
R Cycle repeat mode
H Toggle shuffle
I / B Toggle the inspector or queue sidebar
Ctrl + O Open media files
Ctrl + Shift + O Open a folder
Ctrl + D Open an optical disc
Ctrl + E Eject the active optical disc
Ctrl + L Open a network stream
Alt + arrow keys Navigate a DVD menu
Enter Activate a DVD menu item or play the selected queue item

Build

Requirements:

  • Windows 10 or later, x64
  • .NET 10 SDK (10.0.400 or a compatible newer feature band)

The solution builds Release Windows x64 only. Individual projects default to Release/x64, and non-x64 platforms or runtime identifiers fail the build. The current application is src\NoirMediaPlayer\bin\x64\Release\net10.0-windows\win-x64\NoirMediaPlayer.exe. Obsolete platform outputs, publish copies and runtime backups have been removed; the selected immutable runtime, source records and native toolchain are retained.

dotnet restore .\NoirMediaPlayer.slnx
dotnet build .\NoirMediaPlayer.slnx --configuration Release
dotnet run --project .\src\NoirMediaPlayer\NoirMediaPlayer.csproj

Run the Windows regression suite with:

dotnet test .\tests\NoirMediaPlayer.Tests\NoirMediaPlayer.Tests.csproj --configuration Release -p:Platform=x64

The suite exercises native embedded MKV captions (including default-selection parity, off/multiple-track/external selection, paused seeks, replay, snapshots, overlapping-cue fallback and later styled-cue handoff), native decoding, multiple audio tracks, audio disable/re-enable, local and HTTP compatibility fallback, source-frame PNG capture, SRT/WebVTT text and inline-style/color rendering/export/handoff, automatic-sidecar inventory and default-selection parity with VLC (including language suffixes, multiple tracks, and subtitle folders), audio-only caption rendering/seeking/restart/handoff on local and HTTP sources, native Matroska and MP4 chapter navigation (including QuickTime text tracks), Windows ASF marker navigation on either backend, unsupported-chapter fallback, and the first-party video host's window-mode alignment. ASF checks include read-only files, metadata limits, handoff with captions/audio off, consecutive paused seeks, timeline/bookmark accuracy, playing seeks followed by pause, and remote fallback. Pixel checks verify that bold/italic/underline affect rendered captions, all supported WebVTT foreground/background colors reach the output pixels, wrapped Unicode fills stay inside the picture, identical-text cues can change or clear their background, audio caption panes have an opaque black background, and overlay/snapshot formatting agrees. Background-caption checks also cover discovery, seeking, local/HTTP audio and video, track selection, chapter jumps, restart, and compatibility handoff. HTTP snapshot checks compare MP4, AVI, and WMV captures against local source pixels, exercise playing/paused transport and repeated caption selections, validate range caching/budgets/cancellation/redirects, and confirm compatibility state after refused, malformed, incomplete, or stalled responses. Oriented snapshot fixtures use distinct frame corners to verify rotation direction, dimensions, pixel-aspect correction, time selection, upright captions, window-mode independence, and manual-rotation handoff. MP4 and ASF fixtures are encoded through Windows Media Foundation, and ASF markers are written with Windows' metadata API. HTTP tests use an in-process loopback server and require local socket connections. No external media downloads or codec tools are needed for the generated test fixtures.

Caption filename checks compare native default selection and inventory against VLC for descriptive suffixes and .webvtt files. They also cover UTF-8/BOM validation, automatic and manual loading, repeated loading without duplicate tracks, local/HTTP audio and video, backward seeks, chapter jumps, styled PNG capture, restart, subtitles-off, and compatibility handoff with every original file retained.

Hardware-decoding-off checks exercise native software video and audio, including local/HTTP sources, H.264 and WMV, a video inside an audio-named URL, video-only movies, automatic captions, and retained MJPEG compatibility playback. Software presentation checks inspect actual window pixels for all source orientations, pixel aspect ratios, manual rotations and five aspect overrides, paused seeks and advancing decoded frames, resize/mini-player/fullscreen/minimize modes, restart and video/audio source changes. Chapter/caption captures, audio off, pause/rate, end-of-stream/queue advancement, complex-caption handoff and a failing presenter are covered. Explicit audio-only engine clients still check the complete stream inventory; WAV, WMA, AAC/M4A and multi-track Matroska audio retain their prior caption, chapter and handoff checks. AAC-only and video-only MP4 fixtures retain valid sample offsets while removing the unused track from the final movie metadata.

HTTP chapter checks cover Nero/HiLight/QuickTime metadata, all five supported MP4-family extensions, software-mode AAC audio, paused/playing and rapid chapter seeks, retained caption selection/audio off, native snapshots, chapterless no-ops, visible-text compatibility routing, and handoff after unsupported metadata or refused ranges. Range validation tests also cover changed sources, malformed/incomplete responses, and deadlines; large media payloads verify metadata inspection skips video bytes.

HTTP Matroska checks cover tail chapters, chapterless sources, single-audio-track video, multi-track audio in both decoding modes, native snapshots, styled captions, rapid/paused/playing chapter seeks, audio off/selection, restart, and later compatibility handoff. They also verify ordered editions keep their virtual duration, embedded captions retain VLC, and unready multi-audio-track video keeps its picture, track selection and chapters through VLC. Refused/stalled ranges, changed sources, linked/complex/malformed metadata, and software-mode video exercise compatibility safeguards. Large skipped clusters verify that timeline inspection does not download the whole source.

HTTP ASF checks cover Windows marker extraction for WMV/WMA/ASF, chapterless files on both backends, software-mode audio, native snapshots and styled captions, rapid/paused/playing seeks, restart, and handoff with audio off and captions selected or disabled. They verify that validated maps survive handoff after ranges become unavailable, and that a failed startup inspection can recover at compatibility handoff. Large ASF metadata exercises changing entities/lengths and cancelled reads across the Windows COM boundary; invalid/oversized marker metadata and refused, malformed, incomplete, or stalled responses retain fallback. Generated source files are checked for changes after inspection.

Download-endpoint checks cover extensionless and PHP/ASHX/BIN/download URLs, MP4/AAC/WAV/AVI content, specific and generic MIME responses, software-mode audio, source-frame snapshots, styled captions, chapters, audio off/on, pause/rate, restart, redirects, and handoff while retaining the original URL. Rejected content includes playlists, unnamed ASF/Matroska, invalid or uncertain signatures/layouts, conflicting MIME types, visible text tracks, and unavailable or malformed ranges. Multi-track video and ordered Matroska fixtures verify that VLC retains their tracks, picture, or virtual duration. Large RIFF and MP4 fixtures verify that identification skips media payloads.

The default native engine is our complete custom VLC 3.0.23 build, noir-vlc-20261023-040217, selected by tools/vlc/DefaultRuntime.props. Its 303 plug-ins include DVD navigation/reading and Blu-ray support, with the tested AACS libraries retained. A separate VLC installation is not required. A missing selected candidate stops the build rather than silently changing the engine.

For a later VLC fix, rebuild the native source, stage a new complete candidate and test it with VlcRuntimeDirectory in an empty output directory. Update DefaultRuntime.props only after application and real DVD/Blu-ray checks pass. The DVD tests check packaged modules against the core and load them without hardcoding one release's DLL hashes. Keep LibVLCSharp compatible with the selected VLC major version. Setup closes NOIR and replaces the plug-in directory on installation, so obsolete plug-ins cannot survive an upgrade. AACS binaries and notices remain included; user settings and the key database stay outside that directory.

VlcRuntimeDirectory can override the selected custom default for isolated testing. Custom builds exclude both VideoLAN runtime packages and require DVD/Blu-ray modules, AACS dependencies and recorded source provenance. The former official package selection remains available with -p:NoirUseOfficialVlcRuntime=true on every restore/build/publish command, using a fresh output. VlcRuntimeVersion pins those recovery packages to 3.0.23.1. See maintaining the VLC engine for engine updates and backup instructions.

The native build produces the complete VLC core and 303 plug-ins, with DVD/Blu-ray and BD-J enabled. Our patches preserve image snapshots in the playback-only engine and handle embedded video placement on VLC's window thread. Source-only changes can use Build-Vlc.ps1 -Stage RebuildEngine after the initial full build; they take effect only after staging, testing and selecting the new candidate.

The WPF video host combines overlay geometry updates at render priority during live resizing, and transport controls change layout only when their width threshold is crossed. A playback integration check measures native overlay moves while moving and resizing a real video window, verifies continued playback and alignment, and guards against redundant moves. Aspect ratio, rotation, mini-player, fullscreen and minimize/restore checks cover the shared host too.

The playback resize issue was continuous whole-window redraw flicker. PlaybackView hosts the native video surface in a separate, non-activating window owned by NOIR, keeping it aligned with the reserved video area. The interface and video redraw independently. Captions, notices, file drops, keyboard routing, aspect ratios, rotation, mini-player, fullscreen and minimize/restore retain their existing behavior. The user confirmed flicker-free DVD and Blu-ray playback with both the former runtime and the selected custom engine, including working DVD menu clicks. All 103 application checks pass, including rendered aspect/rotation pixels and file drops onto the video.

The pinned VLC source checkout lives at vendor/vlc in this main folder, on the local noir/fixes branch. Run tools/vlc/Setup-VlcSource.ps1 to recreate it, or use -CheckOnly for an offline check. Its upstream revision is recorded in tools/vlc/source.lock.json; portable NOIR engine patches belong in patches/vlc/. The checkout has its own Git history and is ignored by NOIR's Git repository.

The tested custom engine is now active in the main-folder Release x64 build. Pre-activation results are in artifacts/vlc-validation/custom-owned-video-verification.json; default-build and backup verification is in artifacts/vlc-validation/custom-default-verification.json. The previous working player, including the resize fix and all 375 official-runtime files, is retained at artifacts/vlc-runtime-backups/videolan-3.0.23.1-before-custom-default-20261023-045930/player/NoirMediaPlayer.exe. Close the other NOIR window before launching that backup.

The self-contained NOIR 1.0.10 installer is Installer/NOIR-Media-Player-Setup-1.0.10-x64.exe, built with Inno Setup 7. It fixes playback-core issues: engine handoffs no longer announce a resume or seek to zero, a stalled native playback operation is reported, commands are no longer dropped silently while compatibility playback starts, and a startup watchdog race is closed. Native video sizing from 1.0.9, the selected custom engine, DVD/Blu-ray support, AACS libraries, and isolated snapshot decoder are retained. See building the installer for release commands and verification records.

The private Windows x64 native toolchain is installed by tools/vlc/Setup-VlcToolchain.ps1; -CheckOnly verifies it offline and -Update explicitly upgrades its MSYS2 packages. tools/vlc/Build-Vlc.ps1 -Stage DvdLibraries compiles the pinned DVD dependencies into isolated build outputs. The full engine build, module loading, common-format decoding and real-disc validation have passed for the selected candidate. Commands, package records and build-stage details are in the VLC maintenance guide.

Building and publishing also run tools\Generate-PluginCache.ps1, which has libvlc write its plugin cache (libvlc\win-x64\plugins\plugins.dat) into the output. Without that cache libvlc loads every shipped plugin on each launch to read its descriptor, which costs roughly 80 ms warm and 290 ms on a cold file cache before the window can appear. Plugins that only serve features NOIR does not expose - stream output, muxers, visualisers, service discovery, capture and tuner inputs - are excluded from the build in NoirMediaPlayer.csproj.

Project layout

src/NoirMediaPlayer/
├── Models/       Queue and persistent-setting models
├── Services/     Disc discovery, media enumeration, and settings storage
├── App.xaml      Global NOIR design system
├── MainWindow.*  Player workspace and playback orchestration
└── OpenLocationWindow.*

Settings are stored per user at %LOCALAPPDATA%\NoirMediaPlayer\settings.json.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0