Re: Convert from WMA to ... ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Cosgrove <kevinc@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux