[Freeswitch-users] mod_rtmp codec
paulcuttler at gmail.com
Mon Sep 7 10:11:45 MSD 2015
There were just a couple of changes required and it works well.
In the rtmp_tech_init() function of mod_rtmp.c, where it says SPEEX, I
just changed it to PCMU or PCMA, and where the codec value was 0xB2
changed it to 0x82 or 0x72 respectively.
On 26/08/2015 1:13 AM, I put the Who? in Mishehu wrote:
> I don't have the code in front of me, but I had looked at it in the
> past. It is most definitely possible to use pcmu/a if the version of
> flash interacting with mod_rtmp is supporting those codecs (they should
> these days). The trick here is that you have to have the client select
> pcmu, and somehow have it tell mod_rtmp to select it as well, then
> initialize the codec on the current channel to be pcmu. On the audio
> stream going from mod_rmtp to the client, you need to modify the head of
> each packet (I can't remember offhand if it's 8, 16, or 32 bits wide) to
> match the FLV type that identifies the stream as pcmu at X channels
> (where X is however many you are supporting).
> i hope that I've at least giving you a pointer in the correct direction.
> On 08/25/2015 01:26 AM, Paul Cuttler wrote:
>> It looks like mod_rtmp has the codec hard-coded to Speex. I was
>> wondering if there was issues with getting other codecs to work. We'd
>> really like to use PCMA/U.
>> I've tried changing a couple of lines of code where the codec is set and
>> it works okay in the incoming (play) direction, but is terribly
>> distorted or just absent in the outgoing (publish) direction.
>> Could someone please advise whether it's possible to use other codecs,
>> and where I'm best to get started.
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> Official FreeSWITCH Sites
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users