Results 1 to 7 of 7

Thread: How to intercept audio from a mp3 file?

  1. #1
    Join Date
    Dec 2010
    Beans
    17

    Question How to intercept audio from a mp3 file?

    Hey,everyone.
    Now I have a problem with mencoder.When I tried to use mencoder to interpret a mp3 file (test.mp3) from 1:30 to the end like this :

    mencoder -o out.mp3 -oac mp3lame -lameopts cbr:br=128 -of rawaudio -ss 1:30 test.mp3

    I found it failed:
    ASF file format detected.
    [asfheader]audio stream found, -aid 1
    Video stream is mandatory!
    Exiting......

    I'm really not clear where is wrong.Anyone can help?

    Sorry,my mother tongue isn't English,so just understand.Thanks

  2. #2
    Join Date
    Sep 2010
    Beans
    126
    Distro
    Ubuntu Studio 10.10 Maverick Meerkat

    Re: How to intercept audio from a mp3 file?

    Well, if you are trying to take a video or audio you find on the internet and you want to know how to record it or rip it without losing quality, simply connect your headphone jack on your laptop or desktop to your record or mic jack. Make sure that you aren't clipping or else it will sound like crap though. As long as you aren't clipping, just open a recording program (ie. ardour, audacity) press record, then play the audio. You will have just as good of quality audio recorded right into your audio editing/production suite.

    to be sure that you don't lose quality as you compress and export, be sure to export at the highest quality possible in your program. So, if you look under your export settings under "file>export>" look for flac. If you can't find that then shoot for WAV. When asking what quality you want, make sure to select 32bit float.

  3. #3
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to intercept audio from a mp3 file?

    Quote Originally Posted by NewUserFF View Post
    ASF file format detected.
    [asfheader]audio stream found, -aid 1
    Video stream is mandatory!
    Exiting......

    I'm really not clear where is wrong.
    Hi
    mencoder won't accept audio-only files. They must be videos.

    Try using ffmpeg instead, like this for 90 seconds hh:mm:ss:-

    Code:
    ffmpeg -i test.mp3 -ss 90 -acodec copy out.mp3
    Last edited by ron999; January 25th, 2011 at 10:47 AM. Reason: Added ffmpeg command.

  4. #4
    Join Date
    Apr 2007
    Beans
    2,578
    Distro
    Ubuntu

    Re: How to intercept audio from a mp3 file?

    It is utterly unclear what you want to achieve. Converting an mp3 to mp3?

  5. #5
    Join Date
    Dec 2010
    Beans
    17

    Re: How to intercept audio from a mp3 file?

    Thanks a million for all your answers.I'll try ffmpeg as ron999 says.
    the best.

  6. #6
    Join Date
    Dec 2006
    Beans
    7,139

    Re: How to intercept audio from a mp3 file?

    Hi ron,

    Quote Originally Posted by ron999 View Post
    mencoder won't accept audio-only files. They must be videos.
    It is just a side-note but if you look in the TOOLS subdirectory of the svn MPlayer source code you will see a small script called aconvert.sh which allows MEncoder to deal with audio only files.
    You think that's air you're breathing now?

  7. #7
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: How to intercept audio from a mp3 file?

    First of all it’s not an .mp3 file but .asf as it says in the output.

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
  •