can not import audio files

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
delectate
Posts: 3
Joined: Sat Mar 27, 2010 8:03 am
Operating System: Please select

can not import audio files

Post by delectate » Wed Sep 08, 2010 3:12 am

archlinux with audacity 1.3.12 & ffmpeg SVN-r24953 (--enable-shared )

audacity can recognize ffmpeg libs,but still can not import ape files. ffplay ,ffmpeg ,mplayer works on my pc.

Image

Image

I have no idea what to do, anyone help?

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

Re: can not import audio files

Post by Gale Andrews » Wed Sep 08, 2010 11:19 pm

Please note that Audacity doesn't officially support latest svn FFmpeg, only 0.5.x.

I only have one .APE File to hand but it imports fine using FFmpeg 0.5.x on Windows 7 and Ubuntu 10.04.

I suggest you convert the .APE at the command line in svn FFmpeg and see if there is a problem there:

$ FFmpeg -i song.ape song.wav

If FFmpeg refuses it at the command line, check the validity of the file and if it seems correct, report it to FFmpeg.

If the file converts to .WAV, you can then import it into Audacity. In that case please upload the .APE file to a free file transfer service such as:

http://www.yousendit.com
http://www.megaupload.com
http://www.sendspace.com

and give us the web address where we can download it. Also show us the contents of Help > Show Log - FFmpeg errors are stored there.



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

delectate
Posts: 3
Joined: Sat Mar 27, 2010 8:03 am
Operating System: Please select

Re: can not import audio files

Post by delectate » Fri Sep 10, 2010 11:30 am

Gale Andrews wrote:Please note that Audacity doesn't officially support latest svn FFmpeg, only 0.5.x.

I only have one .APE File to hand but it imports fine using FFmpeg 0.5.x on Windows 7 and Ubuntu 10.04.

I suggest you convert the .APE at the command line in svn FFmpeg and see if there is a problem there:

$ FFmpeg -i song.ape song.wav

If FFmpeg refuses it at the command line, check the validity of the file and if it seems correct, report it to FFmpeg.

If the file converts to .WAV, you can then import it into Audacity. In that case please upload the .APE file to a free file transfer service such as:

http://www.yousendit.com
http://www.megaupload.com
http://www.sendspace.com

and give us the web address where we can download it. Also show us the contents of Help > Show Log - FFmpeg errors are stored there.



Gale
thanks for your reply. I tried convert ape to wav by ffmpeg,it works ,and audacity can import wav file.

I try lots ape file,none of them can import,but i can import them before,so strange.

this is log :

Code: Select all

07:22:51 PM: Trying to load FFmpeg libraries
07:22:51 PM: mLibAVFormatPath is not empty, = /usr/lib/libavformat.so.52.78.3. Loading from it.
07:22:51 PM: Loading avformat from /usr/lib/libavformat.so.52.78.3
07:22:51 PM: Importing symbols...
07:22:51 PM: All symbols loaded successfully. Initializing the library.
07:22:51 PM: Retrieving library version.
07:22:51 PM: AVCodec version 0x345700 - 52.87.0 (built against 0x342000 - 52.32.0)
07:22:51 PM: AVFormat version 0x344e03 - 52.78.3 (built against 0x342400 - 52.36.0)
07:22:51 PM: AVUtil version 0x321800 - 50.24.0 (built against 0x320300 - 50.3.0)
07:22:51 PM: AVCodec version mismatch is 0
07:22:51 PM: AVFormat version mismatch is 0
07:22:51 PM: AVUtil version mismatch is 0
07:22:51 PM: Libraries loaded successfully!
07:22:57 PM: FFmpeg : av_open_input_file() failed for file /home/delectate/music/lossless/Background Music/Francois Feldman - Magic' boul'vard.ape
you can download this sample here: http://www.sendspace.com/file/58nr2t

thank you very much.

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

Re: can not import audio files

Post by Gale Andrews » Wed Sep 15, 2010 2:47 am

Thanks for the sample file - it imports fine with Audacity 1.3.13 on Windows 7 using FFmpeg 0.5.

Is the Audacity 1.3.12 from the ArchLinux repository or have you compiled the Audacity 1.3.12 source tarball using these workarounds for SVN FFmpeg? I don't really understand "(built against 0x342000 - 52.32.0)" (i.e an earlier version of FFmpeg) in your log.

When you say you can import APE files before, in what version of Audacity/with what version of FFmepg did that work?

Does Audacity import other formats requiring FFmpeg, such as AC3 or WMA, or is the problem only with APE files?




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

avruser
Posts: 1
Joined: Sat Nov 13, 2010 11:33 am
Operating System: Please select

Re: can not import audio files

Post by avruser » Sat Nov 13, 2010 8:16 pm

Same problem in Gentoo GNU/Linux.

audacity-1.3.12
ffmpeg-0.6_p25423

