RTMP streaming problems
#1
Hello,
I am having issues with setting up RTMP stream, and I think I am missing something.
The following rtmpdump command works just fine:
Code:
rtmpdump -r rtmp://fms.354a.edgecastcdn.net/00354A/videos/encoded/79635/ -p  http://www.viki.com/channels/9172-my-love-butterfly-lady/videos/79635 -y mp4:79635_720p_1210061450.mp4 -a 00354A/videos/encoded/79635 -f 'LNX 11,2,202,238' -s http://a0.vikiassets.com/assets/vikiplayer.swf -o ep1.flv
However when I try to translate it in XBMC addon, it is failing:
Code:
PlayPath='mp4:79635_720p_1210061450.mp4'
        tcUrl='rtmp://fms.354a.edgecastcdn.net/00354A/videos/encoded/79635/'
        PageURL='http://www.viki.com/channels/9172-my-love-butterfly-lady/videos/79995'
        app='00354A/videos/encoded/79635'
        flashVer='LNX 11,2,202,238'
        
        liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
        liz.setInfo( type="Video", infoLabels={ "Title": name } )
        liz.setProperty("swfUrl","http://a0.vikiassets.com/assets/vikiplayer.swf")
        liz.setProperty("PlayPath", PlayPath)
        liz.setProperty("tcUrl", tcUrl)
        liz.setProperty("PageURL", web_uri)
        liz.setProperty("app",web_uri)
        liz.setProperty("flashVer",flashVer)
        xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(tcUrl, liz)
        ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=tcUrl,listitem=liz)
And this somehow is failing with the following debug messages:
Code:
17:37:40 T:7676    INFO: Property: <Name:              level, STRING:   error>
17:37:40 T:7676    INFO: Property: <Name:               code, STRING:   NetStream.Play.Failed>
17:37:40 T:7676    INFO: Property: <Name:        description, STRING:   Invalid tincan object name (stream ID: 1).>


(see pastebin dump for a more complete debug from a player at http://pastebin.com/xAWVZffM )
Please help me out here... I know I am missing something simple, and have been beating my head on it for the last day and can't figure it out ;-(

Thank you!


Reply
#2
I found a couple of mistakes in my code, but I am still getting "Invalid tincan object name (stream ID: 1)." What does it mean? Please help ;-(
The new code:
Code:
url='rtmp://fms.354a.edgecastcdn.net/00354A/videos/encoded/79635/mp4:79635_720p_1210061450.mp4'
        PlayPath='mp4:79635_720p_1210061450.mp4'
        tcUrl='rtmp://fms.354a.edgecastcdn.net/00354A/videos/encoded/79635'
        PageURL='http://www.viki.com/channels/9172-my-love-butterfly-lady/videos/79635'
        app='00354A/videos/encoded/79635'
        
        liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
        liz.setInfo( type="Video", infoLabels={ "Title": name } )
        liz.setProperty('SWFPlayer','http://a0.vikiassets.com/assets/vikiplayer.swf')
        liz.setProperty('PlayPath', PlayPath)
        liz.setProperty('tcUrl', tcUrl)
        liz.setProperty('PageURL', PageURL)
        liz.setProperty('app',app)
        xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(url, liz)
        ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=liz)
Please help.... I can't figure it out ;-(
Reply
#3
Look here for the librtmp man page: http://rtmpdump.mplayerhq.hu/librtmp.3.html

Are you trying to play the video or add a directory item? Coz I see play command followed by addDirectoryItem.

If you're just trying to play it, then the rtmp url needs to be one string containing all the parameters as shown in the man page example. Then you can use that url to play directly. No need to set the listitem properties with the rtmp parameters.
Reply
#4
newatv2user, THANK YOU VERY MUCH!!!!
Reply

Logout Mark Read Team Forum Stats Members Help
RTMP streaming problems0