Dear List,
How would you go about recording the audio output of a Pd patch directly to mp3 (or any other compressed format actually), without using the object from the Unauthorized library ? Would it be feasible to use the [shell] object with a script using ffmpeg or LAME ? I don't really know whether there would be serious timing uses, who to use those for recording a stream instead of a file, how to send Pd's audio out...
I could always record to wav and run a script afterwards to compress and delete the original file, but i'd rather have something more direct.
Cheers,
Pierre.
On 05/10/12 11:55, Pierre Massat wrote:
Dear List,
How would you go about recording the audio output of a Pd patch directly to mp3 (or any other compressed format actually), without using the object from the Unauthorized library ? Would it be feasible to use the [shell] object with a script using ffmpeg or LAME ? I don't really know whether there would be serious timing uses, who to use those for recording a stream instead of a file, how to send Pd's audio out...
use jack and ecasound?
gstreamer objects for pd?
hacky way might work: writesf~ in raw (headerless mode) mkfifo foo.raw (read mkfifo manual) lame foo.raw (if it accepts raw input) careful with deadlocks/SIGPIPE
I could always record to wav and run a script afterwards to compress and delete the original file, but i'd rather have something more direct.
i tend to record in 32bit wav (-bytes 4) to avoid any clipping, then remove dc/normalize/convert later. i tend to hoard things, though...
Claude
Cheers,
Pierre.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Pierre,
Pierre Massat wrote:
How would you go about recording the audio output of a Pd patch directly to mp3 (or any other compressed format actually), without using the object from the Unauthorized library ?
ffmpeg can read from the audio driver, there's an example in the manual page.
Charles
I think there is mp3write~ in 'unauthorized' lib but I've never used it. There is the pdogg lib, which has oggwrite~.
.hc
On 10/05/2012 06:55 AM, Pierre Massat wrote:
Dear List,
How would you go about recording the audio output of a Pd patch directly to mp3 (or any other compressed format actually), without using the object from the Unauthorized library ? Would it be feasible to use the [shell] object with a script using ffmpeg or LAME ? I don't really know whether there would be serious timing uses, who to use those for recording a stream instead of a file, how to send Pd's audio out...
I could always record to wav and run a script afterwards to compress and delete the original file, but i'd rather have something more direct.
Cheers,
Pierre.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Seems like I forgot to respond to this thread I started. Thank you all for the tips, I think I'll go for oggwrite~.
Cheers,
Pierre.
2012/10/5 Hans-Christoph Steiner hans@at.or.at
I think there is mp3write~ in 'unauthorized' lib but I've never used it. There is the pdogg lib, which has oggwrite~.
.hc
On 10/05/2012 06:55 AM, Pierre Massat wrote:
Dear List,
How would you go about recording the audio output of a Pd patch directly
to
mp3 (or any other compressed format actually), without using the object from the Unauthorized library ? Would it be feasible to use the [shell] object with a script using ffmpeg or LAME ? I don't really know whether there would be serious timing uses, who to use those for recording a stream instead of a file, how to send
Pd's
audio out...
I could always record to wav and run a script afterwards to compress and delete the original file, but i'd rather have something more direct.
Cheers,
Pierre.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list