[solved] Error playing wma with WASAPI and exclusive mode (1 Viewer)

jidehem

Portal Member
June 28, 2006
7
2
Paris
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
 

Attachments

  • mediaportal_171_bug_wasapi_exclusive_wma.txt
    6.7 KB

jidehem

Portal Member
June 28, 2006
7
2
Paris
Home Country
France France
Of course. Here's the smallest sample I have in wma.
 

Attachments

  • track-08-Gnik Nus.zip
    5.1 MB

Holzi

Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    Thanks! I have no problem playing the file. Maybe you can try to change the buffer value. Mine is 0.5

    Log:
    Code:
    [2014-05-03 01:56:31,355] [Log    ] [MPMain   ] [INFO ] - BASS: Initializing BASS audio engine...
    [2014-05-03 01:56:31,355] [Log    ] [MPMain   ] [DEBUG] - BASS: BASS audio engine was previously freed. Re-Init
    [2014-05-03 01:56:31,357] [Log    ] [MPMain   ] [INFO ] - BASS: Using WASAPI device: Lautsprecher (High Definition Audio-Gerät)
    [2014-05-03 01:56:31,365] [Log    ] [MPMain   ] [INFO ] - BASS: Device Information
    [2014-05-03 01:56:31,365] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2014-05-03 01:56:31,365] [Log    ] [MPMain   ] [INFO ] - BASS: Name: Lautsprecher (High Definition Audio-Gerät)
    [2014-05-03 01:56:31,365] [Log    ] [MPMain   ] [DEBUG] - BASS: Id: {0.0.0.00000000}.{dcd8348a-d38e-4a85-ac0f-cfc1137f244c}
    [2014-05-03 01:56:31,366] [Log    ] [MPMain   ] [DEBUG] - BASS: Type: BASS_WASAPI_TYPE_SPEAKERS
    [2014-05-03 01:56:31,366] [Log    ] [MPMain   ] [INFO ] - BASS: Shared Mode Channels: 2
    [2014-05-03 01:56:31,366] [Log    ] [MPMain   ] [INFO ] - BASS: Shared Mode Samplerate: 44100
    [2014-05-03 01:56:31,367] [Log    ] [MPMain   ] [DEBUG] - BASS: This device supports following formats in WASAPI Exclusive mode:
    [2014-05-03 01:56:31,367] [Log    ] [MPMain   ] [DEBUG] - BASS: Rate   Ch Maximum Supported
    [2014-05-03 01:56:31,397] [Log    ] [MPMain   ] [DEBUG] - BASS:  44100  2 BASS_WASAPI_FORMAT_24BIT
    [2014-05-03 01:56:31,404] [Log    ] [MPMain   ] [DEBUG] - BASS:  48000  2 BASS_WASAPI_FORMAT_24BIT
    [2014-05-03 01:56:31,413] [Log    ] [MPMain   ] [DEBUG] - BASS:  96000  2 BASS_WASAPI_FORMAT_24BIT
    [2014-05-03 01:56:31,421] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2014-05-03 01:56:31,421] [Log    ] [MPMain   ] [INFO ] - BASS: Initialization done.
    [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
    [2014-05-03 01:56:31,439] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2014-05-03 01:56:31,439] [Log    ] [MPMain   ] [INFO ] - BASS: Creating BASS audio stream
    [2014-05-03 01:56:31,595] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Information
    [2014-05-03 01:56:31,596] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2014-05-03 01:56:31,596] [Log    ] [MPMain   ] [INFO ] - BASS: File: D:\test\Musik\track-08-Gnik Nus.wma
    [2014-05-03 01:56:31,596] [Log    ] [MPMain   ] [DEBUG] - BASS: Type of Stream: BASS_CTYPE_STREAM_WMA
    [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [INFO ] - BASS: Number of Channels: 6
    [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Samplerate: 96000
    [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [DEBUG] - BASS: Stream Flags: BASS_MUSIC_FLOAT, BASS_MUSIC_DECODE, BASS_UNICODE
    [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2014-05-03 01:56:31,597] [Log    ] [MPMain   ] [DEBUG] - BASS: Registering stream playback events
    [2014-05-03 01:56:31,601] [Log    ] [MPMain   ] [INFO ] - BASS: Successfully created BASS audio stream
    [2014-05-03 01:56:31,601] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2014-05-03 01:56:31,605] [Log    ] [MPMain   ] [DEBUG] - BASS: ---------------------------------------------
    [2014-05-03 01:56:31,606] [Log    ] [MPMain   ] [DEBUG] - BASS: Creating BASS mixer stream
    [2014-05-03 01:56:31,606] [Log    ] [MPMain   ] [DEBUG] - BASS: Found more input channels (6) than output channels (2). Downmix.
    [2014-05-03 01:56:31,606] [Log    ] [MPMain   ] [DEBUG] - BASS: Creating 2 channel mixer with sample rate of 96000
    [2014-05-03 01:56:31,618] [Log    ] [MPMain   ] [INFO ] - BASS: Initialising WASAPI device
    [2014-05-03 01:56:31,618] [Log    ] [MPMain   ] [DEBUG] - BASS: Freed WASAPI device
    [2014-05-03 01:56:31,620] [Log    ] [MPMain   ] [DEBUG] - BASS: Try to init WASAPI with a Frequency of 96000 and 2 channels
    [2014-05-03 01:56:31,720] [Log    ] [MPMain   ] [DEBUG] - BASS: ---------------------------------------------
    [2014-05-03 01:56:31,720] [Log    ] [MPMain   ] [DEBUG] - BASS: Buffer Length: 389120
    [2014-05-03 01:56:31,720] [Log    ] [MPMain   ] [DEBUG] - BASS: Channels: 2
    [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: Frequency: 96000
    [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: Format: BASS_WASAPI_FORMAT_24BIT
    [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: InitFlags: BASS_WASAPI_EXCLUSIVE, BASS_WASAPI_AUTOFORMAT, BASS_WASAPI_BUFFER
    [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: Exclusive: True
    [2014-05-03 01:56:31,721] [Log    ] [MPMain   ] [DEBUG] - BASS: ---------------------------------------------
    [2014-05-03 01:56:31,722] [Log    ] [MPMain   ] [INFO ] - BASS: WASAPI Device successfully initialised
    [2014-05-03 01:56:31,725] [Log    ] [MPMain   ] [DEBUG] - BASS: Successfully created BASS Mixer stream
    [2014-05-03 01:56:31,732] [Log    ] [MPMain   ] [INFO ] - BASS: playback started
    [2014-05-03 01:56:31,735] [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() D:\test\Musik\track-08-Gnik Nus.wma media:Music
    [2014-05-03 01:56:41,155] [Log    ] [MPMain   ] [DEBUG] - D3D: Showing mouse cursor
    [2014-05-03 01:56:41,155] [Log    ] [MPMain   ] [DEBUG] - D3D: Cursor ShowMouseCursor state 1
    [2014-05-03 01:56:41,156] [Log    ] [MPMain   ] [DEBUG] - D3D: OnPaint()
    [2014-05-03 01:56:44,089] [Log    ] [MPMain   ] [DEBUG] - GUIButtonControl.HyperLink: Trying to use parsed string, original , parsed
    [2014-05-03 01:56:44,104] [Log    ] [MPMain   ] [INFO ] - Main: Stopping media
    [2014-05-03 01:56:44,106] [Log    ] [MPMain   ] [DEBUG] - g_Player.doStop() keepTimeShifting = False keepExclusiveModeOn = False
    [2014-05-03 01:56:44,106] [Log    ] [MPMain   ] [INFO ] - g_Player.OnStopped()
    [2014-05-03 01:56:44,112] [Log    ] [MPMain   ] [INFO ] - RadioRecorded:OnPlayRecordingBackStopped Music D:\test\Musik\track-08-Gnik Nus.wma
    [2014-05-03 01:56:44,113] [Log    ] [MPMain   ] [INFO ] - TvRecorded:OnPlayRecordingBackStopped Music D:\test\Musik\track-08-Gnik Nus.wma
    [2014-05-03 01:56:44,113] [Log    ] [MPMain   ] [DEBUG] - g_Player.doStop() - stop
    [2014-05-03 01:56:44,116] [Log    ] [BassCommand] [DEBUG] - BASS: Stop of stream D:\test\Musik\track-08-Gnik Nus.wma.
    [2014-05-03 01:56:44,119] [Log    ] [BassCommand] [DEBUG] - BASS: Disposing Music Stream D:\test\Musik\track-08-Gnik Nus.wma
    [2014-05-03 01:56:44,120] [Log    ] [MPMain   ] [DEBUG] - D3D: OnPaint()
    [2014-05-03 01:56:44,133] [Log    ] [BassCommand] [DEBUG] - BASS: Stopping WASAPI Device
    [2014-05-03 01:56:44,135] [Log    ] [BassCommand] [DEBUG] - BASS: Disposing Mixer Stream
     

    jidehem

    Portal Member
    June 28, 2006
    7
    2
    Paris
    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,
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    62
    NRW
    Home Country
    Germany Germany
    Can you reproduce the bug ?

    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?

    Playback is working fine! I think decreasing the buffer size is the right hint. Mine is 0.31!

    Best regards
    Helios
     

    jidehem

    Portal Member
    June 28, 2006
    7
    2
    Paris
    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.
     

    Users who are viewing this thread

    Top Bottom