cant watch stream when convert rtsp to rtmp

323 views
Skip to first unread message

byevge...@gmail.com

unread,
Sep 12, 2013, 4:42:17 AM9/12/13
to c-rtmp...@googlegroups.com
Hello!
I successfully installed crtmpserver last revision, changed flvplayback externalStreams section to this,
also i change mediaFolder to "/home/yevgeniy/media".

                                 {
                                        uri="rtsp://192.168.1.202:8086",
                                        localStreamName="stream"
                                },

I know that crtmpserver successfully connected to my rtsp server, but i cant watch it in my  MoviePlay using link "rtmp://127.0.0.1/flvplayback/stream". To sample file in mediaFolder i can successfully connect from MoviePlayer.


full log from start to end.

/crtmpserver/src/crtmpserver.cpp:276 GO! GO! GO! (2928)
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 12->13 IOHT_TCP_CARRIER
/thelib/include/netio/epoll/tcpconnector.h:99 Outbound connection established: (Far: 192.168.1.202:8086; Near: 172.20.1.132:53736) CTCP(14) <-> TCP(3) <-> [RTSP(4)]
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 13->12 IOHT_TCP_CONNECTOR
/thelib/src/protocols/rtp/sdp.cpp:138 Audio track index 0 not found
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 12->13 IOHT_UDP_CARRIER
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 13->14 IOHT_UDP_CARRIER
/thelib/src/application/baseclientapplication.cpp:244 Stream INP(1) with name `stream` from protocol RTSP(4) registered to application `flvplayback`
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 14->15 IOHT_TIMER
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 15->16 IOHT_TCP_CARRIER
/thelib/src/netio/epoll/tcpacceptor.cpp:187 Inbound connection accepted: (Far: 127.0.0.1:57152; Near: 127.0.0.1:1935) CTCP(17) <-> TCP(10) <-> [IR(11)]
/applications/appselector/src/rtmpappprotocolhandler.cpp:81 Selected application: flvplayback
/thelib/src/application/baseclientapplication.cpp:239 Protocol (Far: 127.0.0.1:57152; Near: 127.0.0.1:1935) CTCP(17) <-> TCP(10) <-> [IR(11)] unregistered from application: appselector
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1462 Default implementation of ProcessInvokeGeneric: Request: _checkbw
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1036 Play request for stream name `stream`. Start: 0; length: -1000
/thelib/src/mediaformats/readers/streammetadataresolver.cpp:295 Stream name stream not found in any storage
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1108 Unable to link streams
/thelib/src/protocols/rtmp/basertmpprotocol.cpp:1049 Unable to send rtmp message to application
/thelib/src/netio/epoll/tcpcarrier.cpp:91 Unable to read data from connection: (Far: 127.0.0.1:57152; Near: 127.0.0.1:1935) CTCP(17) <-> [TCP(10)] <-> IR(11). Signaling upper protocols failed
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 16->15 IOHT_TCP_CARRIER
/thelib/src/application/baseclientapplication.cpp:239 Protocol [IR(11)] unregistered from application: flvplayback

I dont kmow what to do with it, please help me!


C++ RTMP Server

unread,
Sep 12, 2013, 6:27:23 AM9/12/13
to c-rtmp...@googlegroups.com
Hi,

The problem is with your play request parameters. "Play request for stream name `stream`. Start: 0; length: -1000"

Please read about the start and len parameters for netStream.Play function:
http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/help.html?content=00000185.html

In you case, you exclusively request the file called stream to be played, not the live stream

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.

byevge...@gmail.com

unread,
Sep 12, 2013, 10:27:12 AM9/12/13
to c-rtmp...@googlegroups.com
I tried to change start of the file but still have no result. Here is log of crtmpserver when client( rtmpdump) connected

/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1036 Play request for stream name `stream`. Start: -1000; length: -1000
/thelib/src/application/baseclientapplication.cpp:244 Stream ONR4TS(4) with name `stream` from protocol IR(17) registered to application `flvplayback`

rtmpdump log is this when connect like "rtmpdump -r "rtmp://localhost/live/stream" --live " 

Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
Starting Live Stream
INFO: Metadata:
INFO:   width                 640.00
INFO:   height                360.00
INFO:   videocodecid          avc1
INFO:   audiocodecid          mp4a
INFO:   Server                C++ RTMP Media Server (www.rtmpd.com)
INFO:   audiochannels         2.00
INFO:   audiosamplerate       44100.00
INFO:   avclevel              30.00
INFO:   avcprofile            77.00
INFO:   bandwidth             0.00
INFO:   stereo                TRUE

then it thinking about 30 seconds and write 

ERROR: RTMP_ReadPacket, failed to read RTMP packet header


четверг, 12 сентября 2013 г., 11:42:17 UTC+3 пользователь byevge...@gmail.com написал:

byevge...@gmail.com

unread,
Sep 15, 2013, 5:07:42 AM9/15/13
to c-rtmp...@googlegroups.com
i successfully watch the stream when i was streaming file via ffmpeg to crtmp protocol IncomingUDPT but with rtsp external stream flvdump write that server send error.
Can you tell me what should be send to crtmpserver when i send file. Because i create in my application live flv file and want to stream it to rtmp
Reply all
Reply to author
Forward
0 new messages