Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
m4a works in VLC but not Clementine
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Sun Feb 05, 2017 3:39 pm    Post subject: m4a works in VLC but not Clementine Reply with quote

Hi

When attempting to play a .m4a file in Clementine I get a popup:

Your GStreamer installation is missing a plug-in

The file plays fine in VLC.

Others (on other distros) have had same problem, solution was to install media-plugins/gst-plugins-ffmpeg

But that was already installed. I re-installed anyway, and also Clementine, but still same problem.

Is there a magic spell available somewhere to make this work? I'm pretty sure it worked in the past, but have not been listening to music for last few months.

Yes I have aac in my USE flags.

Code:

trooper ian # gst-inspect-1.0 | grep aac
typefindfunctions: audio/aac: aac, adts, adif, loas
audioparsers:  aacparse: AAC audio stream parser
libav:  avmux_adts: libav ADTS AAC (Advanced Audio Coding) muxer (not recommended, use aacparse instead)
faac:  faac: AAC audio encoder


Code:

trooper ian # gst-inspect-1.0 | grep m4a
typefindfunctions: audio/x-m4a: m4a


Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sun Feb 05, 2017 5:26 pm    Post subject: Reply with quote

According to the GStreamer Web site, m4a (MPEG-4 audio) files are decoded by the FAAD (Freeware Advanced Audio Decoder), which is included in the GStreamer Bad Plug-in (gst-plugins-bad):

https://gstreamer.freedesktop.org/documentation/plugins.html

Quote:
Element......Description..............................Plugin.....Module
faad.............Free MPEG-2/4 AAC decoder........faad........gst-plugins-bad

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-plugin-faad.html

Clementine on my laptop plays m4a files, and I have that gstreamer plug-in installed but also gst-plugins-faad, so try installing gst-plugins-bad and/or gst-plugins-faad:

Code:
$ eix -I --only-names gst-plugins
media-libs/gst-plugins-bad
media-libs/gst-plugins-base
media-libs/gst-plugins-good
media-libs/gst-plugins-ugly
media-plugins/gst-plugins-a52dec
media-plugins/gst-plugins-cdparanoia
media-plugins/gst-plugins-dts
media-plugins/gst-plugins-dv
media-plugins/gst-plugins-dvb
media-plugins/gst-plugins-dvdread
media-plugins/gst-plugins-faad
media-plugins/gst-plugins-flac
media-plugins/gst-plugins-jack
media-plugins/gst-plugins-lame
media-plugins/gst-plugins-libav
media-plugins/gst-plugins-libnice
media-plugins/gst-plugins-mad
media-plugins/gst-plugins-meta
media-plugins/gst-plugins-mpeg2dec
media-plugins/gst-plugins-pulse
media-plugins/gst-plugins-resindvd
media-plugins/gst-plugins-soup
media-plugins/gst-plugins-taglib
media-plugins/gst-plugins-v4l2
media-plugins/gst-plugins-x264

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog


Last edited by Fitzcarraldo on Sun Feb 05, 2017 5:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Sun Feb 05, 2017 5:34 pm    Post subject: Reply with quote

Thanks, but looks like I already have both installed:

Code:

