Jump to content

LAV settings


Jasoon
Go to solution Solved by babgvant,

Recommended Posts

babgvant

babgvant - when you see this, he started out asking for lav settings in the beginning of the thread, but the root issue is actually the long delay when playing as well some failures in the log.

 

It's possible that LAV isn't downloading properly (which would cause a long delay).

Link to comment
Share on other sites

Please try deleting the COMObjects folder in the MBT config folder. MBT should download LAV (and all the filters it needs) automatically. There maybe an issue with the updating process (it's hard to test all the permutations).

 

maybe if it's failing to overwrite we could name the folder with the com objects version, e.g. comObjects1.3.4....then after the new ones are downloaded try to cleanup the old ones. if it fails, worst case scenario is extra files left behind, but at least the new ones will still be there and available

 

just an idea, this might not be the actual problem

Link to comment
Share on other sites

It's possible that LAV isn't downloading properly (which would cause a long delay).

 

right, it must be failing for him for some reason and then retrying over and over

Link to comment
Share on other sites

babgvant

What Luke is saying, in a not so diplomatic way, is that most of the LAV configuration settings are found in the MBT settings section. When you change the settings in MBT, what you are actually doing is changing the underlying LAV settings. I'm not a fan of hiding LAV configuration from the user, it confuses most who are familiar with LAV, it is not all inclusive & sometimes the changes don't "stick."

 

In my opinion, LAV should remain a stand alone installation.

 

I understand this perspective, but in my experience it is unsupportable. What version is the user running? How is it setup? What other cruft is joining the graph?

 

If you have a compelling argument for why/how it is better for the majority of users to have to maintain the DS ecosystem please share it.

Link to comment
Share on other sites

Yea, babgvant is right. We made a team decision about this. There are always going to be power users who prefer to use their own LAV and we understand that, but the vast majority of people just want to be able to watch their movies and aren't really worried about it.

 

Just look at what Ebr has to deal with with MBC, since windows media center relies on system installed codecs - "I installed xyz codec pack and now MBC is broken.". We don't want to have to deal with that anymore.

Link to comment
Share on other sites

babgvant

maybe if it's failing to overwrite we could name the folder with the com objects version, e.g. comObjects1.3.4....then after the new ones are downloaded try to cleanup the old ones. if it fails, worst case scenario is extra files left behind, but at least the new ones will still be there and available

 

just an idea, this might not be the actual problem

 

There are scenarios where MBT could get into a race while updating the components, but restarting should resolve that. I'll have to think on it a bit.

 

If deleting the COMObjects folder fixes the problem, then I'll have something to go on. If it doesn't, the files DL properly and the issue persists it could be a system specific issue.

Link to comment
Share on other sites

babgvant

ive tried deleting the COMObjects folder with no change

 

Does it recreate itself with subfolders for each filter containing dlls/ax/etc when MBT starts?

Link to comment
Share on other sites

ive tried deleting the COMObjects folder with no change

 

I think one of the main reasons this thread has taken so long to get you help is the reported information isnt very useful. So unfortunately, "no change" doesn't really help us diagnose. The result on screen could be something different, but for all we know it's a new problem now.

Link to comment
Share on other sites

2014-12-23 16:38:44.5597 Debug - ApiClient: Received 200 status code after 4.0002 ms from GET: http://192.168.1.67:8096/mediabrowser/Items/11bac755a2513142d136f0303b49804b/MediaInfo?UserId=bc85948b2977a395892cedb1189390b4&format=json
2014-12-23 16:38:44.5997 Info - InternalDirectShowPlayer: Playing Alice: Through the Looking Glass. Audio Renderer: Default, Madvr: False, xySubFilter: True, ParentID: d67a10293ca973bf3794113d689a3398
2014-12-23 16:38:44.5997 Info - InternalDirectShowPlayer: Playing Path \\JASOON-PC\Movies\Alice Through the Looking Glass\Alice Through the Looking Glass.mp4
2014-12-23 16:38:44.5997 Debug - InternalDirectShowPlayer: IsFullScreen: W: 1440 H: 764 Top: 0 Bottom: 1080 Left: 0 Right: 1920
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: Configure LAV Splitter
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetSubtitleMode:
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetPGSForcedStream: True
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetPGSOnlyForced: False
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetVC1TimestampMode: Auto
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetSubstreamsEnabled: True
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetStreamSwitchRemoveAudio: False
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetUseAudioForHearingVisuallyImpaired: False
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetMaxQueueMemSize: 256
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetTrayIcon: False
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetPreferHighQualityAudioStreams: True
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetLoadMatroskaExternalSegments: True
2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetNetworkStreamAnalysisDuration: 1000
2014-12-23 16:38:46.1458 Debug - InternalDirectShowPlayer: NumberOfStreams: 1
2014-12-23 16:39:02.7728 Info - App: StartupTrigger fired for task: Log file cleanup
2014-12-23 16:39:02.7728 Info - App: Executing Log file cleanup
2014-12-23 16:39:02.7728 Info - App: Log file cleanup Completed after 0 minute(s) and 0 seconds
2014-12-23 16:39:16.9306 Error - InternalDirectShowPlayer: Error adding LAV Video filter
 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))
 System.Runtime.InteropServices.COMException
    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at MediaBrowser.Theater.DirectShow.VideoConfigurationUtils.get_GpuModel()
    at MediaBrowser.Theater.DirectShow.DirectShowPlayer.RenderStreams(IBaseFilter pSource, Boolean enableMadvr, Boolean enableMadvrExclusiveMode, Boolean enableXySubFilter)
 
