[SOLVED]cannot play extracted aac file

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED]cannot play extracted aac file

Postby pythagorasmk » 2020-09-16 17:27

I have mp4 file with video and audio streams in it. I don't want the video track so I have extracted the aac track from mp4 file with this command:
Code: Select all
ffmpeg -i input.mp4 -vn -codec copy output.aac

but the aac file is not playable by Clementine. MPV does not have that problem. I have to do some corrections in the command above, so the aac file can be playable in Clementine, but I don't know what corrections do I need. Please help.
Last edited by pythagorasmk on 2020-09-18 02:50, edited 1 time in total.
pythagorasmk
 
Posts: 102
Joined: 2015-01-18 03:40

Re: cannot play extracted aac file

Postby stevepusser » 2020-09-16 20:20

Can Clementine play other aac-encoded files, or are you perhaps missing a gstreamer1.0 set of plugins for the aac codec?

Do you get any errors if you start clementine from the command line and try to play that file?
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12083
Joined: 2009-10-06 05:53

Re: cannot play extracted aac file

Postby pythagorasmk » 2020-09-17 01:04

stevepusser wrote:Can Clementine play other aac-encoded files, or are you perhaps missing a gstreamer1.0 set of plugins for the aac codec?

No Clementine cannot play other aac files. I don't know in which package are gstreamer1.0 plugins for aac codec.

Do you get any errors if you start clementine from the command line and try to play that file?

Yes, here is the output of clementine:
03:49:58.365 ERROR Song:701 File "/home/barney/downloads/sample1.aac" is not recognized by TagLib as a valid audio file.
pythagorasmk
 
Posts: 102
Joined: 2015-01-18 03:40

Re: cannot play extracted aac file

Postby sgosnell » 2020-09-17 01:24

I would try faad first. If that won't do it, it won't hurt to install the good, the bad, and the ugly.
Take my advice, I'm not using it.
sgosnell
 
Posts: 864
Joined: 2011-03-14 01:49

Re: cannot play extracted aac file

Postby pythagorasmk » 2020-09-17 01:42

I have installed faad, good, bad and ugly; but nothing have changed.
pythagorasmk
 
Posts: 102
Joined: 2015-01-18 03:40

Re: cannot play extracted aac file

Postby sgosnell » 2020-09-17 15:23

And rebooted after installation? If so, I don't know. I don't use Clementine, but it does advertise the ability to play .aac.
Take my advice, I'm not using it.
sgosnell
 
Posts: 864
Joined: 2011-03-14 01:49

Re: cannot play extracted aac file

Postby stevepusser » 2020-09-17 17:39

pythagorasmk wrote:I have installed faad, good, bad and ugly; but nothing have changed.


It pulls in the base, good, and ugly plugins as hard dependencies, so only gstreamer1.0-plugins-bad need to be added manually. It provides libgstfaad.so, which is supposed to play the aac codec, but you're right--I have it installed, but the app doesn't recognize the format, nor does its Strawberry fork. :(

Since we ship Clementine by default with MX Linux, I'm surprised it hasn't come up there. I'll raise the issue there, but the workaround for now is to convert the files to another format that's supported (and better anyway), such as ogg or opus.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12083
Joined: 2009-10-06 05:53

Re: cannot play extracted aac file

Postby stevepusser » 2020-09-17 18:11

A backported version of Clementine from upstream Debian also refuses to play aac files, with the addition of an error dialog that says it's not recognized as a valid aac file. The same goes for a Strawberry 0.7.2 AppImage.

The issue doesn't seem to appear as a bug in Debian, though.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12083
Joined: 2009-10-06 05:53

Re: cannot play extracted aac file

Postby pythagorasmk » 2020-09-17 18:41

stevepusser wrote:A backported version of Clementine from upstream Debian also refuses to play aac files, with the addition of an error dialog that says it's not recognized as a valid aac file. The same goes for a Strawberry 0.7.2 AppImage.

The issue doesn't seem to appear as a bug in Debian, though.

Can You report a bug in Debian bug tracking system. That would be nice.
pythagorasmk
 
Posts: 102
Joined: 2015-01-18 03:40

Re: cannot play extracted aac file

Postby stevepusser » 2020-09-17 21:03

Tim on the MX forum found the solution. Clementine uses taglib to recognize file formats, and it assumes aac files are in an obsolete format. Just rename the .aac file to .m4a and it should work.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12083
Joined: 2009-10-06 05:53

Re: cannot play extracted aac file

Postby pythagorasmk » 2020-09-17 21:43

stevepusser wrote:Tim on the MX forum found the solution. Clementine uses taglib to recognize file formats, and it assumes aac files are in an obsolete format. Just rename the .aac file to .m4a and it should work.

This solution worked for me. Thanks.
pythagorasmk
 
Posts: 102
Joined: 2015-01-18 03:40

Re: cannot play extracted aac file

Postby stevepusser » 2020-09-18 00:31

Please edit the title of your first post in this thread and add " [SOLVED] Clementine cannot play..." etc. if that's the case. Thanks!
This will help others searching for a solution to the same issue.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12083
Joined: 2009-10-06 05:53


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable