Skip to Content

ASF to MP3 or other formats

mborn's picture

Peace!

I would like to know if it is possible to do the above conversion and how (in details) on Linux. I would like to know if there are packages specially designed for this job or is it contained already in my distribution (Mand. Power Pack + 10.0)?

PS. To be honest, I could do it in Windows with a cracked Program (I then unistalled it) and it was like a knife in a cube of butter!

MAX

Alaa's picture

use mencoder

well generaly speaking its very easy to convert from one multimedia format to another as long as you got a program capable of playing the source format and a program capable of generating the target format.

you see in order to play any audio it has to be converted to raw audio data (kinda like wav files), in windows players don't typicaly offer to save raw audio data, but in GNU/Linux where programs are expected to act as tools most players have a dump raw data to disk feature.

you can use mplayer to extract the raw audio data, mplayer comes with mandrake, if you don't have it installed run this command as root

  1. urpmi mencoder

    and now you can run this command to get the raw wav file $ mplayer foo.asf -vo null -oa pcm -oafile foo.wav

    -oa specifies the output driver, pcm is means output audio to a wav file instead of playing it back.

    now you have a file foo.wav all you need to do is convert it to ogg or mp3 format.

    you can use oggenc to convert the file to ogg vorbis format (or lame or mp3enc or whatever mp3 encoder you may install)

    $ oggenc foo.wav

    this will generate foo.ogg for you, enjoy.

    cheers,
    Alaa


    "u know i once dream that the office of mobinil is from el 7`os :S and the one that answer u and tell u rasidak a girl called ghada"

Small Correction

I guess the write options would be "-ao" and "-aofile" (Alaa's options didn't work with me, but "-ao" and "-aofile" worked. Maybe because of different versions.)

BTW: Which files do I have to download from the plf packages?

Thanks, Mohammed


Alaa's picture

which files?

this realy is a question you shouldn't even try to answer, the way package management works is that its the software's job to figure out what files are needed.

then just update your media players from plf

  1. urpmi --auto-select

    and to install mp3encoders run

    1. urpmi lame mp3enc

      or use RpmDrake to if you prefer GUI.

      cheers,
      Alaa


      "u know i once dream that the office of mobinil is from el 7`os :S and the one that answer u and tell u rasidak a girl called ghada"

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | forum