[Freeswitch-dev] rtp question

Seven Du dujinfang at gmail.com
Wed Jul 4 08:14:49 MSD 2012


Cool. Video is perfect now. ;) It was fun that some phones looks good without correct marker and some phones are totally plays shit. I see discussions about this in another thread and I thought in the h264 rtp spec that the marker is just used as an "early indication" and receivers are not encouraged to render video depending on that. 

Anyway, is that means I have to generate my own rtp header than just set "frame->m = 1" to set the marker?

also, can you explain a what  SFF_RTP_HEADER trying to do?

Thanks a lot.
7.


On Wednesday, July 4, 2012 at 4:23 AM, Anthony Minessale wrote:

> you found a regression, i fixed it in git, see latest
> 
> On Mon, Jul 2, 2012 at 9:56 PM, Seven Du <dujinfang at gmail.com (mailto:dujinfang at gmail.com)> wrote:
> > Hi,
> > 
> > libx264 encoded NALUs exceeding packet window and some phones don't like it
> > so I need to manually split with FU-A, I tried frame->m but looks like all
> > packets has marker = 1 even frame->m = 0;
> > 
> > by looking at mod_fsv.c, I added the following and generate my own rtp
> > header
> > 
> > switch_set_flag((&vid_frame), SFF_RAW_RTP);
> > switch_set_flag((&vid_frame), SFF_PROXY_PACKET);
> > 
> > but looks like it doens't send my rtp header, switch_rtp.c has a check also
> > on SWITCH_RTP_FLAG_RAW_WRITE which I don't see in mod_fsv.c
> > 
> > fwd = (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_RAW_WRITE) &&
> > switch_test_flag(frame, SFF_RAW_RTP)) ? 1 : 0;
> > 
> > 
> > I also tried set SFF_RTP_HEADER, but it tends to send double as packets
> > looks
> > 
> > if (switch_test_flag(frame, SFF_RTP_HEADER)) { in switch_rtp.c doesn't stop
> > and what the purpose of this param?
> > 
> > Any highlights?
> > 
> > Thanks.
> > 
> > 
> > --
> > About: http://about.me/dujinfang
> > Blog: http://www.dujinfang.com
> > Proj: http://www.freeswitch.org.cn
> > 
> > Sent with Sparrow
> > 
> > 
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org (mailto:consulting at freeswitch.org)
> > http://www.freeswitchsolutions.com
> > 
> > 
> > 
> > 
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://wiki.freeswitch.org
> > http://www.cluecon.com
> > 
> > Join Us At ClueCon - Aug 7-9, 2012
> > 
> > FreeSWITCH-dev mailing list
> > FreeSWITCH-dev at lists.freeswitch.org (mailto:FreeSWITCH-dev at lists.freeswitch.org)
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> > http://www.freeswitch.org
> > 
> 
> 
> 
> 
> -- 
> Anthony Minessale II
> 
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
> 
> AIM: anthm
> MSN:anthony_minessale at hotmail.com (mailto:anthony_minessale at hotmail.com)
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com (mailto:anthony.minessale at gmail.com)
> IRC: irc.freenode.net (http://irc.freenode.net) #freeswitch
> 
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org (mailto:888 at conference.freeswitch.org)
> googletalk:conf+888 at conference.freeswitch.org (mailto:conf+888 at conference.freeswitch.org)
> pstn:+19193869900
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org (mailto:consulting at freeswitch.org)
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> Join Us At ClueCon - Aug 7-9, 2012
> 
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org (mailto:FreeSWITCH-dev at lists.freeswitch.org)
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120704/76f7fb89/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list