How to call RTMP streams properly?
#1
Hello,

I am trying to play an rtmp stream in XBMC (latest nightly r32268) but I get "NetConnection.Connect.Rejected" errors. Handshaking is going fine, signature is ok, but still got the above error. The url I call is:

"rtmp://flash0.atv.hu/vod2/100615_tv_ugyvedje_1 playpath=foobar swfurl=http://static.atv.hu/flashes/ATV_Videoplayer_v2.swf swfvfy=true"

probably I am missing a step here. Below is the debug log. All help is appreciated. (The original site with the working embedded video is at http://atv.hu/videotar/20100616_a_tv_ugy..._15_1_resz )

Code:
18:04:14 T:5948 M:2264649728  NOTICE: DVDPlayer: Opening: rtmp://flash0.atv.hu/vod2/100615_tv_ugyvedje_1 playpath=foobar swfurl=http://static.atv.hu/flashes/ATV_Videoplayer_v2.swf swfvfy=true
18:04:14 T:5948 M:2264649728 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
18:04:14 T:5812 M:2264625152   DEBUG: thread start, auto delete: 0
18:04:14 T:5812 M:2264612864  NOTICE: Creating InputStream
18:04:14 T:5812 M:2264612864   DEBUG: Win32DllLoader::Load(special://xbmcbin/system/players/dvdplayer/librtmp.dll)
18:04:14 T:5812 M:2264428544    INFO: CDVDInputStreamRTMP::CDVDInputStreamRTMP: Using external libRTMP
18:04:14 T:5812 M:2263552000    INFO: Parsing...
18:04:14 T:5812 M:2263552000    INFO: Parsed protocol: 0
18:04:14 T:5812 M:2263552000    INFO: Parsed host    : flash0.atv.hu
18:04:14 T:5812 M:2263547904    INFO: Parsed app     : vod2
18:04:14 T:5948 M:2263416832   DEBUG: ------ Window Init (DialogBusy.xml) ------
18:04:14 T:5948 M:2263416832   DEBUG: Alloc resources: 0.01ms (0.00 ms skin load)
18:04:15 T:5812 M:2252828672    INFO: RTMP_Connect1, ... connected, handshaking
18:04:15 T:5812 M:2252828672    INFO: HandShake: Client type: 03
18:04:15 T:5812 M:2252828672    INFO: HandShake: Client digest offset: 53
18:04:15 T:5812 M:2252828672    INFO: HandShake: Initial client digest:
18:04:15 T:5812 M:2252828672    INFO: 13 52 d1 7b 23 40 12 0d f0 94 74 78 49 89 39 03
18:04:15 T:5812 M:2252828672    INFO: fe e2 36 0e ec 7f 74 21 0c 5e fb 2b 53 35 44 4a
18:04:15 T:5812 M:2252328960    INFO: HandShake: Type Answer   : 03
18:04:15 T:5812 M:2252328960    INFO: HandShake: Server Uptime : 361677800
18:04:15 T:5812 M:2252328960    INFO: HandShake: FMS Version   : 3.0.5.1
18:04:15 T:5812 M:2252324864    INFO: HandShake: Calculated digest key from secure key and server digest:
18:04:15 T:5812 M:2252324864    INFO: 3a ef 56 2e 91 de d0 ee 83 85 3d 57 e7 3e 73 b4
18:04:15 T:5812 M:2252324864    INFO: f2 14 e1 88 29 5b 5e b9 9c b0 74 4b 5e f5 ec 29
18:04:15 T:5812 M:2252324864    INFO: HandShake: Client signature calculated:
18:04:15 T:5812 M:2252324864    INFO: bd 3e eb a0 79 12 47 9e ce 72 b5 25 37 a8 27 e9
18:04:15 T:5812 M:2252324864    INFO: db b1 de cb d8 94 76 6f bd b6 75 e9 66 af c7 ef
18:04:15 T:5812 M:2252324864    INFO: HandShake: Server sent signature:
18:04:15 T:5812 M:2252324864    INFO: 14 fe b8 ca 87 a9 08 73 9d 44 7f 77 51 ec e3 9e
18:04:15 T:5812 M:2252324864    INFO: 4d 21 a8 25 55 e2 4e 52 6d c9 ed 15 31 f2 9d 55
18:04:15 T:5812 M:2252324864    INFO: HandShake: Digest key:
18:04:15 T:5812 M:2252324864    INFO: cb e2 12 f0 98 54 61 f3 97 ff b5 98 be 35 b9 50
18:04:15 T:5812 M:2252324864    INFO: 1c f0 4d d3 57 1a 54 f0 a4 d3 d8 05 0e 9a 5a c7
18:04:15 T:5812 M:2252324864    INFO: HandShake: Signature calculated:
18:04:15 T:5812 M:2252324864    INFO: 14 fe b8 ca 87 a9 08 73 9d 44 7f 77 51 ec e3 9e
18:04:15 T:5812 M:2252324864    INFO: 4d 21 a8 25 55 e2 4e 52 6d c9 ed 15 31 f2 9d 55
18:04:15 T:5812 M:2252320768    INFO: HandShake: Genuine Adobe Flash Media Server
18:04:15 T:5812 M:2252320768    INFO: HandShake: Handshaking finished....
18:04:15 T:5812 M:2252320768    INFO: RTMP_Connect1, handshaked
18:04:15 T:5812 M:2252312576    INFO: Invoking connect
18:04:15 T:5812 M:2252304384    INFO: HandleServerBW: server BW = 2500000
18:04:15 T:5812 M:2252304384    INFO: HandleClientBW: client BW = 2500000 2
18:04:15 T:5812 M:2252304384    INFO: HandleCtrl, received ctrl. type: 0, len: 6
18:04:15 T:5812 M:2252304384    INFO: HandleCtrl, Stream Begin 0
18:04:15 T:5812 M:2252304384    INFO: RTMP_ClientPacket, received: invoke 126 bytes
[b][color=maroon]18:04:15 T:5812 M:2252304384    INFO: (object begin)
18:04:15 T:5812 M:2252292096    INFO: Property: <Name:           no-name., STRING:    _error>
18:04:15 T:5812 M:2252271616    INFO: Property: <Name:           no-name., NUMBER:    1.00>
18:04:15 T:5812 M:2252271616    INFO: Property: NULL
18:04:15 T:5812 M:2252271616    INFO: Property: <Name:           no-name., OBJECT>
18:04:15 T:5812 M:2252271616    INFO: (object begin)
18:04:15 T:5812 M:2252271616    INFO: Property: <Name:              level, STRING:    error>
18:04:15 T:5812 M:2252271616    INFO: Property: <Name:               code, STRING:    NetConnection.Connect.Rejected>
18:04:15 T:5812 M:2252271616    INFO: Property: <Name:        description, STRING:    Connection failed.>
18:04:15 T:5812 M:2252271616    INFO: Property: <Name:        application, BOOLEAN:    FALSE>
18:04:15 T:5812 M:2252271616    INFO: (object end)
18:04:15 T:5812 M:2252271616    INFO: Previous line repeats 1 times.
18:04:15 T:5812 M:2252271616    INFO: HandleInvoke, server invoking <_error>
18:04:15 T:5812 M:2252267520   ERROR: rtmp server sent error
[/color][/b]18:04:15 T:5812 M:2252267520    INFO: RTMP_ClientPacket, received: invoke 18 bytes
18:04:15 T:5812 M:2252267520    INFO: (object begin)
18:04:15 T:5812 M:2252267520    INFO: Property: <Name:           no-name., STRING:    close>
18:04:15 T:5812 M:2252267520    INFO: Property: <Name:           no-name., NUMBER:    0.00>
18:04:15 T:5812 M:2252267520    INFO: Property: NULL
18:04:15 T:5812 M:2252267520    INFO: (object end)
18:04:15 T:5812 M:2252267520    INFO: HandleInvoke, server invoking <close>
18:04:15 T:5812 M:2252267520   ERROR: rtmp server requested close
18:04:15 T:5812 M:2252267520   ERROR: CDVDPlayer::OpenInputStream - error opening [rtmp://flash0.atv.hu/vod2/100615_tv_ugyvedje_1]
18:04:15 T:5812 M:2252267520  NOTICE: CDVDPlayer::OnExit()
18:04:15 T:5812 M:2252267520  NOTICE: CDVDPlayer::OnExit() deleting input stream
18:04:15 T:5812 M:2252554240   DEBUG: Thread 5812 terminating
18:04:15 T:5948 M:2253148160   DEBUG: CAnnouncementManager - Announcement: PlaybackStopped from xbmc
18:04:15 T:5948 M:2253148160   ERROR: Playlist Player: skipping unplayable item: 0, path [rtmp://flash0.atv.hu/vod2/100615_tv_ugyvedje_1 playpath=foobar swfurl=http://static.atv.hu/flashes/ATV_Videoplayer_v2.swf swfvfy=true]
18:04:15 T:5948 M:2253148160   DEBUG: Playlist Player: one or more items failed to play... aborting playback
Reply
#2
Your playpath looks a bit off there? Is foobar really the playpath Wink

I recently did some of this, and found it was easiest to get it working in rtmpdump first (from over at mplayer.hu).

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
lol thank you i see i posted the wrong log (one of my numerous failed experiment). But pointing that out I went through the forum again looking for other possible stream properties and turned out the "pageURL" was needed to do the communication. Thnx again.

Here is the final working url I pass to XBMC:

'rtmp://flash0.atv.hu/vod2/100615_tv_ugyvedje_1 pageURL=http://atv.hu/flashRouter.php swfurl=http://static.atv.hu/flashes/ATV_Videoplayer_v2.swf swfvfy=true'
Reply

Logout Mark Read Team Forum Stats Members Help
How to call RTMP streams properly?0