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

jidehem

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

Holzi

Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,930
    2,234
    Ba-Wü
    Germany Germany
    Country flag
    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
    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
    871
    58
    NRW
    Germany Germany
    Country flag
    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
    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 (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    B MP 2.2.3 Error playing videos from NAS Submit: Bug Reports 2
    Z Error when attempting to play Blu Ray General 1
    T [solved] "Unable To Play" (Videos) rears it's head again. Logs not possible... WatchDog error attached!! :( General Support 1
    G [solved] timeshift error Newcomers Forum 2
    C Can't install any extensions - DLL error Installation, configuration support 19
    horned_reaper Errors in FH log ... Fanart Handler 1
    joecrow 1.25.0 5031: Error on Install. Bugreports 24
    M MediaPortal2 TV Config Error on Install (0x80004005) General 7
    J Blue Screen Error Submit: Bug Reports 0
    G Q about scheduling weekly series when epg lists duplicate back to back episodes each week General Support 2
    Rob Hexenmeister Dependency error on install v2.3.2.0 OnlineVideos 28
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    F Error invoking action 'GetNowNextProgramForGroup' Submit: Bug Reports 3
    vvulture UNKNOWN ERROR when starting live TV General Support 6
    doskabouter Build errors MediaPortal 1 9
    ajs Trakt error when start with MP crash Trakt 1
    horned_reaper MediaPortal configuration error log message General Support 1
    horned_reaper MiniDisplayStatus error log messages General Support 7
    horned_reaper [solved] GUITextureManager Load2 log error messages Fanart Handler 1
    horned_reaper MediaPortal.LastFM.LastFMException error log message General Support 1
    R [solved] No Response from Home Page - Error Newcomers Forum 0
    globaldonkey Music Database Error Listen Music 1
    ajs [solved] 4982: Why this error hard stop when Mediaportal start? MediaPortal 1 3
    thepahakurki Trakt error: Invalid or missing file Trakt 8
    F Audio render and font error in my logs General Support 2
    Top Bottom