2014-12-23 16:39:16.9476 Debug - InternalDirectShowPlayer: Added default audio renderer
2014-12-23 16:39:16.9476 Debug - InternalDirectShowPlayer: Add LAVAudio to the graph.
2014-12-23 16:39:16.9476 Debug - InternalDirectShowPlayer: Enable LAVAudio Runtime Config

Link to comment
Share on other sites

babgvant

2014-12-23 16:38:44.5597 Debug - ApiClient: Received 200 status code after 4.0002 ms from GET: http://192.168.1.67:8096/mediabrowser/Items/11bac755a2513142d136f0303b49804b/MediaInfo?UserId=bc85948b2977a395892cedb1189390b4&format=json

2014-12-23 16:38:44.5997 Info - InternalDirectShowPlayer: Playing Alice: Through the Looking Glass. Audio Renderer: Default, Madvr: False, xySubFilter: True, ParentID: d67a10293ca973bf3794113d689a3398

2014-12-23 16:38:44.5997 Info - InternalDirectShowPlayer: Playing Path \\JASOON-PC\Movies\Alice Through the Looking Glass\Alice Through the Looking Glass.mp4

2014-12-23 16:38:44.5997 Debug - InternalDirectShowPlayer: IsFullScreen: W: 1440 H: 764 Top: 0 Bottom: 1080 Left: 0 Right: 1920

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: Configure LAV Splitter

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetSubtitleMode:

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetPGSForcedStream: True

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetPGSOnlyForced: False

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetVC1TimestampMode: Auto

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetSubstreamsEnabled: True

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetStreamSwitchRemoveAudio: False

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetUseAudioForHearingVisuallyImpaired: False

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetMaxQueueMemSize: 256

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetTrayIcon: False

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetPreferHighQualityAudioStreams: True

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetLoadMatroskaExternalSegments: True

2014-12-23 16:38:45.9818 Debug - InternalDirectShowPlayer: SetNetworkStreamAnalysisDuration: 1000

2014-12-23 16:38:46.1458 Debug - InternalDirectShowPlayer: NumberOfStreams: 1

2014-12-23 16:39:02.7728 Info - App: StartupTrigger fired for task: Log file cleanup

2014-12-23 16:39:02.7728 Info - App: Executing Log file cleanup

2014-12-23 16:39:02.7728 Info - App: Log file cleanup Completed after 0 minute(s) and 0 seconds

2014-12-23 16:39:16.9306 Error - InternalDirectShowPlayer: Error adding LAV Video filter

 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))

 System.Runtime.InteropServices.COMException

    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)

    at System.Management.ManagementScope.InitializeGuts(Object o)

    at System.Management.ManagementScope.Initialize()

    at System.Management.ManagementObjectSearcher.Initialize()

    at System.Management.ManagementObjectSearcher.Get()

    at MediaBrowser.Theater.DirectShow.VideoConfigurationUtils.get_GpuModel()

    at MediaBrowser.Theater.DirectShow.DirectShowPlayer.RenderStreams(IBaseFilter pSource, Boolean enableMadvr, Boolean enableMadvrExclusiveMode, Boolean enableXySubFilter)

 

2014-12-23 16:39:16.9476 Debug - InternalDirectShowPlayer: Added default audio renderer

2014-12-23 16:39:16.9476 Debug - InternalDirectShowPlayer: Add LAVAudio to the graph.

2014-12-23 16:39:16.9476 Debug - InternalDirectShowPlayer: Enable LAVAudio Runtime Config

 

Is the LAV video filter present?

 

Do you have another version of LAV installed on the PC?

 

if you regsvr32 lavvideo.ax from an admin command prompt does it regsister properly? If so, can you load the filter to a graph in GraphStudioNext?

 

Do you have anti-virus SW installed? If so, which one?

 

Are there any entries in the event log related to this error?

Link to comment
Share on other sites

Is the LAV video filter present?

 

I have LAVVideo.ax in the COMobjects folder

 

Do you have another version of LAV installed on the PC?

 

Ive tried it with LAV installed on my pc and also with it removed

 

if you regsvr32 lavvideo.ax from an admin command prompt does it regsister properly? If so, can you load the filter to a graph in GraphStudioNext?

 

when I tried to regsvr32 lavvideo.ax I get an error "the module "lavvideo.ax" failed to load. Make sure the binary is stored at the specified path

 

Do you have anti-virus SW installed? If so, which one?

 

I have webroot anti-virus installed

 

Are there any entries in the event log related to this error?

 

