can i transcode a RTMP live stream to RTSP stream through CRtmpServer and how can I DO?

3,135 views
Skip to first unread message

陈怀章

unread,
Aug 8, 2013, 3:47:12 AM8/8/13
to c-rtmp...@googlegroups.com
Thank you very much!

C++ RTMP Server

unread,
Aug 8, 2013, 10:27:28 PM8/8/13
to c-rtmp...@googlegroups.com
If you mean changing the container from RTMP to RTSP, yes that is possible: get the RTMP stream inside crtmpserver via either standard publish from an encoder or get it via externalStreams config section. Than, all you need to do is to play it back like this:

rtsp://ip:port/myStreamName

Where the ip:port are the ones from the config file where RTSP is bound (acceptors sections)

Best regards,
Andrei

On Aug 8, 2013, at 10:47 AM, 陈怀章 <chenuaiz...@gmail.com> wrote:

> Thank you very much!
>
> --
> 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
crtmp...@gmail.com



Hunter

unread,
Aug 14, 2013, 2:56:54 AM8/14/13
to c-rtmp...@googlegroups.com
thanks your reply ,and i will try.


2013/8/9 C++ RTMP Server <crtmp...@gmail.com>
You received this message because you are subscribed to a topic in the Google Groups "C++ RTMP Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/c-rtmp-server/ePJI4Q-ITB8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to c-rtmp-serve...@googlegroups.com.

Hunter

unread,
Aug 14, 2013, 7:41:18 AM8/14/13
to c-rtmp...@googlegroups.com
hi ,I had try it  . My  configuration file  is transfered .  and i use VLC player play  the rtsp stream. but it can't work. like: rtsp://192.168.56.101:554/myapp/test;(test is name of my rtmp stream name.) . please help .


2013/8/14 Hunter <chenuaiz...@gmail.com>
crtmpserver.lua

Streaming Media

unread,
Aug 17, 2013, 8:23:30 AM8/17/13
to c-rtmp...@googlegroups.com
Dear Andrei,

I am facing similar problem when getting RTSP/RTP stream from RTMPD
server. In my case video is there but no audio on VLC player (vlc
acting as RTSP client and rtmpd acts as rtsp server). Plus Video stops
in between ans starts automatically immediately. is there specific
configuration of AAC that i need to set while sending aac data to
RTMPD server and receive on RTSP/RTP?

Thanks in advance

C++ RTMP Server

unread,
Aug 17, 2013, 8:27:14 PM8/17/13
to c-rtmp...@googlegroups.com
Can you make that input stream available for some tests? Please send me a private message with that link, I will try to test it

------
C++ RTMP Server
Web: http://www.rtmpd.com

Streaming Media

unread,
Aug 19, 2013, 12:33:08 AM8/19/13
to c-rtmp...@googlegroups.com
Dear Andrie,

I am playing static file (mp4) playing using ffmpeg towards RTMPD
server. Below is my flow:

ffmpeg (mp4 file) --> RTMP --> RTMPD Server -- RTSP --> VLC.

Thanks

C++ RTMP Server

unread,
Aug 19, 2013, 6:25:49 AM8/19/13
to c-rtmp...@googlegroups.com
Random question… when you use ffmpeg, you use it with "-re" on the input, right?

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

Streaming Media

unread,
Aug 20, 2013, 2:11:30 PM8/20/13
to c-rtmp...@googlegroups.com
yes i use "-re" option.still there is issue

Streaming Media

unread,
Aug 27, 2013, 3:13:26 AM8/27/13
to c-rtmp...@googlegroups.com
Hi Andrie, Any suggestion on that. how can i fix the given problem.
Waiting for your inputs.

Thanx in Advance

Hassan Ullah Hashmi

unread,
Aug 24, 2014, 12:23:15 PM8/24/14
to c-rtmp...@googlegroups.com
I have tried it just the way it is described here. RTMP output is working fine but when I try to play RTSP

rtsp://IP:PORT/mySteamName in VLC player it fails.

log file shows following messages:

1408897372:4:/thelib/src/netio/epoll/iohandlermanager.cpp:120:RegisterIOHandler:Handlers count changed: 4->5 IOHT_TCP_CARRIER
1408897372:3:/thelib/src/netio/epoll/tcpacceptor.cpp:185:Accept:Client connected: 182.178.196.232:53713 -> 162.243.241.140:554
1408897372:0:/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp:1759:AnalyzeUri:Stream named stream1 not found
1408897372:0:/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp:494:HandleRTSPRequestDescribe:URI analyzer failed
1408897372:0:/thelib/src/protocols/rtp/rtspprotocol.cpp:276:SignalInputData:Unable to handle content
1408897372:0:/thelib/src/netio/epoll/tcpcarrier.cpp:89:OnEvent:Unable to signal data available
1408897372:4:/thelib/src/netio/epoll/iohandlermanager.cpp:130:UnRegisterIOHandler:Handlers count changed: 5->4 IOHT_TCP_CARRIER
1408897372:6:/thelib/src/protocols/protocolmanager.cpp:45:EnqueueForDelete:Enqueue for delete for protocol [RTSP(18)]
1408897372:6:/thelib/src/application/baseclientapplication.cpp:246:UnRegisterProtocol:Protocol [RTSP(18)] unregistered from application: flvplayback
1408897373:4:/thelib/src/netio/epoll/iohandlermanager.cpp:120:RegisterIOHandler:Handlers count changed: 4->5 IOHT_TCP_CARRIER
1408897373:3:/thelib/src/netio/epoll/tcpacceptor.cpp:185:Accept:Client connected: 182.178.196.232:53716 -> 162.243.241.140:554
1408897373:0:/thelib/src/netio/epoll/tcpcarrier.cpp:78:OnEvent:Unable to read data. 182.178.196.232:53716 -> 162.243.241.140:554 CTCP(9) <-> [TCP(19)] <-> RTSP(20)
1408897373:4:/thelib/src/netio/epoll/iohandlermanager.cpp:130:UnRegisterIOHandler:Handlers count changed: 5->4 IOHT_TCP_CARRIER
1408897373:6:/thelib/src/protocols/protocolmanager.cpp:45:EnqueueForDelete:Enqueue for delete for protocol [RTSP(20)]
1408897373:6:/thelib/src/application/baseclientapplication.cpp:246:UnRegisterProtocol:Protocol [RTSP(20)] unregistered from application: flvplayback
Reply all
Reply to author
Forward
0 new messages