On Saturday, September 1, 2012 at 1:28 AM, Anthony Minessale wrote:
when you have multiple channels it still only uses the len of onechannel assuming you will multiply that len by the * of channels forthe real size.On Thu, Aug 30, 2012 at 10:15 PM, Seven Du <dujinfang@gmail.com> wrote:ok, I figured out when use conference record, handle->channels = 1, but inuuid_record, handle->channels = 2, so the following code did the trick infsv_file_write, but I'm not sure if it's the write approach. Why the *len isalways 160 in both cases? where the other half channel data goes to? I useplay_fsv so the playback should be right. Only tested on 8000HZ right now.If the following code is confusing I can submit a full patch. Thanks.uint16_t *x = data;if (handle->channels == 2) {/* should we use only one channel ? */for (int i=0; i<160; i++) {x[i] = x[i*2];}}--Seven DuSent with SparrowOn Friday, August 31, 2012 at 8:34 AM, Anthony Minessale wrote:Right now it always does raw l16 in any of the io or file funcsOn Aug 30, 2012 7:23 PM, "dujinfang" <dujinfang@gmail.com> wrote:yes, my problem is how to make sure switch_file_write always get L16 data when trigger by uuid_record?thanks发自我的 iPhone在 2012-8-31,上午4:36,Anthony Minessale <anthony.minessale@gmail.com> 写道:yes, currently the fsv format expects L16 audioOn Thu, Aug 30, 2012 at 4:00 AM, Seven Du <dujinfang@gmail.com> wrote:Hi,If you noticed the video-media-bug branch, I managed to record a videofilewith the following methodsconference 3000 record /tmp/testrecord.fsvuuid_record <uuid> start /tmp/testrecord.fsvThe first command works perfect as conference voice is L16, but the lastonehas bad audio I guess because it's PCMU ?.I noticed a SWITCH_FILE_NATIVE flags which is supposed to disabletranscoding but in my case in mod_fsv the flag is not set so should ittranscode to L16 before writing to the fsv file?Thanks.--Seven DuSent with Sparrow_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesFreeSWITCH-dev mailing list--Anthony Minessale IIFreeSWITCH http://www.freeswitch.org/ClueCon http://www.cluecon.com/Twitter: http://twitter.com/FreeSWITCH_wireAIM: anthmGTALK/JABBER/PAYPAL:anthony.minessale@gmail.comIRC: irc.freenode.net #freeswitchFreeSWITCH Developer Conferencegoogletalk:conf+888@conference.freeswitch.orgpstn:+19193869900_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesFreeSWITCH-dev mailing list_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesFreeSWITCH-dev mailing list_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesFreeSWITCH-dev mailing list_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesFreeSWITCH-dev mailing list--Anthony Minessale IIFreeSWITCH http://www.freeswitch.org/ClueCon http://www.cluecon.com/Twitter: http://twitter.com/FreeSWITCH_wireAIM: anthmGTALK/JABBER/PAYPAL:anthony.minessale@gmail.comIRC: irc.freenode.net #freeswitchFreeSWITCH Developer Conferencegoogletalk:conf+888@conference.freeswitch.orgpstn:+19193869900_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesFreeSWITCH-dev mailing list