Soft installed from updated portage tree (2010-11-10).
-----------------------------------------------------------------
Debug log:
12:56:15 AM: Trying to load FFmpeg libraries
12:56:15 AM: mLibAVFormatPath is not empty, = /usr/lib/libavformat.so. Loading from it.
12:56:15 AM: Loading avformat from /usr/lib/libavformat.so
12:56:16 AM: Importing symbols...
12:56:16 AM: All symbols loaded successfully. Initializing the library.
12:56:16 AM: Retrieving library version.
12:56:16 AM: AVCodec version 0x345c00 - 52.92.0 (built against 0x345c00 - 52.92.0)
12:56:16 AM: AVFormat version 0x345000 - 52.80.0 (built against 0x345000 - 52.80.0)
12:56:16 AM: AVUtil version 0x322003 - 50.32.3 (built against 0x322003 - 50.32.3)
12:56:16 AM: AVCodec version mismatch is 0
12:56:16 AM: AVFormat version mismatch is 0
12:56:16 AM: AVUtil version mismatch is 0
12:56:16 AM: Libraries loaded successfully!
12:56:32 AM: FFmpeg : av_open_input_file() failed for file /mnt/ntfs/Documents and Settings/All Users/Documents/My Music/Sample Music/New Stories (Highway Blues).wma
12:57:18 AM: FFmpeg : av_open_input_file() failed for file /mnt/ntfs/temp/mp3/Soundtracks/Silent Hill 2 - Original Soundtrack [EAC-MPC]/08 - Null Moon.mpc
---------------------------------------------------------
Converting files with ffmpeg in command line gives successful result.

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

Re: can not import audio files

Post by Gale Andrews » Sun Nov 21, 2010 11:04 pm

avruser wrote:Same problem in Gentoo GNU/Linux.

audacity-1.3.12
ffmpeg-0.6_p25423

Soft installed from updated portage tree (2010-11-10).

12:56:16 AM: AVCodec version 0x345c00 - 52.92.0 (built against 0x345c00 - 52.92.0)
12:56:16 AM: AVFormat version 0x345000 - 52.80.0 (built against 0x345000 - 52.80.0)
12:56:16 AM: AVUtil version 0x322003 - 50.32.3 (built against 0x322003 - 50.32.3)
12:56:16 AM: AVCodec version mismatch is 0
12:56:16 AM: AVFormat version mismatch is 0
12:56:16 AM: AVUtil version mismatch is 0
12:56:16 AM: Libraries loaded successfully!
12:56:32 AM: FFmpeg : av_open_input_file() failed for file /mnt/ntfs/Documents and Settings/All Users/Documents/My Music/Sample Music/New Stories (Highway Blues).wma
12:57:18 AM: FFmpeg : av_open_input_file() failed for file /mnt/ntfs/temp/mp3/Soundtracks/Silent Hill 2 - Original Soundtrack [EAC-MPC]/08 - Null Moon.mpc
---------------------------------------------------------
Converting files with ffmpeg in command line gives successful result.
1.3.12 does not support FFmpeg > 0.5 without hackage. Does "Soft installed from updated portage tree" mean you got the Audacity e-build from http://gentoo-portage.com/media-sound/audacity, in other words using the gentoo FFmpeg patch listed in the e-build? If so, have you reported the issue to Gentoo ?

Certainly compiling Audacity SVN HEAD on Ubuntu 10.10 with this patch, using the repository-supplied FFmpeg 52.72.2, 52.64.2, 50.15.1 (i.e > 0.5), I can import supported files into Audacity using FFmpeg.

Steve if you are reading, do you use latest git FFmpeg with SVN HEAD on Ubuntu 10.10?



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

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

Re: can not import audio files

Post by steve » Tue Nov 23, 2010 7:09 pm

Gale Andrews wrote:Steve if you are reading, do you use latest git FFmpeg with SVN HEAD on Ubuntu 10.10?
So far I've only used FFmpeg with Audacity 1.3.12 (both from the Ubuntu 10.10 repository).
I've not investigated Audacity 1.3.13 with FFmpeg. Would you like me to?
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 not import audio files

Post by Gale Andrews » Tue Nov 23, 2010 7:34 pm

steve wrote:
Gale Andrews wrote:Steve if you are reading, do you use latest git FFmpeg with SVN HEAD on Ubuntu 10.10?
So far I've only used FFmpeg with Audacity 1.3.12 (both from the Ubuntu 10.10 repository).
I've not investigated Audacity 1.3.13 with FFmpeg. Would you like me to?
I know that 1.3.13 alpha works with the 10.10 repository build of FFmpeg OK, when compiled with the patch noted above in post 6.

I don't know much about building FFmpeg, I'm afraid. I got FFmpeg 0.6.1 and it compiled fine with ./configure and make, and I installed it. I haven't recompiled Audacity yet. However the FFmpeg build doesn't produce a libavformat.so.* file. Perhaps it doesn't need to?


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

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

Re: can not import audio files

Post by steve » Tue Nov 23, 2010 8:18 pm

I'm just now testing with FFmpeg from the current nightly.
The default ./configure creates a static build of FFmpeg which does not have .SO files.
I've built with the --enable-shared option, then the .SO files are produced.

I modified Audacity using the instructions here: http://manual.audacityteam.org/index.ph ... tallffmpeg
...
Workaround: change src/FFmpeg.cpp line 207 from "static int ufile_write(URLContext *h, unsigned char *buf, int size)" to "static int ufile_write(URLContext *h, const unsigned char *buf, int size)"
...
Workaround: Re-compile Audacity and change all instances of "match_ext" in ../src/FFmpeg.h and ../src/FFmpeg.cpp to "av_match_ext".
I did not use the AAC workaround as --disable-encoder=aac does not appear to be a valid option.
AAC exports will be incorrect unless you disable the built-in AAC encoder (--disable-encoder=aac).
The current nightly version of FFmpeg has been recognised and other than AAC (which does not appear to work correctly) all seems well.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: can not import audio files

Post by steve » Tue Nov 23, 2010 8:45 pm

Update:

I'm getting crashes with WMA import and export with 1.3.13, but not with 1.3.12 (both using the same nightly build of FFmpeg).
I'll have a go building Audacity with that patch and see if that works any better.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked