Failed to import mp4 through FFMPEG

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
jpeterj
Posts: 6
Joined: Fri Jul 19, 2013 6:34 am
Operating System: Please select

Failed to import mp4 through FFMPEG

Post by jpeterj » Thu Sep 05, 2013 8:50 pm

I've done a clean install of a PC and cannot get Audacity (v2.0.3) to import m4a files, despite having FFMPEG installed.

The log says
21:22:04: File name is /home/peter/test-file.m4a
21:22:04: Mime type is *
21:22:04: Opening with libav
21:22:04: Error: FFmpeg : av_find_stream_info() failed for file /home/peter/test-file.m4a
21:22:04: Opening with libsndfile
21:22:04: Opening with liboggvorbis
21:22:04: Opening with libflac
21:22:04: Opening with lof
21:22:04: Error: Importer::Import: Opening failed.
I cannot find anything substantive googling this particular error. Have re-installed FFMPEG, just for fun...

Any thoughts?

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Failed to import mp4 through FFMPEG

Post by kozikowski » Thu Sep 05, 2013 10:20 pm

Where did the m4a come from and what assurances do you have that it is a valid m4a?

Koz

jpeterj
Posts: 6
Joined: Fri Jul 19, 2013 6:34 am
Operating System: Please select

Re: Failed to import mp4 through FFMPEG

Post by jpeterj » Fri Sep 06, 2013 9:01 pm

A good question - I don't have any assurances.
So I put the previous hard drive back into the laptop - Ubuntu 12.04 with Audacity 2.0.0 - and successfully opened, edited and exported to MP3 that same file.

The clean install is running SolydK. Both Debian based Linux. I'm assuming that there is a config somewhere that I need to tweak...

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Failed to import mp4 through FFMPEG

Post by kozikowski » Sat Sep 07, 2013 10:09 pm

Now you need one of the linux elves. I'm out. Koz

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Failed to import mp4 through FFMPEG

Post by steve » Sun Sep 08, 2013 4:44 am

It looks as if the build of FFmpeg on your SolydK machine does not support m4a.
Some distributions do not include support for restricted formats by default. You may need to enable an additional repository to get software that supports restricted format, and then re-install FFmpeg, or you may need to build FFmpeg from the source code.

To check if m4a is supported by FFmpeg, open a Terminal window and enter:

Code: Select all

ffmpeg -formats
This will print out a list of supported formats. Look to see if "mp4" and "aac" are in the list.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jpeterj
Posts: 6
Joined: Fri Jul 19, 2013 6:34 am
Operating System: Please select

Re: Failed to import mp4 through FFMPEG

Post by jpeterj » Mon Sep 09, 2013 6:53 am

Thanks of that - you've hit the problem. m4a on this install only supports encoding (interestingly aac is only supported for decoding). Now I know where my problem is.

Thanks for the support

Post Reply