RTP support -?

249 views
Skip to first unread message

chcat

unread,
May 8, 2013, 10:13:06 AM5/8/13
to c-rtmp...@googlegroups.com
Hello,
Online docs mention "IP-TV using MPEG-TS and RTSP/RTCP/RTP protocols", is that supported in commercial version only?
I have to find some solution for streaming of "live" h.264/AAC from camera/mic on Linux box to Android device with no flash support. Can it be done with GPL version? 
Thank you,
-V

C++ RTMP Server

unread,
May 8, 2013, 10:24:46 AM5/8/13
to c-rtmp...@googlegroups.com
Yes, it can, but is rather rigid. You have to assign a UDP/TCP acceptor and stamp it with a localStreamName="myStream". Any stream entering on that IP:PORT combo will have the name myStream.

I suggest you stick to TCP, not UDP

Best regards,
Andrei

------
C++ RTMP Server
Web: http://www.rtmpd.com
> --
> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "C++ RTMP Server" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to c-rtmp-serve...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

C++ RTMP Server

unread,
May 8, 2013, 10:28:12 AM5/8/13
to c-rtmp...@googlegroups.com
I am sorry, I think I misread your post.

Regarding android as a player, yes, is possible. crtmpserver has a RTSP server.
You better read this post in detail:
https://forum.evostream.com/viewtopic.php?f=5&t=12&p=98&hilit=android+h264#p98

It explains the hurdles you may encounter, and they are not crtmpserver/EvoStream related


Best regards,
Andrei
------
C++ RTMP Server
Web: http://www.rtmpd.com

chcat

unread,
May 10, 2013, 2:39:02 PM5/10/13
to c-rtmp...@googlegroups.com
Well, the server doesn't seem to have rtsp port 554 enabled. If I try to uncomment rtsp acceptor in lua file, I see the following errors:
 
/thelib/src/netio/epoll/tcpacceptor.cpp:75 Unable to bind on address: tcp://0.0.0.0:554; Error was: (13) Permission denied
/thelib/src/configuration/module.cpp:130 Unable to fire up acceptor from this config node: <MAP name="" isArray="false">
    <STR name="ip">0.0.0.0</STR>
    <UINT16 name="port">554</UINT16>
    <STR name="protocol">inboundRtsp</STR>
    <STR name="sslCert"></STR>
    <STR name="sslKey"></STR>
</MAP>
/thelib/src/configuration/module.cpp:107 Unable to configure acceptor:
<MAP name="" isArray="false">
    <STR name="ip">0.0.0.0</STR>
    <UINT16 name="port">554</UINT16>
    <STR name="protocol">inboundRtsp</STR>
    <STR name="sslCert"></STR>
    <STR name="sslKey"></STR>
</MAP>
/thelib/src/configuration/configfile.cpp:137 Unable to configure acceptors
/crtmpserver/src/crtmpserver.cpp:236 Unable to configure acceptors

Is there something special i have to do to enable RTSP?
Thanks,
-V

C++ RTMP Server

unread,
May 10, 2013, 7:59:44 PM5/10/13
to c-rtmp...@googlegroups.com
You need root to bind below 1024. if you want to downgrade the permissions, you can do so by specifying --pid and --gid in the command line. crtmpserver will run the bootstrapping as root (binding acceptors for example) than it will downgrade itself to the specified hid/gid

Best regards,
Andrei
------
C++ RTMP Server
Web: http://www.rtmpd.com

chcat

unread,
May 15, 2013, 9:42:16 AM5/15/13
to c-rtmp...@googlegroups.com
Still doesn't work...
First, where does the port number 5544 come from? ( URL in that topic https://forum.evostream.com/viewtopic.php?f=5&t=12&p=98&hilit=android+h264#p98 : rtsp://ip:5544/vod/some/inner/folders/test.mp4)
Seems from logs as RTSP port is 554.. Typo? And is the "stream name") is path to actual MP4 file, or SDP file?
Anyway, i tried and server sill cannot find the file. Also, I see couple of other errors:

/common/src/utils/buffering/iobuffer.cpp:110 Unable to read data. Size advertised by network layer was 262144. Permanent error: 2
/thelib/src/netio/epoll/tcpcarrier.cpp:78 Unable to read data. 98.101.179.172:554 -> 192.168.1.128:35017 CTCP(16) <-> [TCP(6)] <-> RTSP(7)
Reply all
Reply to author
Forward
0 new messages