Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 622830

Summary: >=media-video/mpv-0.25.0[-libav] - no working audio
Product: Gentoo Linux Reporter: N. Andrew Walsh <n.andrew.walsh>
Component: Current packagesAssignee: Coacher <itumaykin+gentoo>
Status: RESOLVED UPSTREAM    
Severity: normal CC: media-video, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 617608    
Attachments: Travis the owl demonstrates his move (and lack of audio)
backend (mpv) log
frontend (smplayer) log

Description N. Andrew Walsh 2017-06-27 12:52:31 UTC
I've followed along with mpv updates as they are released, installing the following since last August: 

media-video/mpv-0.19.0, media-video/mpv-0.20.0,  media-video/mpv-0.21.0, media-video/mpv-0.22.0, media-video/mpv-0.22.0-r1, media-video/mpv-0.23.0, media-video/mpv-0.23.0-r1, media-video/mpv-0.24.0.

All of these have worked fine (for me, at least), and all have been pulled from the tree with new releases.

Now, since mpv-0.25.0 was released, I have no audio. 

Steps to reproduce:
1. USE="-libav" in make.conf or package.use or whatever
2. Update mpv to 0.25.0 (or the more recent 0.25.0-r1)
3. note lack of audio.

masking 0.25* in package.mask downgrades me to 0.18.0-r1, which has working audio. 

Package-relevant settings:

 $ emerge -pv mpv

[ebuild   R    ] media-video/mpv-0.25.0-r1::gentoo  USE="X alsa cli dvd egl encode iconv jack jpeg libass lua openal opengl uchardet vaapi vdpau xv (-aqua) -archive -bluray -cdda (-coreaudio) -cplugins -cuda -doc -drm -dvb -gbm -lcms -libav -libcaca -libmpv -luajit -oss -pulseaudio (-raspberry-pi) -rubberband -samba -sdl (-selinux) {-test} -tools -v4l -vf-dlopen -wayland -zsh-completion" CPU_FLAGS_X86="-sse4_1" PYTHON_TARGETS="python2_7 python3_5 -python3_4" 0 KiB

after masking 0.25*:

 $ emerge -pv mpv

[ebuild     UD ] media-video/mpv-0.18.0-r1::gentoo [0.25.0-r1::gentoo] USE="X alsa cli dvd egl enca%* encode iconv jack jpeg libass openal opengl vaapi vdpau xscreensaver%* xv (-aqua) -archive -bluray -cdda (-coreaudio) -doc -drm -dvb -gbm -lcms -libav -libcaca -libguess% -libmpv -lua* -luajit -oss -pulseaudio (-raspberry-pi) -rubberband -samba -sdl (-selinux) {-test} -uchardet* -v4l -vf-dlopen -wayland -xinerama% -zsh-completion (-cplugins%) (-cuda%) (-tools%)" CPU_FLAGS_X86="(-sse4_1%)" PYTHON_TARGETS="(-python2_7%*) (-python3_4%) (-python3_5%*)" 0 KiB

 # emerge --info
Portage 2.3.6 (python 3.6.1-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.24-r2, 4.11.6-gentoo x86_64)
=================================================================
System uname: Linux-4.11.6-gentoo-x86_64-AMD_FX-tm-9590_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:    32911400 total,   5325092 free
KiB Swap:    2929668 total,   2929668 free
Timestamp of repository gentoo: Sun, 18 Jun 2017 16:51:58 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.27.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo, 2.28-r2::gentoo
sys-devel/gcc:            5.3.0::gentoo, 5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r2::gentoo
Repositories:

gentoo
    location: /var/portage/repos
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

emc
    location: /var/lib/layman/emc
    masters: gentoo
    priority: 50

farmboy0
    location: /var/portage/repos/farmboy0
    masters: gentoo
    priority: 50

jelte
    location: /var/lib/layman/jelte
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