The main error in the MBT log is 2014-12-23 16:55:44.3621 Info - App: Cache file cleanup Completed after 0 minute(s) and 0 seconds
2014-12-23 16:55:45.2412 Error - InternalDirectShowPlayer: Error adding LAV Video filter
 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))
 System.Runtime.InteropServices.COMException
    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at MediaBrowser.Theater.DirectShow.VideoConfigurationUtils.get_GpuModel()
    at MediaBrowser.Theater.DirectShow.DirectShowPlayer.RenderStreams(IBaseFilter pSource, Boolean enableMadvr, Boolean enableMadvrExclusiveMode, Boolean enableXySubFilter)
 
2014-12-23 16:55:45.2532 Debug - InternalDirectShowPlayer: Added default audio renderer

Link to comment
Share on other sites

babgvant

if you regsvr32 lavvideo.ax from an admin command prompt does it regsister properly? If so, can you load the filter to a graph in GraphStudioNext?

 

when I tried to regsvr32 lavvideo.ax I get an error "the module "lavvideo.ax" failed to load. Make sure the binary is stored at the specified path

 

Just to make sure, you ran regsvr32 "c:\programdata\...\COMObjects\LAV\lavvideo.ax"? If so, there should be an event in the Event Log about why.

 

Are there any entries in the event log related to this error?

 

The main error in the MBT log is 2014-12-23 16:55:44.3621 Info - App: Cache file cleanup Completed after 0 minute(s) and 0 seconds

...

 

2014-12-23 16:55:45.2532 Debug - InternalDirectShowPlayer: Added default audio renderer

 

Sorry, I meant the Windows Event Log (aka Event Viewer).

 

above

Link to comment
Share on other sites

Ive managed to register  lavvideo.ax using the command prompt

 

 

still getting the  InternalDirectShowPlayer: Error adding LAV Video filter in MBT log

 

I have no idea as to what to look for in Event Viewer

Link to comment
Share on other sites

fund this in event viewer at about the same time as im trying to play a video

 

Log Name:      System
Source:        Service Control Manager
Date:          23/12/2014 17:10:56
Event ID:      7023
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Jasoon-PC
Description:
The Windows Management Instrumentation service terminated with the following error:
The system cannot find the file specified.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="49152">7023</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2014-12-23T17:10:56.527604100Z" />
    <EventRecordID>688957</EventRecordID>
    <Correlation />
    <Execution ProcessID="712" ThreadID="77116" />
    <Channel>System</Channel>
    <Computer>Jasoon-PC</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="param1">Windows Management Instrumentation</Data>
    <Data Name="param2">%%2</Data>
  </EventData>
</Event>

Link to comment
Share on other sites

babgvant

Ive managed to register  lavvideo.ax using the command prompt

 

 

still getting the  InternalDirectShowPlayer: Error adding LAV Video filter in MBT log

 

I have no idea as to what to look for in Event Viewer

 

Can you load LAVVideo in GraphStudioNext?

 

Look for anything indicating an error/warning, if there isn't one then nothing is getting logged.

Link to comment
Share on other sites

babgvant

if I try and manually add LAVVideo in GraphStudioNext I get an error No CLSID provided

 

So LAV is registered (you can see it in the DS filter list in GSN), but when you try to add it GSN gives that error?

Link to comment
Share on other sites

the only way to get it in the DS filter list was to do a stand alone install of LAV, when I direct it to the one in MBT I get the No CLSID provided error in GSN

Link to comment
Share on other sites

  • Solution
babgvant

fund this in event viewer at about the same time as im trying to play a video

 

Log Name:      System

Source:        Service Control Manager

Date:          23/12/2014 17:10:56

Event ID:      7023

Task Category: None

Level:         Error

Keywords:      Classic

User:          N/A

Computer:      Jasoon-PC

Description:

The Windows Management Instrumentation service terminated with the following error:

The system cannot find the file specified.

Event Xml:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

  <System>

    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />

    <EventID Qualifiers="49152">7023</EventID>

    <Version>0</Version>

    <Level>2</Level>

    <Task>0</Task>

    <Opcode>0</Opcode>

    <Keywords>0x8080000000000000</Keywords>

    <TimeCreated SystemTime="2014-12-23T17:10:56.527604100Z" />

    <EventRecordID>688957</EventRecordID>

    <Correlation />

    <Execution ProcessID="712" ThreadID="77116" />

    <Channel>System</Channel>

    <Computer>Jasoon-PC</Computer>

    <Security />

  </System>

  <EventData>

    <Data Name="param1">Windows Management Instrumentation</Data>

    <Data Name="param2">%%2</Data>

  </EventData>

</Event>

 

I missed this before:

 

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)

    at System.Management.ManagementScope.InitializeGuts(Object o)

    at System.Management.ManagementScope.Initialize()

    at System.Management.ManagementObjectSearcher.Initialize()

    at System.Management.ManagementObjectSearcher.Get()

 

The error is coming from WMI (what System.Management wraps). Something is messed with WMI.

 

Any chance you are running Windows 7 and have KB3004394 installed?

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...