[LAU] Convert from WMA to ... ?
karkass at gmx.li
karkass at gmx.li
Fri Aug 3 06:37:02 EDT 2007
Kevin Cosgrove <kevinc at doink.com> 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>
More information about the Linux-audio-user
mailing list