MediaPortal Audio renderer - better video playback quality (5 Viewers)

davidf

Retired Team Member
  • Premium Supporter
  • April 3, 2006
    796
    348
    Scotland
    Home Country
    Scotland Scotland
    Yep,

    it was the MS Codec. I'll try with another.

    If anyone fancies viewing logfiles combined together I've attached the program. Any of the MP logfiles can be used (at least in the UK, it may not work for other cultures) the code is attached too.
     

    Attachments

    • LogCombiner.zip
      50.3 KB

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    If anyone fancies viewing logfiles combined together I've attached the program. Any of the MP logfiles can be used (at least in the UK, it may not work for other cultures) the code is attached too.

    What .NET version it was compiled? I cannot start it since it complains about unable to find a correct runtime version.

    btw. have you seen MPTail?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    As I quick note, I have spotted that DVD menus cause sometimes no audio and the main movie then to hang after few seconds. This is bug in audio renderer and it is related to the audio formats (if menu uses same as the movie, or is resampled by ffdshow in such way).

    I'll provide a new binary as soon as that bug is fixed since it is quite critical (WASAPI related only).
     

    davidf

    Retired Team Member
  • Premium Supporter
  • April 3, 2006
    796
    348
    Scotland
    Home Country
    Scotland Scotland
    What .NET version it was compiled? I cannot start it since it complains about unable to find a correct runtime version.

    btw. have you seen MPTail?


    It was compiled with .Net 4. Create a 2008 winforms solution and drop the cs files over the top of what's there, add the logfile class and remove the linq using and it will work under .Net 3.5 - Althernatively wait till this evening and I'll upload a 2008 version.

    Mptail has vanished from the forums, and isn't really the same thing. This just lets you pick some logfiles and shuffle them together to see what actually happened and when, without seeing extra logging from other components:

    Code:
    17-08-2010 21:19:38.127 [  974] MP Audio Renderer - v0.73
    17-08-2010 21:19:38.127 [  974] Loading settings from registry
    17-08-2010 21:19:38.128 [  974]    create default value for EnableAC3Encoding
    17-08-2010 21:19:38.128 [  974] Success writing to Registry: EnableAC3Encoding
    17-08-2010 21:19:38.128 [  974]    create default value for AC3bitrate
    17-08-2010 21:19:38.128 [  974] Success writing to Registry: AC3bitrate
    17-08-2010 21:19:38.128 [  974]    ForceDirectSound:        0
    17-08-2010 21:19:38.128 [  974]    EnableTimestrecthing:    1
    17-08-2010 21:19:38.128 [  974]    WASAPIExclusive:         0
    17-08-2010 21:19:38.128 [  974]    EnableAC3Encoding:       0
    17-08-2010 21:19:38.128 [  974]    AC3bitrate:              448
    17-08-2010 21:19:38.128 [  974]    LogSampleTimes:          0
    17-08-2010 21:19:38.128 [  974]    DevicePeriod:            500000 (1 == minimal, 0 == driver default, other user defined)
    17-08-2010 21:19:38.128 [  974]    WASAPIPreferredDevice:   
    17-08-2010 21:19:38.128 [  974] CMPAudioRenderer - instance 0xa3ca840
    17-08-2010 21:19:38.129 [  974] WASAPIRenderer::GetAvailableAudioDevices
    17-08-2010 21:19:38.134 [  974] Audio endpoint 0:
    17-08-2010 21:19:38.134 [  974]   Speakers (2- High Definition Audio Device)
    17-08-2010 21:19:38.134 [  974]   {0.0.0.00000000}.{4616abfc-985b-40be-9f77-129cab1183f3}
    17-08-2010 21:19:38.134 [  974]   supports pull mode: 1
    17-08-2010 21:19:38.134 [  974] 
    17-08-2010 21:19:38.136 [  974] Audio endpoint 1:
    17-08-2010 21:19:38.136 [  974]   NVIDIA HDMI Out (NVIDIA High Definition Audio)
    17-08-2010 21:19:38.136 [  974]   {0.0.0.00000000}.{9a2b4a01-2a32-4217-89c3-15fced0371e4}
    17-08-2010 21:19:38.136 [  974]   supports pull mode: 1
    17-08-2010 21:19:38.136 [  974] 
    17-08-2010 21:19:38.137 [  3e0] WASAPIRenderer::Render thread - starting up - thread ID: 992
    17-08-2010 21:19:38.138 [  a6c] Resampler thread - starting up - thread ID: 2668
    17-08-2010 21:19:38.736 [974]Found method MFCreateMediaType
    17-08-2010 21:19:38.736 [974]Successfully loaded EVR dlls
    17-08-2010 21:19:38.737 [974]Successfully loaded DWM dll
    17-08-2010 21:19:38.737 [974]Successfully loaded AVRT dll
    17-08-2010 21:19:38.738 [974]Successfully loaded Win7RefreshRateHelper.dll
    17-08-2010 21:19:38.739 [974]  W7GetRefreshRate() found
    17-08-2010 21:19:38.741 [974]----- Owlsroost Version ------ instance 0xa40c068
    17-08-2010 21:19:38.741 [974]---------- v0.0.37 ----------- instance 0xa40c068
    17-08-2010 21:19:38.741 [974]--- audio renderer testing --- instance 0xa40c068
    17-08-2010 21:19:38.741 [974]Starting to estimate display refresh timings
    17-08-2010 21:19:38.914 [974]Display cycle from Windows: 20.000000 ms
    17-08-2010 21:19:38.914 [974]Measured display cycle: 20.000000 ms, locked: 1 
    17-08-2010 21:19:38.914 [974]Maximum scanline: 745
    17-08-2010 21:19:38.914 [974]Measured scanline time: 26.809652 us
    17-08-2010 21:19:38.916 [974]GetDeviceID
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Please keep the test results coming :) Success "stories" are as valuable feedback as the complete failures.
     

    davidf

    Retired Team Member
  • Premium Supporter
  • April 3, 2006
    796
    348
    Scotland
    Home Country
    Scotland Scotland
    Tourettes,

    here is the vs2008 version (with added remove option on right click).

    The dropping is gone with the PDVD codec and the ION appears to handle it OK. I'll punish it for a while and then check the log files to see if it's drpping frames or sound.
     

    Attachments

    • LogCombiner2008.zip
      49.7 KB

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    here is the vs2008 version (with added remove option on right click).

    Could you open a new development thread for that utility? I think it would help many people to go thru the logs when troubleshooting issues.
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    49
    Milano, Italy
    Home Country
    Italy Italy
    here is the vs2008 version (with added remove option on right click).

    [ot]
    First run not really a success:

    System.FormatException: String was not recognized as a valid DateTime.
    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
    at System.DateTime.Parse(String s)
    at LogCombiner.LogFile.get_CurrentTimeStamp()

    Simone
    [/ot]
     

    davidf

    Retired Team Member
  • Premium Supporter
  • April 3, 2006
    796
    348
    Scotland
    Home Country
    Scotland Scotland
    here is the vs2008 version (with added remove option on right click).

    [ot]
    First run not really a success:

    System.FormatException: String was not recognized as a valid DateTime.
    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
    at System.DateTime.Parse(String s)
    at LogCombiner.LogFile.get_CurrentTimeStamp()

    Simone
    [/ot]

    I did (foolishly) make the assumption that the loglines started with a datetime in the local culture or was blank. I assume it isn't in your case - send me the log files and I'll make it'll handle any culture. I didn't fancy using the try parse as there was no way of combining files if there was no dates.

    David
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    here is the vs2008 version (with added remove option on right click).

    [ot]
    First run not really a success:

    System.FormatException: String was not recognized as a valid DateTime.
    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
    at System.DateTime.Parse(String s)
    at LogCombiner.LogFile.get_CurrentTimeStamp()

    Simone
    [/ot]

    I did (foolishly) make the assumption that the loglines started with a datetime in the local culture or was blank. I assume it isn't in your case - send me the log files and I'll make it'll handle any culture. I didn't fancy using the try parse as there was no way of combining files if there was no dates.

    We should have a new thread for this, since it is not related to the audio renderer (althou it would keep this dead thread in active :)).
     

    Users who are viewing this thread

    Top Bottom