[Freeswitch-dev] questions about making a new endpoint
Hi, I'm working on a mod_rtsp endpoint the idea is to stream sip video to a rtsp client such as VLC and also a sip client could "call" a rtsp camera later. I copied some codes from mod_sofia and it is too long to understand for me so I'd like to get some inputs either highlight me how to do or point out where to read from mod_sofia. 1) VLC "calls" in as a-leg and bridge to a sip client with video(or play_fsv), I made it sort of working now, but - How to disable the read_frame and read_video frame io_routine ? I set them to NULL and it fails on read, so I made a fake read function there, kind of ugly. - I hard coded to H264 and I can see video on VLC, I'd like to do like sip later negotiation then when b-leg sip client offers SDP and offer to a-leg when DESCRIBE - looks like switch_io complains when no audio codec, is it possible to do video only calls? or is it possible to set audio and video rtp to a different path ? 2) Call a rtsp camera would be easy later 3) Maybe a client can call in and record? I don't have such a client. I would like to share the code later if others interested on this. Thanks, Seven. -- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn Sent with Sparrow (http://www.sparrowmailapp.com)
maybe you would want to contribute to the existing sound file vlc module and expand it to have endpoint functionality. On Mon, Mar 12, 2012 at 11:26 AM, Seven Du <dujinfang@gmail.com> wrote:
Hi,
I'm working on a mod_rtsp endpoint the idea is to stream sip video to a rtsp client such as VLC and also a sip client could "call" a rtsp camera later. I copied some codes from mod_sofia and it is too long to understand for me so I'd like to get some inputs either highlight me how to do or point out where to read from mod_sofia.
1) VLC "calls" in as a-leg and bridge to a sip client with video(or play_fsv), I made it sort of working now, but
- How to disable the read_frame and read_video frame io_routine ? I set them to NULL and it fails on read, so I made a fake read function there, kind of ugly.
- I hard coded to H264 and I can see video on VLC, I'd like to do like sip later negotiation then when b-leg sip client offers SDP and offer to a-leg when DESCRIBE
- looks like switch_io complains when no audio codec, is it possible to do video only calls? or is it possible to set audio and video rtp to a different path ?
2) Call a rtsp camera would be easy later
3) Maybe a client can call in and record? I don't have such a client.
I would like to share the code later if others interested on this.
Thanks, Seven.
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
Sent with Sparrow
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I believe William King (IRC: quentusrex) has some input on this subject... -MC On Mon, Mar 12, 2012 at 9:43 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
maybe you would want to contribute to the existing sound file vlc module and expand it to have endpoint functionality.
Seven, Currently the mod_vlc module supports acting as a client for rtsp streams. I'm in the middle of adding server support so that mod_vlc can stream out to clients the audio and video of a call. -William
Cool. I noticed mod_vlc the only problem is that I have problem to compile the VLC lib when I last try so I made a simple rtsp implementation. I'd like to not re-invent the wheel and merge the endpoint function into mod_vlc. May I directly commit into git? Can you highlight some points on my questions Anthony ? Or maybe you have better inputs when you see the code ;) On Tuesday, March 13, 2012 at 1:07 AM, William King wrote:
Seven,
Currently the mod_vlc module supports acting as a client for rtsp streams. I'm in the middle of adding server support so that mod_vlc can stream out to clients the audio and video of a call.
-William
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Hi William, Just want to let you know that I finally got VLC working on my Mac, instead of compile the src I linked directly to the VLC lib which works fine unless it caused me a lot of trouble for debugging. And I had something new. After Hundreds of crashes I finally made video playing working, it's an app like play_fsv and because vlc decode video into YUV I have to encode back into h264 with libx264. though it wasting resources it gives a nice feature so I can play a 1080p video and resize into CIF so an ordinary SIP client can play. I had little experience on video before this and when I experience hundreds or crashes I really understand how Anthony named FreeSWITCH 1.0 - Phoenix. I successfully played a 1080p Mpeg2TS/RTP stream feed by an hardware encoder, and some .mp4 files. Others untested but it should play anything that VLC can. I tried the get the original h264 data without transcoding to save resources, it seems no existing dummy decoder/filter, it maybe easy or hard to made one. http://mailman.videolan.org/pipermail/vlc-devel/2012-June/088960.html The code is a mess at the time and when I clean down I would commit to jira for review. Thanks, Seven. On Tuesday, March 13, 2012 at 9:20 AM, Seven Du wrote:
Cool. I noticed mod_vlc the only problem is that I have problem to compile the VLC lib when I last try so I made a simple rtsp implementation.
I'd like to not re-invent the wheel and merge the endpoint function into mod_vlc. May I directly commit into git? Can you highlight some points on my questions Anthony ? Or maybe you have better inputs when you see the code ;)
On Tuesday, March 13, 2012 at 1:07 AM, William King wrote:
Seven,
Currently the mod_vlc module supports acting as a client for rtsp streams. I'm in the middle of adding server support so that mod_vlc can stream out to clients the audio and video of a call.
-William
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (4)
-
Anthony Minessale
-
Michael Collins
-
Seven Du
-
William King