Re: [LAU] Convert from WMA to ... ?

From: <karkass@email-addr-hidden>
Date: Fri Aug 03 2007 - 13:37:02 EEST

Kevin Cosgrove <kevinc@email-addr-hidden> wrote:

> mplayer -ao pcm input.wma -ao pcm:fast | oggenc --raw - --output=output.ogg
>
> doesn't work. The resulting OGG file is nothing but header. oggenc
> won't allow stdin unless I use --raw. That requires "headerless" WAV.
> It seems the default for mplayer is "waveheader" for pcm, and I can't
> figure out how to change that. My piped command might work, if I
> could turn off the header. I've also played with SoX, but haven't
> managed to get that to work yet either.
>
> Thanks....

You can also make a fifo, redirect mplayer's pcm output to it and encode on
the fly.

I do something like this:

FIFO_TMP="/tmp/mplayer-pcm-out.fifo"
mkfifo "${FIFO_TMP}"
oggenc -Q -o <outfile> "${FIFO_TMP}" &
mplayer -vc null -vo null -ao pcm:fast:file="${FIFO_TMP}" <infile>
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user
Received on Fri Aug 3 16:15:01 2007

This archive was generated by hypermail 2.1.8 : Fri Aug 03 2007 - 16:15:02 EEST