[RESEARCH] RTMP plugin for "RTL Now" - Need a little help...
#16
Hi Ingrimsch,

I fixed this up to work with librtmp enabled builds. Look for an exobuzz build for Ubuntu packages.

http://ul.to/0obzj4

There is still some room for improvement, but you can play the latest available episodes for free content.

MB
Reply
#17
mighty_bombero Wrote:Hi Ingrimsch,

I fixed this up to work with librtmp enabled builds. Look for an exobuzz build for Ubuntu packages.

http://ul.to/0obzj4

There is still some room for improvement, but you can play the latest available episodes for free content.

MB

Thanks mate, will give it a try when I get or successfully make an librtmp enabled build... will try to compile one tomorrow. Smile
Reply
#18
Sorry for revive this old thread but i'am out of ideas how to get rtmp running under windows.

I use the following code:
Code:
self.log("PlayPath: "+ link.playPath);
self.log("PageURL: "+ link.pageUrl);
self.log("SWFPlayer: "+ link.swfLink);
listItem.setProperty("PageURL", link.pageUrl);
listItem.setProperty("SWFPlayer", link.swfLink);
listItem.setProperty("PlayPath", link.playPath);
self.log("URL: "+ link.basePath);
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=link.basePath,listitem=listItem,isFolder=False)
the variables passed in (logged into xbmc log):
Code:
PlayPath: mp4:zdf/data/quicktime/zdf/10/11/101112_hsh_hsh_vh.mp4
PageURL: http://www.zdf.de/ZDFmediathek/hauptnavigation/startseite#/beitrag/video/1188544/heute-show-vom-12112010
SWFPlayer: http://www.zdf.de/ZDFmediathek/flash/0003/Main.swf
URL: rtmp://ondemand.flash.zdf.newmedia.nacamar.net/zdf/
the coresponding wireshark stream:
Image

xbmc is unable to play this item under windows. Same code runed under linux works fine. even without PageURL and SWFPlayer set.

Any suggestion where to seek for troubleshooting?
Reply
#19
ok now it becomes strange.

i try to "download" the stream under windows with rtmpdump. My tought was, that this has something todo with the windows implementation...

Surprisingly all works well. Even with no additional parameters given rtmpdump was able to download the stream. Applied command:
Code:
rtmpdump.exe -r rtmp://ondemand.flash.zdf.newmedia.nacamar.net/zdf -y mp4:/zdf/data/quicktime/zdf/10/11/101112_hsh_hsh_vh.mp4 -o test.mp4

ok at this point i take the current librtmp and replace the "old" one from XBMC (since i use dharma4 this was useless)

after this doesn't had an effect i increase the LOG-level of xbmc. Here it is: PasteBin-Log

worth mentioning: xbmc/libtrmp is able to establish the stream-connection. But then, if the stream-media should be startet, the followin happens:
instead of requesting "mp4:/zdf/data/quicktime/zdf/10/11/101112_hsh_hsh_vh.mp4" the following line appears.
Code:
SendPlay, seekTime=0, stopTime=0, sending play:  w4LOR=blue]0[/COLOR]) Items - Page ([color=blue]1/1[/color])
it seems that the "PlayPath" Variable isn't correct pasted into the RTMP context...

here is my default.py for this testing:
Code:
import xbmc, xbmcgui, xbmcplugin,xbmcaddon, sys, urllib, os
xbmcgui.DialogProgress();
listItem=xbmcgui.ListItem("Test");
listItem.setProperty("PlayPath", "mp4:/zdf/data/quicktime/zdf/10/11/101112_hsh_hsh_vh.mp4");
#listItem.setProperty("PageURL", "http://www.zdf.de/ZDFmediathek/hauptnavigation/startseite/#/beitrag/video/1188544/heute-show-vom-12112010");
#listItem.setProperty("SWFPlayer", "http://www.zdf.de/ZDFmediathek/flash/0003/Main.swf");


xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play("rtmp://ondemand.flash.zdf.newmedia.nacamar.net/zdf",listItem)
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url="rtmp://ondemand.flash.zdf.newmedia.nacamar.net/zdf",listitem=listItem,isFolder=False)
xbmcplugin.endOfDirectory(int(sys.argv[1]))


EDIT:
i quick checked it under linux Dharma Beta 4. The same default.py above leads to the following line:
Code:
INFO: SendPlay, seekTime=0, stopTime=0, sending play: mp4:/zdf/data/quicktime/zdf/10/11/101112_hsh_hsh_vh.mp4
In the windowsbuild something goes wrong with the "Parameter-Parsing". Seems some pointer is wrongly initiated.
Reply
#20
i rechecked it in Dharma RC1. Problem is still present
Reply
#21
You could try including all of the parameters in the URL instead of setting them as a separate property on the list item:

Code:
listItem=xbmcgui.ListItem("Test");

