ALSA audio output in VLC 2.2.1 is completely broken because of a bug in VLC. The patch in the URL fixes this issue. I am not able to find any upstream bug report, however there is debian bug #801448 where the fix is mentioned. $ vlc -vvv hdhr.mkv [...] [00000000026b79b8] core audio output debug: inserting 467 zeroes [00000000026b79b8] core audio output debug: restart requested (2) [00000000026b79b8] core audio output debug: restarting output... [00000000026b79b8] alsa audio output error: cannot open ALSA device "iec958:CARD=C920,DEV=0": No such file or directory [00000000026b79b8] core audio output error: module not functional [...]
I've built VLC with alsa enabled and pulseaudio disabled, set my preferences to "ALSA audio output", and my device to, "HDA Intel PCH, ALC269VC Analog Default Audio Device" and sound is working fine. I'll attach my debug output in the next post. Can you provide more info on how you're triggering the issue? Are you starting VLC then changing the device through the QT4 GUI then running into the issue? Also, please post the output of "emerge --info vlc". Thanks, Nick
Created attachment 419870 [details] alsa_debug.out This is what I see when playing audio via ALSA -- sound works fine, no errors. The patch is very specific (i.e. all it seems to be doing is changing behavior on menu selection for the QT4 menu only) so I want to understand what's going on and if it's a wider issue before bringing it in.
(In reply to Nick Andrade from comment #1) > I've built VLC with alsa enabled and pulseaudio disabled, set my preferences to "ALSA audio output", and my device to, "HDA Intel PCH, ALC269VC Analog Default Audio Device" and sound is working fine. Perhaps, as mentioned in the Debian bug this is KDE-specific (no idea how that would work, but maybe). I am using Plasma 5. > Can you provide more info on how you're triggering the issue? Just running vlc. $ vlc filename.ext > Are you starting VLC then changing the device through the QT4 GUI then running into the issue? Nope, just running vlc. Not doing anything other than that. > Also, please post the output of "emerge --info vlc". Portage 2.2.26 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.3.0, glibc-2.22-r1, 4.3.0-ck.0 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.3.0-ck.0-x86_64-Intel-R-_Core-TM-_i7-4771_CPU_@_3.50GHz-with-gentoo-2.2 KiB Mem: 8127492 total, 5728172 free KiB Swap: 4194300 total, 4194300 free Timestamp of repository gentoo: Sat, 19 Dec 2015 17:00:01 +0000 sh bash 4.3_p42 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] ccache version 3.2.4 [disabled] app-shells/bash: 4.3_p42::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.11-r1::gentoo, 3.4.3-r6::gentoo dev-util/ccache: 3.2.4::gentoo dev-util/cmake: 3.4.1::gentoo dev-util/pkgconfig: 0.29::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.19.1::gentoo sys-apps/sandbox: 2.10::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.4_p6-r2::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r1::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.3.0::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 crossdev location: /usr/local/overlays/crossdev masters: gentoo hawkthorne location: /usr/local/overlays/hawkthorne masters: gentoo hdhomerun location: /usr/local/overlays/hdhomerun masters: gentoo kde location: /usr/local/overlays/kde sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/kde.git masters: gentoo local location: /usr/local/portage masters: gentoo mrueg location: /usr/local/overlays/mrueg sync-type: git sync-uri: https://anongit.gentoo.org/git/dev/mrueg.git masters: gentoo obs-studio-overlay location: /usr/local/overlays/obs sync-type: git sync-uri: https://github.com/saintdev/obs-studio-overlay.git masters: gentoo partclone location: /usr/local/overlays/partclone masters: gentoo sage-on-gentoo location: /usr/local/overlays/sage-on-gentoo masters: gentoo steam-overlay location: /usr/local/overlays/steam-overlay sync-type: git sync-uri: https://github.com/anyc/steam-overlay.git masters: gentoo Installed sets: @qt5-essentials ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--nospinner --keep-going" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.tds.net/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aacs acl acpi alsa amd64 amr amrnb amrwb avahi avx avx2 bash-completion bdplus berkdb bluetooth bluray bzip2 cairo caps cdda cdr cec cli consolekit cracklib crypt cxx dbus declarative dirac dri dts dvb dvd dvdr emboss encode exif fam fbcondecor ffmpeg fftw flac fltk fortran gdbm gif git glamor gphoto2 gpm gstreamer gtk htmlhandbook iconv ieee1394 inotify ios ipv6 java jpeg kde kipi kvm lapack lcms ldap libass libav libnotify libv4l2 lirc live lm_sensors lzma lzo mad matroska mdadm mmap mmx mmxext mng modules mp3 mp4 mpeg mtp multilib musicbrainz mythtv ncurses nls nptl ntfs ogg openexr opengl openmp openssl opus pam pango pcre pdf phonon plasma png policykit ppds qml qt qt3support qt4 qt5 qwt rar readline real redland rtmp samba schroedinger sdl seccomp semantic-desktop session spell sqlite sqlite3 srt sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification subversion svg tcpd theora threads thumbnail tiff truetype udev udf udisks unicode upower usb v4l vaapi vdpau vnc vorbis vpx webkit widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xulrunner xv xvid xvmc zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" LIRC_DEVICES="inputlirc" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= media-video/vlc-2.2.1-r1::gentoo was built with the following: USE="X a52 alsa avcodec avformat bluray cdda dbus dts dvb dvbpsi dvd encode ffmpeg flac fontconfig gcrypt gnutls ieee1394 jpeg kde libass libav libnotify libsamplerate live lua matroska mp3 mpeg mtp ncurses ogg opengl opus png qt5 rtsp samba schroedinger sdl svg swscale theora truetype udev upnp v4l vaapi vdpau vnc vorbis vpx x264 xcb xml xv zeroconf -aalib (-altivec) -atmo (-audioqueue) -bidi -cddb -chromaprint -dc1394 -debug -directfb (-directx) (-dxva2) -faad -fdk -fluidsynth -gme -gnome -growl -httpd -jack -kate -libcaca -libtar -libtiger -linsys -lirc (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-media-library) -modplug -musepack (-neon) -omxil -opencv -optimisememory -postproc -projectm -pulseaudio -qt4 -rdp -run-as-root -sdl-image -sftp -shout -sid -skins -speex -taglib -test -tremor -twolame -vcdx -vlm -wma-fixed -x265 -zvbi" ABI_X86="64" CPU_FLAGS_X86="mmx sse" LDFLAGS="-Wl,-O1 -Wl,--as-needed -L/usr/lib64/sidplay/builders/"
Created attachment 419872 [details] Debug output before patch
Created attachment 419874 [details] Debug output after patch
Created attachment 419876 [details] Debug output before patch Oops, uploaded the wrong log.
Nathan, sorry for the delay in getting back to you on this. I checked and VLC-2.2.2 has the patch and is now in unstable. I can backport to 2.2.1-r1 if you'd like, but my recommendation would be to just go to 2.2.2. Let me know your thoughts.
(In reply to Nick Andrade from comment #7) > Nathan, sorry for the delay in getting back to you on this. I checked and > VLC-2.2.2 has the patch and is now in unstable. I can backport to 2.2.1-r1 > if you'd like, but my recommendation would be to just go to 2.2.2. Let me > know your thoughts. I noticed. Personally, I am on unstable so the bug is effectively closed for me. I figured it would be good to leave it open until 2.2.1 is patched or 2.2.2 makes it to stable.
vlc-2.2.4 is stable.