[Freeswitch-users] setting recording codec
Ben Langfeld
ben at langfeld.co.uk
Tue Nov 11 16:49:43 MSK 2014
Brian, was this answer supposed to be to some other question? The question
here was about transcoding the recording, not about stereo vs two mono
recordings...
On 11 November 2014 11:35, Brian West <brian at freeswitch.org> wrote:
> just record to a file without any extension.
>
> <extension name="testing">
>
>
> <condition field="destination_number" expression="^(1213)$">
>
>
>
> <action application="answer"/>
>
>
>
> <action application="record_session" data="/tmp/${uuid}-testing"/>
>
>
>
> <action application="sleep" data="50000"/>
>
>
>
> </condition>
>
>
>
> </extension>
>
>
> 2014-11-11 07:32:26.713403 [INFO] mod_native_file.c:101 Opening File
> [/tmp/6f1e83a6-1d06-4e31-b641-7d4f825c99d6-testing-in.G722] 16000hz
>
> 2014-11-11 07:32:26.713403 [INFO] mod_native_file.c:101 Opening File
> [/tmp/6f1e83a6-1d06-4e31-b641-7d4f825c99d6-testing-out.G722] 16000hz
>
> Now you'll be all set to waste more time dealing with two files vs the
> single wav file.
>
> On Tue, Nov 11, 2014 at 4:33 AM, ik <idokan at gmail.com> wrote:
>
>> In this specific case, I'm using g711, but can have either a-law or u-law
>> but the service that requires the recording understand only a-law, at the
>> moment I'm using ffmpeg to convert after the call ended, and then send it
>> to that service.
>>
>> Thanks
>> Ido
>> On Nov 11, 2014 12:24 PM, "Stanislav Sinyagin" <ssinyagin at gmail.com>
>> wrote:
>>
>>> 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
>>>
>>> _________________________________________________________________________
>>> 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
>>
>
>
>
> --
>
> *Brian West*
> brian at freeswitch.org
>
>
> *Twitter: @FreeSWITCH , @briankwest*
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
>
> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>
> _________________________________________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141111/1be7daf8/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list