[pjsip] Using pjsua to create a mp3 stream

Marco Zissen maz at gmx.net
Tue Feb 19 07:18:14 EST 2008


Hi Jan,
 
this is because the recorded file uses fseek, which isn't supported by a
named pipe. So you'll need to pass the raw stream
to your named pipe without using fseek (with pseudo wave header or without a
wave header).
 
I already managed it to play internet radio over a named pipe using madplay
and pjsip. Recording is the same (but without wave header!!).
 
I think what Benny said is the easiest way to solve it.
 
You can also take a look at this custom port or try to compile the project
;-)
http://svn.v3v.de/svn/dtmfbox/trunk/port_filestream.c
 
You can write me an email, if you have any questions.
 
Best regards
Marco
 
  _____  

Von: pjsip-bounces at lists.pjsip.org [mailto:pjsip-bounces at lists.pjsip.org] Im
Auftrag von jvdsandt
Gesendet: Dienstag, 19. Februar 2008 10:10
An: pjsip at lists.pjsip.org
Betreff: [pjsip] Using pjsua to create a mp3 stream


Hello,

I'm trying to make the conversation of a conference call accessible as a Mp3
stream, similar to an Internet radio station.

For this I tried to use pjsua with the options "--null-audio
--rec-file=out.wav --auto-rec" and define out.wav as a named pipe. I can
than use another program to convert the output to mp3 and make it available
as a stream. Unfortunately pjsua doesn't work when out.wav is a named pipe
instead of a normal file.

Is there another way I can achieve the same result? Or do I need the help of
a C programmer to create this customazation on top the pjsip libraries?

Cheers,
Jan.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080219/8470ce6b/attachment.html>


More information about the pjsip mailing list