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

Thread: converting alac to wav and flac and vice versa

  1. #1
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,189
    Distro
    Ubuntu 18.04 Bionic Beaver

    converting alac to wav and flac and vice versa

    Got a few alac files off the net and looked around for converting solutions. Might be of use to some.



    Players which handle alac

    VLC plays them
    QMMP (right-click on player/settings/plugins/FFmpeg plugin/highlight/Preferences/Tick alac )
    deadbeef
    aqualung

    xine
    audacious

    Personally i love alac but if you need/want to convert them here goes...



    to batch convert quickly to flac/wav

    cd (change directory) to you alac files in your terminal then enter

    Code:
    for f in *.m4a; do ffmpeg -i "$f" "${f%.m4a}.flac"; done

    To decompress to wav use same as above just change word flac for wav

    ===============================================
    and wav to alac

    Code:
    for f in *.wav; do ffmpeg -i  "$f" -acodec alac "${f%.wav}.m4a"; done


    ALSO now ffmpeg handles converting to alac




    ==========================================
    ==========================================




    or for single file with FFMPEG
    ============= ==============

    wav to m4a ==>


    Code:
    ffmpeg -i <input> -acodec alac <output>.m4a
    and to convert from alac (m4a) to wav or flac


    Code:
    ffmpeg  -i <input>.m4a  <output>.wav

    Code:
    ffmpeg  -i <input>.m4a  <output>.flac


    there is also a way to do this with shntool would anyone know how to?
    Last edited by shantiq; March 4th, 2012 at 10:12 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  2. #2
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,189
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: converting alac to wav and flac and vice versa



    alac files also play straight off in the player called xine which is in synaptic


    also deadbeef plays alac
    Last edited by shantiq; December 18th, 2010 at 06:14 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  3. #3
    Join Date
    Aug 2009
    Location
    Brisbane
    Beans
    3,779

    Re: converting alac to wav and flac and vice versa

    Or, you can just forget the comandline stuff and use sounconverter. As long as you have the right gstreamer package installed (I cant remember if alac is under good, bad or ugly) soundconverter wil transcode them to whatever formaty you cwant. Also, and gstreamer media player should play them. List of teh gstreamer media players here-

    http://www.gstreamer.net/apps/

  4. #4
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,189
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: converting alac to wav and flac and vice versa

    As long as you have the right gstreamer package installed (I cant remember if alac is under good, bad or ugly)

    hi there cascade not been able to get that going so far soundkonverter does not pick up the info from alac-decoder
    probably not the one it picks it up from truth is i do not see one can install alac onto ubuntu


    Code:
    sudo apt-get install alac
    goes nowhere


    not sure what one has to do to get it going it would be handy since soundkonverter is so good got shorten and tta going there but not as yet alac



    oh sorry you said soundconverter not soundKonverter well that one has AAC m4a but i do not think that is lossless alac
    Last edited by shantiq; June 7th, 2010 at 12:00 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  5. #5
    Join Date
    Aug 2009
    Location
    Brisbane
    Beans
    3,779

    Re: converting alac to wav and flac and vice versa

    Soundconverter does do alac-

    SoundConverter is the leading sound conversion application for the GNOME Desktop. It reads anything the GStreamer library can read (Ogg Vorbis, AAC, MP3, FLAC, WAV, AVI, MPEG, MOV, M4A, AC3, DTS, ALAC, MPC, Shorten, APE, SID, MOD, XM, S3M, etc...), and writes WAV, FLAC, MP3, AAC, and Ogg Vorbis files.
    http://soundconverter.berlios.de/

    Checked, it appears that alac support is in gstreamer-bad-

    qtmux: add support for ALAC, SVQ3, IMA ADPCM; improve j2k handling
    http://gstreamer.freedesktop.org/rel...d/0.10.18.html

    I *think* that all you would need to do to get gstreamer-bad witrh ubuntu is -

    sudo apt-get install gstreamer0.10-plugins-bad

    http://packages.ubuntu.com/lucid/gst...10-plugins-bad

    "sudo apt-get install alac" wont work because there is no "alac" package. Close though, there is "alac-decoder".

    http://packages.ubuntu.com/lucid/alac-decoder

  6. #6
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,189
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: converting alac to wav and flac and vice versa

    well i did

    Code:
    sudo apt-get install gstreamer0.10-plugins-bad

    and it says i am already up to date

    and when i go to soundconverter no alac just AAC m4a up to 320kbps


    BUT it will convert from alac to anything else maybe that is what you meant from alac to but not the other way


    no shorten either although it is picked up by soundKonverter


    have i missed something?
    Last edited by shantiq; June 7th, 2010 at 12:42 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  7. #7
    Join Date
    Aug 2009
    Location
    Brisbane
    Beans
    3,779

    Re: converting alac to wav and flac and vice versa

    Yes, I meant convert from ALAC to other formats.

    As far as shorten goes, it should be possible to transcode from one format into .shn. But I dont know any way to do it offhand, .shn is old and totally outclassed by newer lossless codecs so developers wouldnt be btoerhed adding .shn encoding support.

    Yes, I did read on your other thread that you think shn is the best sounding lossless fomat, but I disagree, apart from lame 'maybe' lossless (like wma-lossless) and decoder issues, they should all sound the same ......

  8. #8
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,189
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: converting alac to wav and flac and vice versa

    Yes, I did read on your other thread that you think shn is the best sounding lossless format, but I disagree, apart from lame 'maybe' lossless (like wma-lossless) and decoder issues, they should all sound the same ......
    i know they should but they really do not in my experience i once read a long article on shorten which explained how it had been designed for speech for conferences at cambridge university hey here i found it

    and it always has sounded clearer to me on windows or ubuntu maybe i am mad but i think not give a a whirl mayhaps?soundkonverter will happily oblige once you have installed it

    xmms is the only player i know which handles it on linux also audacious does now the best of all player to my mind the KISS principle i read somewhere (keep it simple stupid) i love solid systems


    anyway
    Last edited by shantiq; July 13th, 2010 at 09:26 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  9. #9
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,189
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: converting alac to wav and flac and vice versa

    and if you want to rip a disc to alac using rubyripper here is howto scroll to bottom of page


    external encoding is
    Code:
    ffmpeg -i %i -acodec alac  "%o".m4a
    Last edited by shantiq; July 20th, 2010 at 12:29 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  10. #10
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,189
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: converting alac to wav and flac and vice versa

    also there is a program designed by david hammerton called alac-decoder which is really efficient but only works one way

    still worth using

    install


    Code:
    sudo apt-get install alac-decoder
    Code:
    alac-decoder -h
    Usage: alac [options] [--] file
    Decompresses the ALAC file specified
    
    Options:
      -f output.wav     outputs the decompressed data to the
                        specified file, in WAV format. Default
                        is stdout.
      -r                write output as raw PCM data. Default
                        is in WAV format.
      -v                verbose output.
      -t                test that file is ALAC, also tests for
                        other m4a file types.
    
    This software is Copyright (c) 2005 David Hammerton
    All rights reserved
    http://crazney.net/
    if you file is named 24

    Code:
    alac-decoder -f 24.wav 24.m4a
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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