Re: [PD] Recording audio to mp3 using LAME or ffmpeg ?

2012-11-04 Thread Pierre Massat
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 h...@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

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Recording audio to mp3 using LAME or ffmpeg ?

2012-10-05 Thread Pierre Massat
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


Re: [PD] Recording audio to mp3 using LAME or ffmpeg ?

2012-10-05 Thread Claude Heiland-Allen

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



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Recording audio to mp3 using LAME or ffmpeg ?

2012-10-05 Thread Charles Goyard
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

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Recording audio to mp3 using LAME or ffmpeg ?

2012-10-05 Thread Hans-Christoph Steiner

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