Can't open some videos with mpv or totem - reason: ffmpeg-libfdk_aac too new version

Hello,
since some time I cannot open some videos (I haven't found any pattern which ones) with mpv or totem. With mpv it simply won't open, with titem I get an empty totem window.
Just checked with command line:

  • ffplay works:
/tmp >>> ffplay *.mkv                                                          
ffplay version 4.0 Copyright (c) 2003-2018 the FFmpeg developers
  built with gcc 7.3.1 (GCC) 20180312
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-shared --enable-version3 --enable-omx --enable-libfdk_aac --enable-nonfree
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Input #0, matroska,webm, from 'How To Install Manjaro Linux 17.0-gucILqiPVfI.mkv':
  Metadata:
    COMPATIBLE_BRANDS: iso6avc1mp41
    MAJOR_BRAND     : dash
    MINOR_VERSION   : 0
    ENCODER         : Lavf58.12.100
  Duration: 00:02:16.22, start: -0.007000, bitrate: 940 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 1k tbn, 120 tbc (default)
    Metadata:
      HANDLER_NAME    : VideoHandler
      DURATION        : 00:02:16.200000000
    Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
    Metadata:
      DURATION        : 00:02:16.221000000
 117.60 A-V: -0.003 fd=   8 aq=   20KB vq=  533KB sq=    0B f=0/0
  • mpv gives:
/tmp >>> mpv *.mkv                                                             
mpv: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No such file or directory
  • totem gives:
/tmp >>> totem *.mkv                                                      [127]

(totem:10211): GStreamer-WARNING **: 01:02:59.504: Failed to load plugin '/usr/lib/gstreamer-1.0/libgstlibav.so': libavfilter.so.6: cannot open shared object file: No such file or directory
** Message: 01:02:59.572: Missing plugin: gstreamer|1.0|totem|H.264 (High Profile) decoder|decoder-video/x-h264, level=(string)4.2, profile=(string)high, interlace-mode=(string)mixed, colorimetry=(string)bt709, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8 (H.264 (High Profile) decoder)
** Message: 01:02:59.617: Automatic missing codec installation not supported (helper script missing)

This file is provided by ffmpeg and is present on my system:

pacman -Fs libavdevice.so.57
extra/ffmpeg 1:3.4.2-2
    usr/lib/libavdevice.so.57

is from gst-libav and seems present, but fails to load this:

which is also from ffmpeg:

pacman -Fs libavfilter.so.6
extra/ffmpeg 1:3.4.2-2
    usr/lib/libavfilter.so.6

So. you might want to reinstall or check ffmpeg

PS - just checked and mpv works fine here (kde - testing branch)

mpv *.mkv
Playing: *.mkv
 (+) Video --vid=1 (*) (h264 640x480 23.976fps)
 (+) Audio --aid=1 (*) (eac3 2ch 48000Hz)
     Subs  --sid=1 --slang=eng 'English' (subrip)
     Subs  --sid=2 --slang=swe 'Swedish' (subrip)
AO: [pulse] 48000Hz stereo 2ch float
VO: [opengl] 640x480 => 853x480 yuv420p
AV: 00:00:04 / 01:04:18 (0%) A-V:  0.000


Exiting... (Quit)
1 Like

Ok, I already started to guess that it is because I have

/tmp >>> pacman -Qi ffmpeg-libfdk_aac                                                                                                                                                        
Name            : ffmpeg-libfdk_aac
Version         : 1:4.0-1
Description     : Complete solution to record, convert and stream audio and video (Same as official package except with libfdk-aac support)
Architecture    : x86_64
URL             : http://ffmpeg.org/
Licenses        : GPL3  custom:libfdk-aac
Groups          : None
Provides        : libavcodec.so=58-64  libavdevice.so=58-64  libavfilter.so=7-64  libavformat.so=58-64  libavresample.so=4-64  libavutil.so=56-64  libpostproc.so=55-64
                  libswresample.so=3-64  libswscale.so=5-64  ffmpeg=4.0
Depends On      : alsa-lib  bzip2  fontconfig  fribidi  glibc  gmp  gnutls  gsm  jack  lame  libavc1394  libiec61883  libmodplug  libpulse  libraw1394  libsoxr  libssh  libtheora  libvdpau
                  libwebp  libx11  libxcb  libxml2  opencore-amr  openjpeg2  opus  sdl2  speex  v4l-utils  xz  zlib  libomxil-bellagio  libass.so=9-64  libbluray.so=2-64
                  libfreetype.so=6-64  libva-drm.so=2-64  libva.so=2-64  libva-x11.so=2-64  libvidstab.so=1.1-64  libvorbisenc.so=2-64  libvorbis.so=0-64  libvpx.so=5-64  libx264.so=152-64
                  libx265.so=151-64  libxvidcore.so=4-64  libfdk-aac
Optional Deps   : ladspa: LADSPA filters [installed]
Required By     : chromaprint  gst-libav  mpv  pipewire  winff
Optional For    : alsa-plugins  sway  youtube-dl
Conflicts With  : ffmpeg
Replaces        : None
Installed Size  : 28.71 MiB
Packager        : Unknown Packager
Build Date      : Fri 27 Apr 2018 08:50:35 PM CEST
Install Date    : Fri 27 Apr 2018 08:51:01 PM CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

I would guess so too.
You can double-check the files from the paths I provided above.
(I assume youve rebuilt it now too?)
Otherwise, I suppose you will have to wait or replace. :slightly_frowning_face:

..Or theres always trying dirty dirty symlinks. :woman_shrugging:

PS - noticed some versioning funniness happened recently in the aur comments.

It says
Provides : libavcodec.so=58-64 libavdevice.so=58-64 libavfilter.so=7-64
Rebuild wouldn't help then if I understand correctly. Wait for newer mpv and totem.
I'm ok with playing videos with ffplay for now.

oh right. yup. hacky symlinks or wait it is then. atleast its not a mystery anymore. :candle:

Yeah, I moved the topic to AUR category. And the issue is now documented if others get the same problem.
Thanks for help with collective thinking.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by