[Freeswitch-users] setting recording codec

ik idokan at gmail.com
Tue Nov 11 13:33:50 MSK 2014


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141111/6488aad1/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list