RTMP streaming problems
#1
Hey guys,

I am having some trouble getting a RTMP stream to play through XBMC.

The following rtmpdump command works flawlessly and will output a file that can be played using a player like VLC:
Code:
rtmpdump.exe -r "rtmp://www.teledunet.com:1935/teledunet" -a "teledunet" -s "http://www.teledunet.com/tv/player.swf?repeat=always&autostart=true&stretching_=none&id0=2690149505650&streamer=rtmp%3A//www.teledunet.com%3A1935/teledunet&file=afasi_tv&provider=rtmp&skin=bekle/bekle.xml" -y "afasi_tv" -o test.flv

I convert the above command to a XBMC URL as follows:
Code:
rtmp://www.teledunet.com:1935/teledunet app=teledunet swfUrl=http://www.teledunet.com/tv/player.swf?repeat=always&autostart=true&stretching_=none&id0=2690149505650&streamer=rtmp%3A//www.teledunet.com%3A1935/teledunet&file=afasi_tv&provider=rtmp&skin=bekle/bekle.xml" playpath=afasi_tv

The above URL is not working in XBMC. I get the following error:
Code:
00:53:28 T:5200  NOTICE: DVDPlayer: Opening: rtmp://www.teledunet.com:1935/teledunet app=teledunet swfUrl=http://www.teledunet.com/tv/player.swf?repeat=always&autostart=true&stretching_=none&id0=2690149505650&streamer=rtmp://www.teledunet.com:1935/teledunet&file=afasi_tv&provider=rtmp&skin=bekle/bekle.xml playpath=afasi_tv flashVer=WIN 11,3,372,94
00:53:28 T:5200 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:53:28 T:424  NOTICE: Creating InputStream
00:53:30 T:424   ERROR: Closing connection: NetStream.Play.StreamNotFound
00:53:30 T:424   ERROR: CDVDPlayer::OpenInputStream - error opening [rtmp://www.teledunet.com:1935/teledunet app=teledunet swfUrl=http://www.teledunet.com/tv/player.swf?repeat=always&autostart=true&stretching_=none&id0=2690149505650&streamer=rtmp://www.teledunet.com:1935/teledunet&file=afasi_tv&provider=rtmp&skin=bekle/bekle.xml playpath=afasi_tv flashVer=WIN 11,3,372,94 ]
00:53:30 T:424  NOTICE: CDVDPlayer::OnExit()
00:53:30 T:424  NOTICE: CDVDPlayer::OnExit() deleting input stream
00:53:30 T:5200   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://...]
00:53:30 T:5200  NOTICE: CDVDPlayer::CloseFile()
00:53:30 T:5200 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:53:30 T:5200  NOTICE: DVDPlayer: waiting for threads to exit
00:53:30 T:5200  NOTICE: DVDPlayer: finished waiting

Appreciate any insight to what the problem could be.
Cheers!
Reply
#2
NetStream.Play.StreamNotFound - usually this (for me) is incorrect playpath but if it's working in rtmpdump I'd try other things.

You might try adding the 'Pageurl' and/or 'swfVfy' param to the XBMC URL. Also you might try the 'swfUrl' without any params.
Reply
#3
(2012-12-27, 14:55)divingmule Wrote: NetStream.Play.StreamNotFound - usually this (for me) is incorrect playpath but if it's working in rtmpdump I'd try other things.

You might try adding the 'Pageurl' and/or 'swfVfy' param to the XBMC URL. Also you might try the 'swfUrl' without any params.
Thanks for your reply divingmule.

No luck with any of the combination that you have mentioned.

1. Replaced swfUrl with swfVfy. Got the following error instead:
Code:
02:15:59 T:8504   ERROR: rtmp server sent error
02:15:59 T:8504   ERROR: rtmp server requested close
02:15:59 T:8504   ERROR: CDVDPlayer::OpenInputStream - error opening [rtmp://www.teledunet.com:1935/teledunet app=teledunet swfVfy=http://www.teledunet.com/tv/player.swf?repeat=always&autostart=true&stretching_=none&id0=2690149505650&streamer=rtmp://www.teledunet.com:1935/teledunet&file=afasi_tv&provider=rtmp&skin=bekle/bekle.xml playpath=afasi_tv flashVer=WIN 11,3,372,94 ]

2. Added 'Pageurl' (http://www.teledunet.com/tv/?stretching=...t/afasi_tv) made no difference. Still getting the error 'NetStream.Play.StreamNotFound'. Adding/Removing the Pageurl parameter in the above rtmpdump.exe command made no difference, hence why I left it out.
Reply
#4
Don't replace swfurl with swfVfy... just add it to the list of parms

swfVfy = true
Reply
#5
Thanks for your help and ideas guys.

Eldorado... still no luck.

I now tried adding swfVfy parameter above. I got the same 'NetStream.Play.StreamNotFound' error and another new one 'dll_fgets emulated function failed'

Code:
12:41:16 T:1832   ERROR: dll_fgets emulated function failed
12:41:19 T:1832   ERROR: Closing connection: NetStream.Play.StreamNotFound
12:41:19 T:1832   ERROR: CDVDPlayer::OpenInputStream - error opening [rtmp://www.teledunet.com:1935/teledunet app=teledunet swfUrl=http://www.teledunet.com/tv/player.swf?repeat=always&autostart=true&stretching_=none&id0=2690240225920&streamer=rtmp%3A//www.teledunet.com%3A1935/teledunet&file=afasi_tv&provider=rtmp&skin=bekle/bekle.xml playpath=afasi_tv swfVfy=true ]

Also interesting to note, in the swfUrl is an 'id0' parameter. This parameter seems to have an expiry on it. I had to do another rtmp sniff using Wireshark to get a new value for it. Another hurdle waiting for me to solve after getting the stream working in XBMC.
Reply
#6
OK... updating on some good fortune progress!

Adding the following two parameters:

swfVfy=true AND
live=true

Seemed to do the trick! The stream worked in XBMC... however only for 4 seconds. It seems that a clip of 4 seconds is always downloaded to XBMC and played because the XBMC player shows a length of 4 seconds for the clip.

Any ideas on why this behaviour is taking place would be appreciated!
Reply
#7
Thanks, solved my problem with rtmp and mp4.
Reply

Logout Mark Read Team Forum Stats Members Help
RTMP streaming problems0