[vorbis] Encode on fly from device?

Lorenzo Prince lorenzo at princenet.sytes.net
Wed Feb 12 19:14:13 PST 2003



If running under Linux, you can simply use the < redirect symbol on the oggenc
command line to redirect the recording device to stdin.

Lorenzo

May you code in the power of the source,
may the kernel, libraries, and utilities be with you,
throughout all distributions until the end of the epoch.
----- Original Message -----
From: "Jared Anderson" <jared at ieee.org>
To: <vorbis at xiph.org>
Sent: Wednesday, February 12, 2003 7:09 PM
Subject: Re: [vorbis] Encode on fly from device?

<p>> 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
>
>
> * 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.
>

<p>--- >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