[ previous ] [ next ] [ threads ]
 To :  "Paul Chitescu" <paulc@v...>
 From :  "Roeland Werring" <ruleking@g...>
 Subject :  Re: [yate] mux for exiting channel duplex recording [was duplex recording]
 Date :  Wed, 28 May 2008 13:18:02 +0200
I'm sure that sounds really nice, i will check it out :)

But the reason for duplex recording for me is saving 50% disk space, that is
why i tried to record two audio stream a single alaw or mulaw file.

On Wed, May 28, 2008 at 12:54 PM, Paul Chitescu  wrote:

> Hello, Roeland!
>
> You can save stereo .au files and you can also save raw stereo .2alaw
> .2mulaw or .2slin files. Listening these stereo files provides a quite
> interesting experience.
>
> Regards,
>
> Paul
>
>
>
> On Wed, 28 May 2008, Roeland Werring wrote:
>
>> Hi Maciek,
>>
>> I managed to combine combine both call and peer in one datasource with the
>> mux module. After that, i connected it to a dumbchannel, and tried to
>> record
>> it. Unfortunately, the codecs of this datasource is different, it is
>> something called 2*alaw or 2*ulaw, which is not supported by wavefile.cpp
>> (or lazyrec). There are no datatranslators available for converting this
>> to
>> a normal audio format, so i got bit stuck there.
>>
>> Other things i tried in the past:
>> * Make a conference out of every call. This way, you can just record the
>> conference in a single file. This is also handy, if you would like to have
>> a
>> listener function, a supervisor could listen to the conference with voice
>> disabled for quality control. This is of course not so good for the
>> performance of yate, and I found out that with 40 channels, it started to
>> get instable (gave the error "could not lock conference room" quite often)
>> * Make a conference out of the datasources which you can get by using the
>> "addsniffer" method in a callendpoint. Still not great for performance,
>> but
>> seems to work.
>>
>> In the meanwhile, the solution we are using now is not really going to win
>> international coding awards, but works: Whenever a channel that was being
>> recorded hangsup, it just execute a shell script that merges the local and
>> peer audio file in one file with Sox.
>>
>> R.
>>
>> On Tue, May 27, 2008 at 8:42 PM, Maciek Kaminski 
>> wrote:
>>
>>  Hi,
>>>
>>> I would like to use mux module for duplex recording. After reading
>>> sources
>>> and consulting on irc it seems that it is a kind of helper for new
>>> channels
>>> like analog.cpp and is not meant to multiplex sources of existing (ysip
>>> for
>>> example) channels.
>>>
>>> If I am right I would like to have here a short discussion what and how
>>> to
>>> change to make mux usable for duplex recording.
>>>
>>> My idea is to implement another way of creating muxsource from
>>> dataendpoint. Instead of multiplexing given sources it would connect its
>>> consumers to dataendpoint sources via setCall/PeerRecord.
>>>
>>> setCall/PeerRecord would also handle format translations.
>>>
>>> What do You think?
>>>
>>> mk
>>>
>>>
>>
>>
>> --
>> Roeland Werring
>>
>> http://www.werring.net
>>
>> http://www.azertisoftware.com/
>>
>> http://www.pokertips.nl
>> http://www.info4poker.com
>> http://www.pokertips.ru
>> http://www.pokerauskunft.de
>> http://www.pokerplaying.se
>> http://www.poquerinfo.com
>>
>>


-- 
Roeland Werring

http://www.werring.net

http://www.azertisoftware.com/

http://www.pokertips.nl
http://www.info4poker.com
http://www.pokertips.ru
http://www.pokerauskunft.de
http://www.pokerplaying.se
http://www.poquerinfo.com



I'm sure that sounds really nice, i will check it out :)

But the reason for duplex recording for me is saving 50% disk space, that is why i tried to record two audio stream a single alaw or mulaw file.

On Wed, May 28, 2008 at 12:54 PM, Paul Chitescu <paulc@v...> wrote:
Hello, Roeland!

You can save stereo .au files and you can also save raw stereo .2alaw .2mulaw or .2slin files. Listening these stereo files provides a quite interesting experience.

Regards,

Paul



On Wed, 28 May 2008, Roeland Werring wrote:
Hi Maciek,

I managed to combine combine both call and peer in one datasource with the
mux module. After that, i connected it to a dumbchannel, and tried to record
it. Unfortunately, the codecs of this datasource is different, it is
something called 2*alaw or 2*ulaw, which is not supported by wavefile.cpp
(or lazyrec). There are no datatranslators available for converting this to
a normal audio format, so i got bit stuck there.

Other things i tried in the past:
* Make a conference out of every call. This way, you can just record the
conference in a single file. This is also handy, if you would like to have a
listener function, a supervisor could listen to the conference with voice
disabled for quality control. This is of course not so good for the
performance of yate, and I found out that with 40 channels, it started to
get instable (gave the error "could not lock conference room" quite often)
* Make a conference out of the datasources which you can get by using the
"addsniffer" method in a callendpoint. Still not great for performance, but
seems to work.

In the meanwhile, the solution we are using now is not really going to win
international coding awards, but works: Whenever a channel that was being
recorded hangsup, it just execute a shell script that merges the local and
peer audio file in one file with Sox.

R.

On Tue, May 27, 2008 at 8:42 PM, Maciek Kaminski <maciejka@t...>
wrote:

Hi,

I would like to use mux module for duplex recording. After reading sources
and consulting on irc it seems that it is a kind of helper for new channels
like analog.cpp and is not meant to multiplex sources of existing (ysip for
example) channels.

If I am right I would like to have here a short discussion what and how to
change to make mux usable for duplex recording.

My idea is to implement another way of creating muxsource from
dataendpoint. Instead of multiplexing given sources it would connect its
consumers to dataendpoint sources via setCall/PeerRecord.

setCall/PeerRecord would also handle format translations.

What do You think?

mk




--
Roeland Werring

http://www.werring.net

http://www.azertisoftware.com/

http://www.pokertips.nl
http://www.info4poker.com
http://www.pokertips.ru
http://www.pokerauskunft.de
http://www.pokerplaying.se
http://www.poquerinfo.com




--
Roeland Werring

http://www.werring.net

http://www.azertisoftware.com/

http://www.pokertips.nl
http://www.info4poker.com
http://www.pokertips.ru
http://www.pokerauskunft.de
http://www.pokerplaying.se
http://www.poquerinfo.com