Results 1 to 8 of 8

Thread: extract mp3 from avi

  1. #1
    Join Date
    Jan 2007
    Beans
    428

    extract mp3 from avi

    How can I extract audio (mp3) from video (avi)? Audio is already in mp3. Avidemux doesn't seem to let me save just the audio without conversion. Thanks.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    4,922
    Distro
    Ubuntu

    Re: extract mp3 from avi

    I always just use audacity.
    Open the file and it automagically converts the audio to mp3, or some other audio.
    Then you can export it as an mp3 or flac or whatever you want.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Jan 2007
    Beans
    428

    Re: extract mp3 from avi

    Thanks. Will follow the instruction.

  4. #4
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: extract mp3 from avi

    Code:
    sudo apt-get install ffmpeg
    ffmpeg -i /path/to/infile.avi /path/to/outfile.mp3
    if you have to cut it, use
    Code:
    sudo apt-get install mencoder ffmpeg
    mencoder /path/to/infile.avi -ss 1:03 -oac copy -ovc copy -o /path/to/outfile1.avi
    mencoder /path/to/outfile1.avi -endpos :43 -ovc copy -oac copy -o /path/to/outfile2.avi
    ffmpeg -i /path/to/outfile2.avi /path/to/outfile.mp3
    where 1:03 is the start time, and :43 is the duration.


  5. #5
    Join Date
    Sep 2006
    Beans
    3,540

    Re: extract mp3 from avi

    Since you already know what your input audio format is with ffmpeg you can stream copy the audio without re-encoding, therefore being fast and will not lose quality:
    Code:
    ffmpeg -i input -codec:a copy output.mp3
    If you want to create a segment you could just use ffmpeg:
    Code:
    ffmpeg -i input -ss 00:01:00 -t 5 -codec:a copy output.mp3
    "-ss" is the offset time and "-t" is the duration, so it would skip the first minute and create an output with a duration of 5 seconds.

    If you just want to find out more about the input ffmpeg will give info:
    Code:
    ffmpeg -i input

  6. #6
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: extract mp3 from avi

    Quote Originally Posted by FakeOutdoorsman View Post
    If you want to create a segment you could just use ffmpeg:
    Code:
    ffmpeg -i input -ss 00:01:00 -t 5 -codec:a copy output.mp3
    "-ss" is the offset time and "-t" is the duration, so it would skip the first minute and create an output with a duration of 5 seconds
    even I learn something here sometimes
    Quote Originally Posted by mencoder
    I'm useful for splitting clips!
    Quote Originally Posted by ffmpeg
    I can do that.

  7. #7
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: extract mp3 from avi

    Quote Originally Posted by paker View Post
    Avidemux doesn't seem to let me save just the audio without conversion.
    Are you sure about that? Opening an avi with mp3 audio in Avidemux, I was able to save the mp3 soundtrack from the Avidemux Audio menu -> Save. It took a few seconds only and I ended up with a playable mp3 file.

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  8. #8
    Join Date
    Aug 2013
    Beans
    44

    Re: extract mp3 from avi

    Thanks. I was able to solve the problem.

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
  •