0XC00D1B58

Fix NS_E_BAD_MARKIN (0XC00D1B58) mark-in time error

Windows Errors Beginner 👁 0 views 📅 May 28, 2026

Windows Media Player or DirectShow apps throw this when editing a video file and the mark-in time is set wrong. Usually a corrupted file or third-party codec issue.

You're editing a video in Windows Media Player or some other app that uses DirectShow, and bam — error code 0XC00D1B58 pops up. It says the mark-in time must be greater than 0 and less than the mark-out time. If you're anything like my clients who show up with this, you probably just want to trim a clip or set a start point, and the player's fighting you.

Here's the deal: this error usually happens when the video file itself is borked — metadata's wrong, it's partially downloaded, or a third-party codec pack installed something that doesn't play nice with Windows Media Player. I've seen it most with MP4 files from older cameras or dodgy rips. The fix is straightforward. Start with the 30-second check, then work down the list. Most people stop at step 1.

Fix 1: Reset the timeline — 30 seconds

Before you do anything else, just clear the mark-in and mark-out points. In Windows Media Player, right-click the video you're editing, select "Set Mark-In" and "Set Mark-Out" and choose "Clear" or "Remove." Same goes for any editing app like Movie Maker or third-party tools that use DirectShow. Sometimes the app just gets confused by a leftover marker from a previous session. Had a client last month whose whole library went haywire because he'd dragged a slider by accident. Cleared the markers, worked fine.

Quick test: Try playing the video from start to end without setting any marks. If it plays fine, you're golden — just re-set your marks carefully.

Fix 2: Repair the video file — 5 minutes

If clearing markers didn't help, the video file's probably corrupted in a way that messes with the timeline metadata. I've fixed dozens of MP4s this way. Use a tool like HandBrake or VLC Media Player to remux or re-encode the file. VLC's the quickest because it just copies the streams without re-encoding.

  1. Open VLC. Go to Media > Convert / Save.
  2. Add your video file, then click Convert / Save.
  3. Under Profile, pick Video – H.264 + MP3 (MP4) (or similar, depending on your source).
  4. Click the wrench icon next to the profile, go to Video codec, and check Keep original video track. Under Audio codec, check Keep original audio track.
  5. Choose a destination file name and hit Start.

This rewrites the container structure without touching the actual video data. 9 times out of 10, the new file works. If it doesn't, re-encode it properly (uncheck "Keep original") — that'll fix deeper corruption but takes longer.

Fix 3: Remove conflicting codecs — 15+ minutes

If the file's fine but the error still shows up, you've got codec pack junk gumming up DirectShow. Windows Media Player relies on DirectShow filters, and third-party packs like K-Lite or CCCP often install filters that override the system ones. I've seen this with older codec packs that weren't built for Windows 10 or 11.

Here's what to do:

  1. Open Control Panel > Programs and Features.
  2. Uninstall any codec packs you see — K-Lite, Shark007, CCCP, Win7Codecs, etc. Reboot.
  3. Download and run DirectShow Filter Manager (free tool) to check for leftover filters. Look for filters listed as "Merit" higher than 0x00600000 — those are the troublemakers. Disable any that aren't Microsoft default (like ffdshow, LAV, or Gabest filters).
  4. Alternatively, use the Windows Media Player Configuration Tool built into Windows: open an admin command prompt and run regsvr32 wmnetmgr.dll to re-register core DirectShow components.

One time, a client's machine had three different MP4 splitters installed — the error only happened when Windows Media Player picked the wrong one. After removing all but the default Microsoft filter, the problem vanished.

Final last resort — re-register Media Player components

Still stuck? Run these commands in an admin command prompt:

regsvr32 quartz.dll
regsvr32 msmpeg2adec.dll
regsvr32 msmpeg2vdec.dll
regsvr32 wmp.dll
regsvr32 wmvdmoe2.dll

Then reboot. This re-registers all DirectShow and Media Player core DLLs. Had a server where this fixed the error across the whole network — turns out a Windows update had borked the filter registration.

If none of that works, your video file is probably beyond repair, or the app you're using has a bug. Try a different video editor that doesn't use DirectShow — like DaVinci Resolve or Shotcut. They handle broken files way better.

Was this solution helpful?