[vorbis] Encode on fly from device?

Jared Anderson jared at ieee.org
Wed Feb 12 16:09:07 PST 2003



I have a little function for recording from my radio (connected to line
in) that uses alsa's mixer and arecord, you might find it useful:

  function radiorec() 
  {
    amixer sset Line,0 85%,85% unmute captura
    arecord -f cd -t wav - | oggenc -q 3 -o $1.ogg -
  }

To use it I just issue radiorec filename at a prompt.  

Cheers,
  J

<p>* Bryan Koschmann - GKT <gktnews at gktech.net> [2003-02-13 10:04]:
> Hello,
> 
> I'm looking for ideas here. I'm sure it's easy, but cant quite get what I
> need.
> 
> I am looking for a way to encode everything from the soundcard into a
> .ogg, on the fly. Basically I want to be able to record and convert
> directly to a compressed file. Since this will be running constantly, I
> would also like to be able to listen to the file during this time.
> 
> I know oggenc can use stdin, but I'm just not sure how to get the audio
> directed to it.
> 
> Any ideas?
> 
> Thanks in advance!
> 
> 	Bryan
> 
> --- >8 ----
> List archives:  http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list