Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Audacity ffmpeg problem with wav files

  1. #1

    Default Audacity ffmpeg problem with wav files

    Hi

    Audacity has recently (I'm not sure when exactly) stopped being able to import / load some wav files

    I get a window on screen

    Code:
    "Audacity did not recognise the type of file 'MONO-001.WAV'.
    Try installing FFmpeg. For uncompressed files, also try File > Import > Raw Data."
    This was working earlier this year - the file is from a Zoom R16 Multitrack recording device, and I was recording audio from various Synthesizers for "Lockdown" videos my band was releasing

    Those files no longer load into Audacity

    The wav files are

    Code:
    file MONO-001.WAV 
    MONO-001.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
    The "build information" tab in the Help > About Audacity tells me

    Code:
    ffmpeg (FFmpeg Import/Export) Enabled

    I've also loaded the files into audiacty on a LinuxMint VirtualBox VM, which has Audacity v2.1.2 and it loads and plays fine



    Audacity in Tumbleweed is


    Code:
    Information for package audacity:
    ---------------------------------
    Repository     : openSUSE-Tumbleweed-Oss
    Name           : audacity
    Version        : 2.4.2-2.2
    Arch           : x86_64
    Vendor         : openSUSE
    Installed Size : 17.0 MiB
    Installed      : Yes
    Status         : up-to-date
    Source package : audacity-2.4.2-2.2.src
    FFmpeg is version 4

    Code:
    Information for package ffmpeg-4:
    ---------------------------------
    Repository     : packman
    Name           : ffmpeg-4
    Version        : 4.3.1-6.2
    Arch           : x86_64
    Vendor         : http://packman.links2linux.de
    Installed Size : 2.2 MiB
    Installed      : Yes (automatically)
    Status         : up-to-date
    Source package : ffmpeg-4-4.3.1-6.2.src

    Audacity depends on FFmpeg-4 ie removing FFmpeg-4 automatically removes Audacity, re-installing Audacity re-installs FFmpeg-4

    So I'd guess there is something broken about the way Audacity uses FFmpeg-4 (or doesn't use it)

    And, for the record, using FFmpeg manually to convert my WAV file to mp3 works fine, and the converted mp3 file loads into Audacity with no problems

    Code:
    ffmpeg -i MONO-001.WAV -ab 192k MONO-001.mp3

  2. #2
    Join Date
    Jun 2008
    Location
    Stoney Stanton - England
    Posts
    1,133

    Default Re: Audacity ffmpeg problem with wav files

    I have have tried to convert a wav file to a mp3 file using audacity and it worked fine.

    If you want to post your 'MONO-001.WAV' file I would be happy to try it on my system. That said, I have the same ffmpeg & audacity versions as you.

  3. #3

    Default Re: Audacity ffmpeg problem with wav files

    Quote Originally Posted by dth2 View Post
    I have have tried to convert a wav file to a mp3 file using audacity and it worked fine.

    If you want to post your 'MONO-001.WAV' file I would be happy to try it on my system. That said, I have the same ffmpeg & audacity versions as you.
    OK, thanks, I might later

    I've just done a bit more investigating

    So the file in the OP that I used FFmpeg to manually convert to mp3...

    If I load that in Audacity, and export to WAV, and then load that exported WAV file into Audacity it loads

    So there is obviously something going on here that is a bit strange

    I have enabled the multimedia repo so I now have

    Code:
    Information for package audacity:
    ---------------------------------
    Repository     : Multimedia
    Name           : audacity
    Version        : 2.4.2-163.2
    Arch           : x86_64
    Vendor         : obs://build.opensuse.org/multimedia
    Installed Size : 17.0 MiB
    Installed      : Yes
    Status         : up-to-date
    Source package : audacity-2.4.2-163.2.src
    but that made no difference in importing my original file

    I'll revert Audacity to the openSUSE-Tumbleweed-Oss repo and re-check

  4. #4

    Default Re: Audacity ffmpeg problem with wav files

    [QUOTE=iDominic42;2954224]OK, thanks, I might later

    I've just done a bit more investigating

    So the file in the OP that I used FFmpeg to manually convert to mp3...

    If I load that in Audacity, and export to WAV, and then load that exported WAV file into Audacity it loads

    ==

    By the way

    file MONO-001.WAV

    and

    file audacity_export.wav

    (after converting to mp3, loading into audacity, and exporting as audacity_export.wav - using the default)

    give the same answer


    Code:
    file MONO-001.WAV
    MONO-001.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
    
    file audacity_export.wav 
    audacity_export.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz

  5. #5

    Default Re: Audacity ffmpeg problem with wav files

    OK, just recorded a few seconds from a Korg Prophecy (monosynth) to a Zoom R16

    See
    HTML Code:
    http://www.alienship.co.uk/sounds/MONO-000.WAV
    Plays perfectly well in smplayer

    Does not load in Audacity


    Next to it is the same file I converted using FFmpeg

    Code:
    ffmpeg -i MONO-000.WAV converted.wav

    HTML Code:
    http://www.alienship.co.uk/sounds/converted.wav
    loads into Audacity no problem

    Code:
    file MONO-000.WAV 
    MONO-000.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
    file converted.wav 
    converted.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
    Audacity used to load the original files from the Zoom R16. It no longer does (n my computer, at least)

    Hope that makes sense

  6. #6
    Join Date
    Aug 2020
    Location
    Germany
    Posts
    50

    Default Re: Audacity ffmpeg problem with wav files

    I know that generally you need lame to be able to convert to mp3's. Do you have it on your system?

  7. #7

    Default Re: Audacity ffmpeg problem with wav files

    Quote Originally Posted by vinylninja View Post
    I know that generally you need lame to be able to convert to mp3's. Do you have it on your system?
    Hi, yes, Lame is installed.

    However I'm not trying to use Audacity to convert a wav file to an mp3

    I'm trying to load a wav file that previously loaded into Audacity - and does still load into previous versions of Audacity, running on a couple of LinuxMint VirtualBox VMs

    So I have a workaround, as above, or I can use FFmpeg to covert my wav file to a wav file that does load into Audacity

    But there is a bug / fault in the current version of Audacity in Tumblweed where it does not load (some) uncompressed wav files that did load in earlier versions (and still do)


    I'll submit this issue to the bug tracker later tonight

  8. #8
    Join Date
    Aug 2020
    Location
    Germany
    Posts
    50

    Default Re: Audacity ffmpeg problem with wav files

    Quote Originally Posted by iDominic42 View Post


    I'll submit this issue to the bug tracker later tonight
    I think that is the right thing to do because a colleague of mine had also problems with the most recent version of Audacity but older versions worked just fine with the same files.
    openSUSE Tumbleweed Xfce

  9. #9

    Default Re: Audacity ffmpeg problem with wav files

    Quote Originally Posted by iDominic42 View Post
    I'll submit this issue to the bug tracker later tonight
    bug report submitted

    HTML Code:
    https://bugzilla.opensuse.org/show_bug.cgi?id=1175205

  10. #10

    Default Re: Audacity ffmpeg problem with wav files

    Quote Originally Posted by iDominic42 View Post
    bug report submitted

    HTML Code:
    https://bugzilla.opensuse.org/show_bug.cgi?id=1175205
    This has now been investigated and confirmed as a problem with Audacity being able to find libavformat.so.58 as it doesn't create a link on install in /usr/lib64

    So there is a test, which proves the case, but the developer says this is NOT recommended

    Code:
    cd /usr/lib64
    sudo ln -s libavformat.so.58.45.100 libavformat.so.58
    which I've just tested, and my WAV files now load

    I will revert the above change, and try his modified package later

    See full technical details on the bugzilla and thanks to David Plater

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •