2011-07-21, 04:10 AM
I just noticed on a few HDPVR recording sometimes NPVR doesn't start with the normal ts headers and I can't play it on the PC, I get a black screen. Going back to it gives this trace. I hadn't noticed this before because the PCH plays it okay.
Looking at the file with a hex editor view attached, I notice a normal header at 0xED and if I remove the bytes before it the file does play.
Martin
Code:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at DShowHelper.ConnectPins(IBaseFilter* source, Char* sourcePinName, IBaseFilter* dest, Char* destPinName)
at DShowHelper.ConnectFilters(IBaseFilter* pFilterUpstream, IBaseFilter* pFilterDownstream)
at Native.PlaybackNative.PlayLiveStream(IntPtr hwndIntPtr, String filename, Int32 serviceType, String& message)
at Native.PlaybackNative.PlayVideoFileTS(IntPtr hwndIntPtr, String filename, String& message)
at Native.PlaybackNative.PlayVideoFile(IntPtr hwndIntPtr, String filename, String& message)
at NextPVR.Players.PlaybackProxyFactory.StartVideoPlaybackProxy(IntPtr window, String filename, String& reason)
at NextPVR.Players.VideoPlayer.PlayFiles(List`1 playQueue, Int32 playQueueIndex, String& reason)
at NextPVR.Players.VideoPlayer.PlayFile(String filename, String& reason)
at NextPVR.ControllerForm.PlayVideoFile(String filename)
at NextPVR.Libraries.VideoLibrary.ActivateItem(ListObject selectedObject)
at NUtility.Controls.ListRenderers.UiListList.OnKeyDown(KeyEventArgs e)
at NUtility.Controls.UiList.OnKeyDown(KeyEventArgs e)
at NextPVR.Libraries.BaseLibrary.OnKeyDown(KeyEventArgs e)
at NextPVR.Libraries.VideoLibrary.OnKeyDown(KeyEventArgs e)
at NextPVR.ControllerForm.OnKeyDown(Object sender, KeyEventArgs e)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at NextPVR.ControllerForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Looking at the file with a hex editor view attached, I notice a normal header at 0xED and if I remove the bytes before it the file does play.
Martin