FS#46737 - [vlc] No audio with mp3 and video (but wav) 'alsa-error' on Haswell-ULT HD Audio Controller

Attached to Project: Arch Linux
Opened by Gerry Kessler (renegat) - Thursday, 15 October 2015, 14:45 GMT
Last edited by Levente Polyak (anthraxx) - Sunday, 05 November 2017, 22:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Descripion:
vlc Version: 2.2.1-8 with every optional dependency installed fails on audio output with mp3 and video playback while wav sound output works!

Audio device: Intel Corporation Haswell-ULT HD Audio Controller IS affected while
Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (BayTrail) IS NOT affected with identical setup (same packages, same kernel, same settings).

VLC settings:
Tools -> Preferences -> Audio -> Output Module -> Alsa Audio Output
Device -> HDA Intel HDMI, HDMI 0 HDMI Audio Output

With the analog audio device same problem.

[code]
$ vlc
VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
[0000000001e73178] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000000001f6f848] alsa audio output error: cannot set buffer duration: Invalid argument
[0000000001f6f848] core audio output error: module not functional
[00007f8bf4c055a8] core decoder error: failed to create audio output
[/code]

VLC-Messages:
alsa error: cannot set buffer duration: Invalid argument
core error: module not functional
core error: failed to create audio output

As really every other multimedia application I've tried works flawless without any audio issues (mplayer, deadbeef, lxmusic, kodi...) this vlc-error message is somewhat misleading ('alsa-error').
There is no 'alsa-error' while VLC plays wav!

I've STFW but found nothing helpful.
Installing pulse audio server did not help.

Downgraded VLC to
vlc-2.2.1-6-x86_64: Same issue, no audio on mp3/mp4
vlc-2.1.5-5-x86_64.pkg: only distort and static sounds

Tried kernel linux-lts, reinstalled everything: issue persists

With manjaro live system: same issue.

BUT with LUbuntu 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
and vlc (2.2.0-1) (same settings!) audio output works with VLC both videos and mp3 normally so I really think that it is an ArchLinux matter!


This task depends upon

Closed by  Levente Polyak (anthraxx)
Sunday, 05 November 2017, 22:00 GMT
Reason for closing:  No response
Comment by Gerry Kessler (renegat) - Thursday, 15 October 2015, 15:39 GMT
Same issue with latest nightly build from aur:
$vlc
VLC media player 3.0.0-git Vetinari (revision 2.2.0-git-4809-ga574bf3)
[00000000014fc170] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
iconTheme "oxygen"
[0000000001531b70] alsa audio output error: cannot set buffer duration: Invalid argument
[0000000001531b70] core audio output error: module not functional
[00007f42e0c03e90] core decoder error: failed to create audio output

wav files play
Comment by patrick (potomac) - Thursday, 15 October 2015, 16:04 GMT
It could be a problem in vlc cache files, you can try to run this command in root :

/usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins

last time I had problems with vlc it was due to a problem related to the vlc cache for plugins, perhaps there is something corrupted in your /usr/lib/vlc/plugins which prevents vlc-cache-gen to do his job,

deleting ~/.config/vlc/ may help also
Comment by Gerry Kessler (renegat) - Saturday, 17 October 2015, 13:30 GMT
VLC media player 2.2.0 (vlc-2.2.0-2-x86_64) works normal with sound!

VLC media player 2.2.0 Weatherwax (revision 2.2.0-0-g1349ef2)
[0000000001ec3178] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000000001f8a9f8] qt4 interface error: Unable to load extensions module
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
[00007fc92d41cac8] avcodec decoder: Using Intel i965 driver for Intel(R) Haswell Mobile - 1.6.1 for hardware decoding.
[VS] Software VDPAU backend library initialized
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
[00007fc904001268] vdpau_display vout display error: video mixer surface width capabilities query failure: VDP_STATUS_NO_IMPLEMENTATION

No sound issue on Intel Corporation Haswell-ULT HD Audio Controller occurs first with vlc 2.2.1!
Comment by Gerry Kessler (renegat) - Tuesday, 26 January 2016, 12:25 GMT
Meanwhile it pointed out that this issue is not only affecting Intel Corporation Haswell-ULT HD Audio Controller but also Realtek ALC 887-VD2 on ASUS E35M1-M with AMD APU E-350.
Same error 'alsa audio output error: cannot set buffer duration: Invalid argument' with vlc > 2.2.0
Comment by Gerry Kessler (renegat) - Tuesday, 23 February 2016, 11:23 GMT
It seems that vlc > 2.2.0 does simply not work with alsa only anymore.
It now depends on pulseaudio to work.
With pulseaudio this issue is gone.
Perhaps vlc should pull pulseaudio as dependency on installation.
Comment by patrick (potomac) - Tuesday, 23 February 2016, 19:38 GMT
@Gerry: VLC 2.2.2-1 works without problems with alsa on my configuration ( I don't use pulseaudio )
Comment by Samantha McVey (samcv) - Saturday, 11 June 2016, 03:36 GMT
Gerry,
Is this still an issue you are seeing in the latest version of VLC? Please update me on the status of this, thanks.
Comment by Gerry Kessler (renegat) - Friday, 16 December 2016, 07:28 GMT
The issue persists with vlc 2.2.4-5 and also affects Broadwell-U Audio Controller (NUC5I5RYB)
Comment by Levente Polyak (anthraxx) - Thursday, 05 October 2017, 12:32 GMT
Is this still an issue? If so, please report it upstream as i don't see anything packaging related. When doing so, please post the upstream bug ticket here

Loading...