videoUrl = "rtmp://ondemand.flash.zdf.newmedia.nacamar.net/zdf/mp4:/zdf/data/quicktime/zdf/10/11/101112_hsh_hsh_vh.mp4"
finalUrl = videoUrl + ' swfVfy=1 app=zdf pageUrl=http://www.zdf.de/ZDFmediathek/hauptnavigation/startseite/#/beitrag/video/1188544/heute-show-vom-12112010 swfUrl=http://www.zdf.de/ZDFmediathek/flash/0003/Main.swf"

xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(finalUrl, listItem)
Reply
#22
you lead me to the correct direction:

Code:
videoUrl = "rtmp://ondemand.flash.zdf.newmedia.nacamar.net/zdf/"
finalUrl = videoUrl + " playpath=mp4:zdf/data/quicktime/zdf/10/11/101124_sendung_hie_l.mp4"

xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(finalUrl, listItem)

thanks for the help
Reply
#23
Laugh I'm back Rofl I started this thread.. After over a year, i'm sitting back on this addon. i (thx mighty_bombero) tried to get it work with the external librtmp under 9.04 - but refused, because this was not my intention of a simple plugin. So now i updated to dharma/ubuntu - and i#ve seen, that librtmp is fully integrated. is this true now?

ticket 6403 - swfVerify under 9.04
Quote:This issue can be closed because the new libRTMP includes swf verification.

i recoded the plugin into an addon, but still now i despair, putting the right data into the right attributes Big Grin It seems, they#re using now .f4v instead of .flv (older videos are present in flv..) so - these are the example-data from the site and from the xml:

object-data in site rtl-now.de
Code:
data:"%2Flogic%2Fgenerate_film_xml08.php%3Fpara1%3D34953%26para2%3D0%26ivw%3Dawz%2Fplayer%26tile%3D4%26tile_counter%3D540141%26h%3Da2e2ee62376de47324b146ce1ff85a02"

swfobject.embedSWF("http://rtl-now.rtl.de/includes/rtlnow_videoplayer09_2.swf?ts=20110226","videoplayer_container",w,h,"9.0.115","http://rtl-now.rtl.de/includes/expressInstall.swf",flashvars,params,attributes);
    }

xml-data from this link
Code:
<para1>34953</para1>
<para2>0</para2>
<para4>1beb1ff443d1fdbfc02867003f56ca6ec21dfafb</para4>
<para6></para6>
<timetype>2</timetype>
<fkcontent>951387</fkcontent>
<season>0</season>
<filename>rtmpe://fms-fra27.rtl.de/rtlnow/2/V_82478_BF1N_E83942_51387_16x9-lq-512x288-h264-c0_6a0aa22dc0d07d0a4e101176e42f6ebe.f4v</filename>

If i try to start the player, it shows me
error opening.. (mixing attributes)
signiture.. (mixing attributes)
or
RTMP_ReadPacket, failed to read RTMP packet header (plain video-url without rtmp-attributes)

Heres the addon. stated as v1 - but *SORRY* not starting the stream (tested under winXP - xbmc10)
DOWNLOAD pre-v1 ZIPPED

(ah - under windows there are titles after the date - ubuntu not..)

regards from germany - chmee

p.s.: Seems, rtl is working hard to deny streaming beyond the webbrowser. functional rtmpdump from 29.01.2011:
Quote:rtmpdump.exe -o rtmp-video.mp4 --host "fms-fra23.rtl.de" --port 1935 --protocol 2 --playpath "mp4:50/V_80167_BFX2_m11438_51258_16x9-lq-512x288-h264-c0_7e353111605f4ab8fe834a49dcb35a80.f4v" --swfVfy "http://rtl-now.rtl.de/includes/rtlnow_videoplayer09_2.swf" --app "rtlnow/_definst_" --pageUrl "http://rtl-now.rtl.de/"
Reply
#24
Lightbulb 
RTLNOW v1.1 for XBMC Dharma
tested under Ubuntu 10.04LTS and WindowsXP

http://www.phreekz.de/wordpress/2011/02/...mc-dharma/

Finally i got it workin. puhh.
regards chmee
Reply
#25
VOXNOW v1.1 for XBMC Dharma
because its very straight the same

http://www.phreekz.de/wordpress/2011/03/...-fur-xbmc/

regards chmee
Reply
#26
great!
haven't tested it yet, but will soon.

will this find the way to the official repo?

thanks!!
Reply
#27
nope, official repo means i have to patch it as fast as possible - beyond that svn/git-stress - so i think, i leave it this way Big Grin

regards chmee
Reply
#28
Now i try to scrape&play another german tv-site (DMAX). The scraping till flashplayer is done, i cant figure out the rtmp-data. its base is brightcove - and the data inline arent enough to build the rtmp-data to get the stream. strange thing tho.

Someone's out there giving me a hint?

the site :
http://www.dmax.de/video/american-choppe...-bike-1-1/

