[Freeswitch-users] setting recording codec
Stanislav Sinyagin
ssinyagin at gmail.com
Tue Nov 11 13:21:53 MSK 2014
as far as I understand, FreeSWITCH chooses the WAV parameters which
are matching the current channel sampling frequency and codec. For
example, if you record a G722 call, you would get a 16kHZ WAV file.
Forcing it into one specific encoding would add real-time CPU load. I
think it's still more preferable to run a post-processing job in low
priority -- this way you ensure that the ongoing calls get the best
serving.
You can easily catch the event of call ending and trigger the
conversion job, by listening to the events via ESL connection.
On Tue, Nov 11, 2014 at 10:52 AM, ik <idokan at gmail.com> wrote:
> Thinking in learning better the source code, and might create my first patch
> to FS :)
>
> On Tue, Nov 11, 2014 at 8:09 AM, Seven Du <dujinfang at gmail.com> wrote:
>>
>> No. Maybe bounty it?
>>
>> On Monday, November 10, 2014 at 8:53 PM, ik wrote:
>>
>> Hello,
>>
>> I could not find any documentation on this subject.
>> I require to have a recording of an a-law wav file (RIFF (little-endian)
>> data, WAVE audio, ITU G.711 A-law, mono 8000 Hz).
>>
>> Can I set a variable that tells the record command what type of codec to
>> store the file with ?
>>
>> I know how to convert a normal wav recording into it using ffmpeg (for
>> example):
>>
>> $ ffmpeg -i 0.wav -ar 8000 -ac 1 -acodec pcm_alaw 0-alaw.wav
>>
>> But I wish to avoid it, if I can use the record app, or use the
>> uuid_record API for it.
>>
>> Thanks,
>> Ido
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list