[solved] - Error playing wma with WASAPI and exclusive mode

Discussion in 'Listen Music' started by jidehem, May 2, 2014.

  1. jidehem

    jidehem Portal Member

    Joined:
    June 28, 2006
    Messages:
    7
    Likes Received:
    0
    Gender:
    Male
    Location:
    Paris
    Ratings:
    +2 / 0
    Home Country:
    France France
    Hi !

    I think there is a problem with WASAPI player and exclusive mode : with this configuration, everything plays fine (mp3, wav, flac -and even dts files using winamp-), but MediaPortal can't play any wma files, even if they play successfully with Windows Media player. There is only an error 'can't play xxxxx". (see More details in log files).

    Unfortunately, I'm using an Intel NUC to run MediaPortal, and I have no choice except using WASAPI Exclusive mode to play correctly HQ files (like 24 bits and 96 khz) because of the HDMI Audio.

    Windows 7/64.
    MediaPortal 1.7.1 (but was KO with previous versions).



    Any suggestions ?

    Regards,

    Jidehem
     

    Attached Files:

  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    Maybe you can provide the sample file?
     
  4. jidehem

    jidehem Portal Member

    Joined:
    June 28, 2006
    Messages:
    7
    Likes Received:
    0
    Gender:
    Male
    Location:
    Paris
    Ratings:
    +2 / 0
    Home Country:
    France France
    Of course. Here's the smallest sample I have in wma.
     

    Attached Files:

  5. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    Thanks! I have no problem playing the file. Maybe you can try to change the buffer value. Mine is 0.5

    Log:
    Code (Text):
    1. [2014-05-03 01:56:31,355] [Log    ] [MPMain   ] [INFO ] - BASS: Initializing BASS audio engine...
    2. [2014-05-03 01:56:31,355] [Log    ] [MPMain   ] [DEBUG] - BASS: BASS audio engine was previously freed. Re-Init
    3. [2014-05-03 01:56:31,357] [Log    ] [MPMain   ] [INFO ] - BASS: Using WASAPI device: Lautsprecher (High Definition Audio-Gerät)
    4. [2014-05-03 01:56:31,365] [Log    ] [MPMain   ] [INFO ] - BASS: Device Information
    5. [2014-05-03 01:56:31,365] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    6. [2014-05-03 01:56:31,365] [Log    ] [MPMain   ] [INFO ] - BASS: Name: Lautsprecher (High Definition Audio-Gerät)
    7. [2014-05-03 01:56:31,365] [Log    ] [MPMain   ] [DEBUG] - BASS: Id: {0.0.0.00000000}.{dcd8348a-d38e-4a85-ac0f-cfc1137f244c}
    8. [2014-05-03 01:56:31,366] [Log    ] [MPMain   ] [DEBUG] - BASS: Type: BASS_WASAPI_TYPE_SPEAKERS
    9. [2014-05-03 01:56:31,366] [Log    ] [MPMain   ] [INFO ] - BASS: Shared Mode Channels: 2
    10. [2014-05-03 01:56:31,366] [Log    ] [MPMain   ] [INFO ] - BASS: Shared Mode Samplerate: 44100
    11. [2014-05-03 01:56:31,367] [Log    ] [MPMain   ] [DEBUG] - BASS: This device supports following formats in WASAPI Exclusive mode:
    12. [2014-05-03 01:56:31,367] [Log    ] [MPMain   ] [DEBUG] - BASS: Rate   Ch Maximum Supported
    13. [2014-05-03 01:56:31,397] [Log    ] [MPMain   ] [DEBUG] - BASS:  44100  2 BASS_WASAPI_FORMAT_24BIT
    14. [2014-05-03 01:56:31,404] [Log    ] [MPMain   ] [DEBUG] - BASS:  48000  2 BASS_WASAPI_FORMAT_24BIT
    15. [2014-05-03 01:56:31,413] [Log    ] [MPMain   ] [DEBUG] - BASS:  96000  2 BASS_WASAPI_FORMAT_24BIT
    16. [2014-05-03 01:56:31,421] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    17. [2014-05-03 01:56:31,421] [Log    ] [MPMain   ] [INFO ] - BASS: Initialization done.
    18. [2014-05-03 01:56:31,421] [Log    ] [MPMain   ] [DEBUG] - PlayerFactory: Successfully created player instance for file - D:\test\Musik\track-08-Gnik Nus.wma
    19. [2014-05-03 01:56:31,439] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    20. [2014-05-03 01:56:31,439] [Log    ] [MPMain   ] [INFO ] - BASS: Creating BASS audio stream
    21. [2014-05-03 01:56:31,595] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Information
    22. [2014-05-03 01:56:31,596] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    23. [2014-05-03 01:56:31,596] [Log    ] [MPMain   ] [INFO ] - BASS: File: D:\test\Musik\track-08-Gnik Nus.wma
    24. [2014-05-03 01:56:31,596] [Log    ] [MPMain   ] [DEBUG] - BASS: Type of Stream: BASS_CTYPE_STREAM_WMA
    25. [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [INFO ] - BASS: Number of Channels: 6
    26. [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Samplerate: 96000
    27. [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [DEBUG] - BASS: Stream Flags: BASS_MUSIC_FLOAT, BASS_MUSIC_DECODE, BASS_UNICODE
    28. [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    29. [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [DEBUG] - BASS: Registering stream playback events
    30. [2014-05-03 01:56:31,601] [Log    ] [MPMain   ] [INFO ] - BASS: Successfully created BASS audio stream
    31. [2014-05-03 01:56:31,601] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    32. [2014-05-03 01:56:31,605] [Log    ] [MPMain   ] [DEBUG] - BASS: ---------------------------------------------
    33. [2014-05-03 01:56:31,606] [Log    ] [MPMain   ] [DEBUG] - BASS: Creating BASS mixer stream
    34. [2014-05-03 01:56:31,606] [Log    ] [MPMain   ] [DEBUG] - BASS: Found more input channels (6) than output channels (2). Downmix.
    35. [2014-05-03 01:56:31,606] [Log    ] [MPMain   ] [DEBUG] - BASS: Creating 2 channel mixer with sample rate of 96000
    36. [2014-05-03 01:56:31,618] [Log    ] [MPMain   ] [INFO ] - BASS: Initialising WASAPI device
    37. [2014-05-03 01:56:31,618] [Log    ] [MPMain   ] [DEBUG] - BASS: Freed WASAPI device
    38. [2014-05-03 01:56:31,620] [Log    ] [MPMain   ] [DEBUG] - BASS: Try to init WASAPI with a Frequency of 96000 and 2 channels
    39. [2014-05-03 01:56:31,720] [Log    ] [MPMain   ] [DEBUG] - BASS: ---------------------------------------------
    40. [2014-05-03 01:56:31,720] [Log    ] [MPMain   ] [DEBUG] - BASS: Buffer Length: 389120
    41. [2014-05-03 01:56:31,720] [Log    ] [MPMain   ] [DEBUG] - BASS: Channels: 2
    42. [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: Frequency: 96000
    43. [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: Format: BASS_WASAPI_FORMAT_24BIT
    44. [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: InitFlags: BASS_WASAPI_EXCLUSIVE, BASS_WASAPI_AUTOFORMAT, BASS_WASAPI_BUFFER
    45. [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: Exclusive: True
    46. [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: ---------------------------------------------
    47. [2014-05-03 01:56:31,722] [Log    ] [MPMain   ] [INFO ] - BASS: WASAPI Device successfully initialised
    48. [2014-05-03 01:56:31,725] [Log    ] [MPMain   ] [DEBUG] - BASS: Successfully created BASS Mixer stream
    49. [2014-05-03 01:56:31,732] [Log    ] [MPMain   ] [INFO ] - BASS: playback started
    50. [2014-05-03 01:56:31,735] [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() D:\test\Musik\track-08-Gnik Nus.wma media:Music
    51. [2014-05-03 01:56:41,155] [Log    ] [MPMain   ] [DEBUG] - D3D: Showing mouse cursor
    52. [2014-05-03 01:56:41,155] [Log    ] [MPMain   ] [DEBUG] - D3D: Cursor ShowMouseCursor state 1
    53. [2014-05-03 01:56:41,156] [Log    ] [MPMain   ] [DEBUG] - D3D: OnPaint()
    54. [2014-05-03 01:56:44,089] [Log    ] [MPMain   ] [DEBUG] - GUIButtonControl.HyperLink: Trying to use parsed string, original , parsed
    55. [2014-05-03 01:56:44,104] [Log    ] [MPMain   ] [INFO ] - Main: Stopping media
    56. [2014-05-03 01:56:44,106] [Log    ] [MPMain   ] [DEBUG] - g_Player.doStop() keepTimeShifting = False keepExclusiveModeOn = False
    57. [2014-05-03 01:56:44,106] [Log    ] [MPMain   ] [INFO ] - g_Player.OnStopped()
    58. [2014-05-03 01:56:44,112] [Log    ] [MPMain   ] [INFO ] - RadioRecorded:OnPlayRecordingBackStopped Music D:\test\Musik\track-08-Gnik Nus.wma
    59. [2014-05-03 01:56:44,113] [Log    ] [MPMain   ] [INFO ] - TvRecorded:OnPlayRecordingBackStopped Music D:\test\Musik\track-08-Gnik Nus.wma
    60. [2014-05-03 01:56:44,113] [Log    ] [MPMain   ] [DEBUG] - g_Player.doStop() - stop
    61. [2014-05-03 01:56:44,116] [Log    ] [BassCommand] [DEBUG] - BASS: Stop of stream D:\test\Musik\track-08-Gnik Nus.wma.
    62. [2014-05-03 01:56:44,119] [Log    ] [BassCommand] [DEBUG] - BASS: Disposing Music Stream D:\test\Musik\track-08-Gnik Nus.wma
    63. [2014-05-03 01:56:44,120] [Log    ] [MPMain   ] [DEBUG] - D3D: OnPaint()
    64. [2014-05-03 01:56:44,133] [Log    ] [BassCommand] [DEBUG] - BASS: Stopping WASAPI Device
    65. [2014-05-03 01:56:44,135] [Log    ] [BassCommand] [DEBUG] - BASS: Disposing Mixer Stream
     
  6. jidehem

    jidehem Portal Member

    Joined:
    June 28, 2006
    Messages:
    7
    Likes Received:
    0
    Gender:
    Male
    Location:
    Paris
    Ratings:
    +2 / 0
    Home Country:
    France France
    Hi,

    Thank you for your test and your logs.
    I've noticed that you have selected Stereo in Speaker setup, while I use 5.1 output (this file contains 6 channels).
    I've tried to select Stereo and I successfully played this file too (except that I lose 4 channels !).
    I've tested sucessfully others wma in stereo.

    So, the problem is specific to this combination :
    - WASAPI player in exclusive mode
    - 6 channels output
    - WMA with 6 channels.

    Can you reproduce the bug ?

    Regards,
     
  7. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    I set it so 6 channel output and it still plays fine for me. But I am probably not the right person to test since I don't have a HDMI connection.
    @Helios61 are you able to test this file maybe?
     
    • Thank You! Thank You! x 2
  8. Helios61
    • Premium Supporter

    Helios61 Retired Team Member

    Joined:
    January 30, 2008
    Messages:
    4,587
    Likes Received:
    584
    Gender:
    Male
    Location:
    NRW
    Ratings:
    +897 / 4
    Home Country:
    Germany Germany
    Show System Specs
    Playback is working fine! I think decreasing the buffer size is the right hint. Mine is 0.31!

    Best regards
    Helios
     
    • Thank You! Thank You! x 2
  9. jidehem

    jidehem Portal Member

    Joined:
    June 28, 2006
    Messages:
    7
    Likes Received:
    0
    Gender:
    Male
    Location:
    Paris
    Ratings:
    +2 / 0
    Home Country:
    France France
    Waooh, you're thinking right !
    Holzi was right, too : it's related to the buffer size.
    Decreasing the buffer to 0.31s solved my problem !
    Now, I can listen multi-channel & hd tracks perfectly in MediaPortal, that's awesome !
    Big thanks to you, guys !

    Jidehem.
     
    • Thank You! Thank You! x 2
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!