Page 1 of 1

Failed to import mp4 through FFMPEG

Posted: Thu Sep 05, 2013 8:50 pm
by jpeterj
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?

Re: Failed to import mp4 through FFMPEG

Posted: Thu Sep 05, 2013 10:20 pm
by kozikowski
Where did the m4a come from and what assurances do you have that it is a valid m4a?

Koz

Re: Failed to import mp4 through FFMPEG

Posted: Fri Sep 06, 2013 9:01 pm
by jpeterj
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...

Re: Failed to import mp4 through FFMPEG

Posted: Sat Sep 07, 2013 10:09 pm
by kozikowski
Now you need one of the linux elves. I'm out. Koz

Re: Failed to import mp4 through FFMPEG

Posted: Sun Sep 08, 2013 4:44 am
by steve
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.

Re: Failed to import mp4 through FFMPEG

Posted: Mon Sep 09, 2013 6:53 am
by jpeterj
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