code, i meant be important for getting rtmp-attributes.
i dont see any xml-request.
Code:
function fw_config() {
                return{
                    networkId:48747,
                    cb_profile:"DiscoveryIntl_Brightcove",
                    siteSectionNetworkId:48747,
                    videoAssetNetworkId:48747,
                    fw_server:"http://be6b.v.fwmrm.net/ad/p/1",
                    siteSection:"DMAX.de_Video_Solution",
                    autoplay:true,
                    amLocation:"http://adm.fwmrm.net/p/DI_live/AdManager.swf",
                    CARU_location:"http://www.dmax.de/resources/videoportal/flash/freewheel_ad_message_dmax.swf",
                    needsCARU:true,
                    CARU_width:"200"

        videoIds.push("711696776001");
    videoIds.push("711696777001");
    videoIds.push("711696778001");
    videoIds.push("711696779001");
    videoIds.push("711696780001");

"authentication.fb::initialiseAPI", true)(
function() {
$TORA("authentication").fb.initialiseAPI(user, "57595187969")

<!-- BRIGHTCOVE PLAYER INCLUDE - start -->
<object id="video-brightcove-player" class="BrightcoveExperience video-brightcove-player">
<param name="bgcolor" value="#000000" />
<param name="width" value="657" />
<param name="height" value="370" />
<param name="playerID" value="586587148001" />
<param name="publisherID" value="1659832546"/>
<param name="isVid" value="true" />
<param name="isUI" value="true" />
<param name="autoStart" value="true" />
<param name="@videoPlayer" value="711696776001" />
<param name="wmode" value="transparent" />
<param name="allowScriptAccess" value="always"/>
</object>
<embed
src="http://c.brightcove.com/services/viewer/federated_f9/42412716001?isVid=1&publisherID=1378939881&%40videoPlayer=14008448001"
bgcolor="#000000"
flashVars="playerID=586587148001&domain=embed&"
base="http://admin.brightcove.com"
autoStart="true"
name="video-brightcove-player"
width="657"
height="370"
wmode="transparent"
seamlesstabbing="false"
type="application/x-shockwave-flash"
allowFullScreen="true"
swLiveConnect="true"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</noscript>
<!-- BRIGHTCOVE PLAYER INCLUDE - end -->

This data i've got with sniffing the requests and replies:
Code:
GET /100125/768653/1431500/Linear_Holder_as3.swf?
cp=http://cdn.eyewonder.com/100125/768653/1431500/
&ewbase=http://cdn.eyewonder.com/100125/768653/1431500/
&adLoaderWidth=640
&adLoaderHeight=360
&hAlign=center&vAlign=middle
&keywordNames=
&keywordIDs=
&ewbust=1403459933
&impr3rdPartyNetwork1=http%3A%2F%2Fstats.smartclip.net%2Fstats%2Fbeacon%3F125%3B4316%3B400x320%3B718725%3B1291928%3B0%3B1543464745
HTTP/1.1

Host: cdn.eyewonder.com
Connection: keep-alive
Referer:
http://c.brightcove.com/services/viewer/federated_f9?
&width=657
&height=370
&flashID=video-brightcove-player
&bgcolor=%23000000
&playerID=586587148001
&publisherID=1659832546
&isVid=true
&isUI=true
&autoStart=true
&%40videoPlayer=711696776001
&wmode=transparent
&allowScriptAccess=always
&debuggerID=

Accept: */*

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
Accept-Encoding: gzip,deflate,sdch
Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: svid=75901364589; mojo3=13987:15306                        

rtmp://fms2.eyewonder.speedera.net/ondemand?
_fcs_vhost=fms2.eyewonder.speedera.net/fms2.eyewonder/video/58123/fl8_THQ_DeBlob2_InStream_640x360_v2-600

url: rtmp://fms2.eyewonder.speedera.net/ondemand?_fcs_vhost=fms2.eyewonder.speedera.net/fms2.eyewonder/video/58123/fl8_THQ_DeBlob2_InStream_640x360_v2-600
app: ondemand?_fcs_vhost=fms2.eyewonder.speedera.net
extra: AAAAAAEAAAAAAAAAAADwPwAA
flashVer: WIN 10,2,154,12
pageUrl: http://www.dmax.de/video/american-chopper-national-guard-bike-1-1/#player
swfUrl: http://cdn.eyewonder.com/100125/768653/1431500/Linear_content_as3.swf
tcUrl: rtmp://fms2.eyewonder.speedera.net/ondemand?_fcs_vhost=fms2.eyewonder.speedera.net
playPath: fms2.eyewonder/video/58123/fl8_THQ_DeBlob2_InStream_640x360_v2-600

regards chmee
Reply
#29
O___O
Oh thank you thank you thank you! That's fantastic! My wife is totally happy now with the media player! Big Grin

Thanks (again!).
Reply
#30
@chmee,

häsch du es mit'em RTMP url aus Brightcove herausgefunden? Looking for a similar solution for Canadian channels.
Reply

Logout Mark Read Team Forum Stats Members Help
[RESEARCH] RTMP plugin for "RTL Now" - Need a little help...0