Can't import mp4 files avcodec decoder failed[SOLVED]

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at 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.
HelenWeirHypno
Posts: 12
Joined: Wed Jun 26, 2013 9:26 am
Operating System: Please select

Can't import mp4 files avcodec decoder failed[SOLVED]

Post by HelenWeirHypno » Wed Jun 26, 2013 9:32 am

Hi

I'm running version 2.0.3

I'm trying to import an mp4 file so that I can extract the music from it (first time I've tried it). When I try to drag it in, I get an Error Importing message that says it is an Advanced Audio Coding file and that Audacity cannot open this type of file and to convert it to WAV or AIFF.

I've tried it with a few other mp4s with no joy.

I've installed the FFmpeg library. The version it says in my preferences is F(52.64.2),C(52.72.2),U(50.15.1).

Can anyone suggest anything else please?

Thanks in advance :)

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

Re: Can't import mp4 files

Post by steve » Wed Jun 26, 2013 12:34 pm

Can you import this file? (It's just a 10 second beep)
http://easyspacepro.com/audacity/examples/testbeep.m4a
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

HelenWeirHypno
Posts: 12
Joined: Wed Jun 26, 2013 9:26 am
Operating System: Please select

Re: Can't import mp4 files

Post by HelenWeirHypno » Wed Jun 26, 2013 1:50 pm

steve wrote:Can you import this file? (It's just a 10 second beep)
http://easyspacepro.com/audacity/examples/testbeep.m4a
No, I can't. Same error message.

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

Re: Can't import mp4 files

Post by steve » Wed Jun 26, 2013 1:54 pm

Strange.
Where did you get FFMpeg from and how did you install it?
Also, please check the Audacity version number in "Help > About Audacity".
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Can't import mp4 files

Post by Gale Andrews » Wed Jun 26, 2013 1:56 pm

If this is still a problem could you do a couple of things.

1) download MediaInfo (get the version without installer) from http://mediainfo.sourceforge.net/en/Download/Windows then open the video file in that. Click View > Text then you can copy and paste here what it says.

2) Copy and paste the log from Audacity at Help > Show Log... after failing to import the video.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

HelenWeirHypno
Posts: 12
Joined: Wed Jun 26, 2013 9:26 am
Operating System: Please select

Re: Can't import mp4 files

Post by HelenWeirHypno » Wed Jun 26, 2013 1:58 pm

steve wrote:Strange.
Where did you get FFMpeg from and how did you install it?
Also, please check the Audacity version number in "Help > About Audacity".
I followed the instructions on here.

http://manual.audacityteam.org/man/FAQ: ... Ins#ffdown

Done it twice now, the first time I went to the download page linked and the second time I went to the alternative zip download link.

Audacity version 2.0.3

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Can't import mp4 files

Post by Gale Andrews » Wed Jun 26, 2013 2:00 pm

I was writing before the latest information.

Don't worry about MediaInfo for now but please post the Audacity log.



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

HelenWeirHypno
Posts: 12
Joined: Wed Jun 26, 2013 9:26 am
Operating System: Please select

Re: Can't import mp4 files

Post by HelenWeirHypno » Wed Jun 26, 2013 2:04 pm

Gale Andrews wrote:If this is still a problem could you do a couple of things.

2) Copy and paste the log from Audacity at Help > Show Log... after failing to import the video.
Here's the log:

14:49:59: File name is c:usershelenmusicmusicpossible sleep cd musictestbeep.m4a
14:49:59: Mime type is *
14:49:59: Opening with libav
14:49:59: Error: FFmpeg : avcodec_find_decoder() failed. Index[00], Codec[15002 - ]
14:49:59: Opening with libsndfile
14:49:59: Opening with liboggvorbis
14:49:59: Opening with libflac
14:49:59: Opening with lof
14:49:59: Error: Importer::Import: Opening failed.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Can't import mp4 files

Post by Gale Andrews » Wed Jun 26, 2013 2:30 pm

I think FFmpeg could be conflicting with another version of its constituent libraries somewhere else on your computer.

Do you have any other programs that use FFmpeg? Where exactly do you have the FFmpeg you are pointing Audacity to installed?

Can you restart Audacity and post a new log from that?

You could always try putting the video file in the folder where you have ffmpeg.exe installed, open a command prompt at that folder then type:

Code: Select all

ffmpeg -i video.mp4 audio.wav


changing the name of the video file to the name of the actual file. Call the WAV file what you like. Then Audacity will import the WAV.

I have to go now but hopefully someone else can look at your log.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

HelenWeirHypno
Posts: 12
Joined: Wed Jun 26, 2013 9:26 am
Operating System: Please select

Re:Can't import mp4 files avcodec decoder failed[SOLVED]

Post by HelenWeirHypno » Thu Jun 27, 2013 9:25 am

Found a copy of a CD burning program that seemed to be using ffmpeg that I didn't use. Removed that and all is working today. Phew!

Thanks so much for your help. :D

I can get back to hypnosis now! Yay!

Locked