rebutia
    location: /var/lib/layman/rebutia
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/rebutia.git
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/lib/layman/stefantalpalaru
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 Mendeley-EULA Google-TOS OPERA-2014"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=bdver2 -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
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.mirror.dkm.cz/pub/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ ftp://gentoo.mirror.web4u.cz/ ftp://ftp.klid.dk/gentoo/ http://mirror.uni-c.dk/pub/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://mirror.netcologne.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo ftp://gentoo.inf.elte.hu/ http://gentoo.inf.elte.hu/ http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.df.lth.se/pub/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.kiev.ua/ftp/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X Xaw3d a52 aac acl acpi aim alsa amd64 apm audiofile bash-completion berkdb bzip2 cairo cddb cdinstall cdparanoia cdr cli cracklib crypt css curl curlwrappers cxx dbus directfb dri dvd dvdr encode fbcon ffmpeg fftw firefox flac fortran ftp gdbm geoip gif gimp glut graphite gstreamer gtk hddtemp iconv icq ieee1394 imagemagick imap imlib ipv6 jack java javascript joystick jpeg kde kde4 lame latex ldap libsamplerate libwww lm_sensors mad matroska minimal mmx modules motif mp3 mpeg mplayer multilib ncurses nls nptl nsplugin offensive ogg openal opengl openmp openssl oscar pam pcre pdf perl png policykit posix python qt5 quicktime raw readline real rss scanner seccomp semantic-desktop session sndfile sockets speex spell ssl suid svg symlink syslog tcl tcpd tetex theora threads tidy tiff tk translucency truetype udev unicode usb vaapi vdpau videos vorbis win32codecs wmf wxwindows x264 xattr xcomposite xetex xine xml xpm xscreensaver xulrunner xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel usb-audio" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en-US de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_US.utf8 de de_DE de_DE.utf8" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_6 python3_5 python2_7" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Coacher 2017-06-27 12:56:38 UTC
Please attach a small example file that causes this issue and the output of `mpv -v <your_example_file.here>` command.
Comment 2 Coacher 2017-07-01 17:21:41 UTC
Andrew, please provide the requested info. Missing audio is easy to notice, but you seem to be the only one affected. It looks like this problem is specific to your system.
Comment 3 N. Andrew Walsh 2017-07-03 03:55:29 UTC
Can do, but it'll have to wait until after the 7th: I'm on the road right now and away from my desktop until then. Please don't regard a lack of reply as disinterest. Thanks for your help!
Comment 4 Coacher 2017-07-13 08:09:05 UTC
Ping
Comment 5 N. Andrew Walsh 2017-07-13 09:52:23 UTC
d'oh, thanks for the reminder (had to give a lecture last night, was a bit distracted). Anyway, I'm attaching a short video file that, on my setup (~amd64, using smplayer as a frontend) mpv-0.25* does not play audio, but mpv-0.18 does.

I see nothing in the logs, nor any console output.

Thanks for the help.
Comment 6 N. Andrew Walsh 2017-07-13 09:53:27 UTC
Created attachment 483964 [details]
Travis the owl demonstrates his move (and lack of audio)
Comment 7 N. Andrew Walsh 2017-07-13 09:57:35 UTC
grrrr … 

UPDATE: running 'mpv travis\ werk\ it.mp4' from the console has audio, so this is not mpv. Something's wrong with how smplayer interacts with mpv (different between the two versions) that is causing audio to fail.

Drat. Now I'm stuck :(
Comment 8 Coacher 2017-07-14 12:02:13 UTC
(In reply to N. Andrew Walsh from comment #7)
> grrrr … 
> 
> UPDATE: running 'mpv travis\ werk\ it.mp4' from the console has audio, so
> this is not mpv.
Ok, mpv here also plays your video without a problem.

> Something's wrong with how smplayer interacts with mpv
> (different between the two versions) that is causing audio to fail.
I have smplayer-16.11.0 with mpv backend and your video plays fine (with audio).
Please attach smplayer log (Ctrl+S) and backend log (Ctrl+M) when playing this video in smplayer. It could help.

P.S. Owl is very cute.
Comment 9 N. Andrew Walsh 2017-07-14 12:50:14 UTC
Created attachment 484334 [details]
backend (mpv) log
Comment 10 N. Andrew Walsh 2017-07-14 12:50:37 UTC
Created attachment 484336 [details]
frontend (smplayer) log
Comment 11 N. Andrew Walsh 2017-07-14 12:58:06 UTC
logs are attached
Comment 12 Coacher 2017-07-14 17:21:40 UTC
Here's your problem (from backend log):
[drc] libavfilter filter 'drc' not found!
Couldn't create or open audio filter 'drc'
Error at audio filter chain pre-init!
Audio: no audio

The filter was removed in this commit:
https://github.com/mpv-player/mpv/commit/222899fbbe523320e66ae1600fabe45b58d48686
Commit message also has instructions how to replace it.
If you want it restored, please ask upstream directly.

Due to a very dynamic nature of mpv you should look through changelogs (installed automatically) after mpv update if you use ANY additional options.
I try to cover all important changes in default configuration via postinst messages. Thank you for understanding.
Comment 13 N. Andrew Walsh 2017-07-14 18:00:13 UTC
adding '--af=lavfi=[acompressor]' to the Options to pass to mpv in the Advanced menu restored audio for me.

Thanks for clarifying. I'm curious how I ended up adding the 'drc' option in the first place, but no matter: it's fixed. Cheers.