trooper ian # eix gst-plugins-bad
[I] media-libs/gst-plugins-bad
     Available versions: 
     (0.10) 0.10.23-r3 0.10.23-r4
     (1.0)  1.8.3-r1
       {X bzip2 egl gles2 gtk +introspection nls opengl +orc test vcd vnc wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.10.23-r4(0.10)(08:29:47 24/11/2016)(nls orc ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32") 1.8.3-r1(1.0)(08:26:58 24/11/2016)(X bzip2 gtk introspection nls opengl orc vcd -egl -gles2 -test -vnc -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://gstreamer.freedesktop.org/
     Description:         Less plugins for GStreamer


trooper ian # eix gst-plugins-faad
[I] media-plugins/gst-plugins-faad
     Available versions: 
     (0.10) 0.10.23-r2^t
     (1.0)  1.8.3^t
       {ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.10.23-r2(0.10)^t(09:22:10 22/06/2015)(ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32") 1.8.3(1.0)^t(00:18:08 02/10/2016)(ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://gstreamer.freedesktop.org/
     Description:         AAC audio decoder plugin.



I did see references to -bad and -good on the net but thought those only applied to lesser distros than Gentoo.. :-)

Do I need to somehow use the versions from the new slot?
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sun Feb 05, 2017 5:38 pm    Post subject: Reply with quote

Could be. Here's what I have got installed (both Slot 1.0):

Code:
fitzcarraldo@clevow230ss ~ $ eix -I gst-plugins-bad
[I] media-libs/gst-plugins-bad
     Available versions: 
     (0.10) 0.10.23-r3 0.10.23-r4
     (1.0)  1.8.3-r1
       {X bzip2 egl gles2 gtk +introspection nls opengl +orc test vcd vnc wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  1.8.3-r1(1.0)(23:26:38 21/11/16)(X bzip2 gtk introspection nls opengl orc -egl -gles2 -test -vcd -vnc -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            https://gstreamer.freedesktop.org/
     Description:         Less plugins for GStreamer

fitzcarraldo@clevow230ss ~ $ eix -I gst-plugins-faad
[I] media-plugins/gst-plugins-faad
     Available versions: 
     (0.10) 0.10.23-r2^t
     (1.0)  1.8.3^t
       {ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  1.8.3(1.0)^t(00:45:54 31/12/16)(ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            https://gstreamer.freedesktop.org/
     Description:         AAC audio decoder plugin.

fitzcarraldo@clevow230ss ~ $ eix -I clementine
[I] media-sound/clementine
     Available versions:  1.3.1-r5 **9999 {amazoncloud box cdda +dbus debug dropbox googledrive ipod lastfm mms moodbar mtp projectm pulseaudio seafile skydrive test +udisks udisks_legacy vkontakte wiimote LINGUAS="af ar be bg bn br bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gl he he_IL hi hr hu hy ia id is it ja ka kk ko lt lv mr ms my nb nl oc pa pl pt pt_BR ro ru si_LK sk sl sr sr@latin sv te tr tr_TR uk uz vi zh_CN zh_TW"}
     Installed versions:  1.3.1-r5(17:38:15 27/01/17)(cdda dbus ipod pulseaudio udisks -amazoncloud -box -debug -dropbox -googledrive -lastfm -mms -moodbar -mtp -projectm -skydrive -test -vkontakte -wiimote LINGUAS="en_GB pt_BR -af -ar -be -bg -bn -br -bs -ca -cs -cy -da -de -el -en_CA -eo -es -et -eu -fa -fi -fr -ga -gl -he -he_IL -hi -hr -hu -hy -ia -id -is -it -ja -ka -kk -ko -lt -lv -mr -ms -my -nb -nl -oc -pa -pl -pt -ro -ru -si_LK -sk -sl -sr -sr@latin -sv -te -tr -tr_TR -uk -uz -vi -zh_CN -zh_TW")
     Homepage:            http://www.clementine-player.org https://github.com/clementine-player/Clementine
     Description:         A modern music player and library organizer based on Amarok 1.4 and Qt4

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Sun Feb 05, 2017 5:41 pm    Post subject: Reply with quote

Is this possibly related to the embedded cover art in the file? I notice that I don't have the jpg or png gstreamer plugins installed.

Nope, that makes no difference.
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sun Feb 05, 2017 5:50 pm    Post subject: Reply with quote

You should be able to play a .m4a file using GStreamer directly from the command line:

Code:
$ gst-launch-1.0 filesrc location=THE_BEACH_BOYS_-_SMiLE_2011.m4a ! qtdemux ! faad ! audioconvert ! audioresample ! autoaudiosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstPulseSinkClock

That works for me. Does that work in your case?
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sun Feb 05, 2017 6:13 pm    Post subject: Reply with quote

I have GStreamer installed in both slots:

Code:
fitzcarraldo@clevow230ss ~ $ eix -I media-libs/gstreamer
[I] media-libs/gstreamer
     Available versions: 
     (0.10) 0.10.36-r2
     (1.0)  1.8.3
       {+caps +introspection nls +orc test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.10.36-r2(0.10)(04:48:58 22/04/15)(introspection nls orc -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32") 1.8.3(1.0)(16:13:25 01/10/16)(caps introspection nls orc -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            https://gstreamer.freedesktop.org/
     Description:         Open source multimedia framework

so I have two registry.x86_64.bin files:

Code:
fitzcarraldo@clevow230ss ~ $ locate registry.x86_64.bin
/home/fitzcarraldo/.cache/gstreamer-1.0/registry.x86_64.bin
/home/fitzcarraldo/.gstreamer-0.10/registry.x86_64.bin
/home/fitzcarraldo/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/.gstreamer-0.10/registry.x86_64.bin

You could try renaming each registry.x86_64.bin file so that GStreamer regenerates them.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Sun Feb 05, 2017 6:43 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
You should be able to play a .m4a file using GStreamer directly from the command line:

Code:
$ gst-launch-1.0 filesrc location=THE_BEACH_BOYS_-_SMiLE_2011.m4a ! qtdemux ! faad ! audioconvert ! audioresample ! autoaudiosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstPulseSinkClock

That works for me. Does that work in your case?


Code:

$ gst-launch-1.0 filesrc location='99 Louis Armstrong - What a Wonderful World.m4a' ! qtdemux ! faad ! audioconvert ! audioresample ! autoaudiosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
WARNING: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Delayed linking failed.
Additional debug info:
/var/tmp/portage/media-libs/gstreamer-1.8.3/work/gstreamer-1.8.3/gst/parse/grammar.y(506): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
failed delayed linking some pad of GstQTDemux named qtdemux0 to some pad of GstFaad named faad0
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: GStreamer encountered a general stream error.
Additional debug info:
/var/tmp/portage/media-libs/gst-plugins-good-1.8.3/work/gst-plugins-good-1.8.3/gst/isomp4/qtdemux.c(5520): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
streaming stopped, reason not-linked
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...


So I tried a different file...

Code:

gst-launch-1.0 filesrc location='13 Sandy.m4a' ! qtdemux ! faad ! audioconvert ! audioresample ! autoaudiosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstPulseSinkClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:12.574853591
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...


That worked fine. So possibly something in the way some files are encoded. Not sure how to get around that... perhaps should just convert them to mp3 or ogg.

thanks for your help.

Cheers, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sun Feb 05, 2017 10:13 pm    Post subject: Reply with quote

You could use the gst-discoverer-1.0 command to check if there is anything different about the m4a files that you cannot play. The following m4a files play on my laptop:

Code:
$ /usr/bin/gst-discoverer-1.0 THE_BEACH_BOYS_-_SMiLE_2011.m4a
Analyzing file:///home//Music/m4a/THE_BEACH_BOYS_-_SMiLE_2011.m4a
Done discovering file:///home/fitzcarraldo/Music/m4a/THE_BEACH_BOYS_-_SMiLE_2011.m4a

Topology:
  container: Quicktime
    audio: MPEG-4 AAC

Properties:
  Duration: 0:48:12.255000000
  Seekable: yes
  Tags:
      audio codec: MPEG-4 AAC audio
      maximum bitrate: 125588
      bitrate: 125588
      encoder: Lavf56.40.101
      container format: ISO MP4/M4A

$ /usr/bin/gst-discoverer-1.0 BBC_Proms_2016_-_Prom_52_The_São_Paulo_Symphony_and_Jazz_Symphony_Orchestras_b07pjcs7_original.m4a
Analyzing file:///home/fitzcarraldo/Music/m4a/BBC_Proms_2016_-_Prom_52_The_S%C3%A3o_Paulo_Symphony_and_Jazz_Symphony_Orchestras_b07pjcs7_original.m4a
Done discovering file:///home/fitzcarraldo/Music/m4a/BBC_Proms_2016_-_Prom_52_The_S%C3%A3o_Paulo_Symphony_and_Jazz_Symphony_Orchestras_b07pjcs7_original.m4a

Topology:
  container: MPEG-4 AAC
    audio: MPEG-4 AAC

Properties:
  Duration: 1:18:17.600000000
  Seekable: yes
  Tags:
      audio codec: MPEG-4 AAC audio
      maximum bitrate: 319999
      bitrate: 319999
      language code: en
      encoder: Lavf56.40.101
      container format: ISO MP4/M4A

$ /usr/bin/gst-discoverer-1.0 04\ ~エピローグ~まじめに愛して!.m4a
Analyzing file:///home/fitzcarraldo/Music/m4a/04%20%EF%BD%9E%E3%82%A8%E3%83%94%E3%83%AD%E3%83%BC%E3%82%B0%EF%BD%9E%E3%81%BE%E3%81%98%E3%82%81%E3%81%AB%E6%84%9B%E3%81%97%E3%81%A6!.m4a
Done discovering file:///home/fitzcarraldo/Music/m4a/04%20%EF%BD%9E%E3%82%A8%E3%83%94%E3%83%AD%E3%83%BC%E3%82%B0%EF%BD%9E%E3%81%BE%E3%81%98%E3%82%81%E3%81%AB%E6%84%9B%E3%81%97%E3%81%A6!.m4a

Topology:
  container: MPEG-4 AAC
    audio: MPEG-4 AAC

Properties:
  Duration: 0:04:59.165895691
  Seekable: yes
  Tags:
      audio codec: MPEG-4 AAC audio
      maximum bitrate: 128000
      bitrate: 128000
      datetime: 2006-09-24T18:47:32Z
      title: ~エピローグ~まじめに愛して!
      artist: カヒミ・カリィ
      album: LEUR L'EXISTENCE「彼ら」の存在
      date: 1995-01-01
      encoder: iTunes v6.0.5, QuickTime 6.5.3
      track number: 4
      track count: 4
      disc number: 1
      disc count: 1
      genre: Alternative & Punk
      QT atom: buffer of 25 bytes
      container format: ISO MP4/M4A

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum