Does dr.dk work? (2 Viewers)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    I'm close now :) Should I be getting the rtmp URL and feed that back to OnlineVideos?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #62
    AW: Does dr.dk work?

    getVideoList is the one you need to override and implement, the other is an internal function from some util I suppose.
    Yes feed the rtmp links directly might work, if not we need some finetuning of the parameters.
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Well, an example URL read by Replay Media Catcher 4 was this:
    rtmp://vod-prio3.gss.dr.dk/cms/mp4:CMS/Resources/dr.dk/NETTV/DR1/2011/03/19dd035e-c0aa-42ea-b4dc-b2e879c94468/f0a98057c6b242c2a0a332d9472ab007_1000.mp4?ID=881718

    But when I assign this as the video.VideoUrl it just gives an error when trying to play it, with invalid URL...

    I've got all the other stuff sorted out :(
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #64
    AW: Does dr.dk work?

    Check the MediaPortal log, it tells you if the rtmp connection fails.
    Can you try if rtmpdump works with that url?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #66
    AW: Does dr.dk work?

    In one way that is good, as it means at least the connection succeeds!
    I guess the stream url meaning "playpath" is not extracted correct from the rtmp url automatically :( We have to find out what part of the url is the correct playpath.
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Re: AW: Does dr.dk work?

    In one way that is good, as it means at least the connection succeeds!
    I guess the stream url meaning "playpath" is not extracted correct from the rtmp url automatically :( We have to find out what part of the url is the correct playpath.

    This info can be found within the JSON for a single programme:

    {"resourceId":873729,"name":"21 SØNDAG","mediaType":"Video","restrictedToDenmark":false,"downloadable":false,"geofilterId":0,"publish":null,"expire":"2011-03-22T20:00:00","links":[{"


    qualityId":2011186,"uri":"rtmp:\/\/vod.dr.dk\/cms\/mp4:CMS\/Resources\/dr.dk\/NETTV\/DR1\/2011\/02\/d4c34b17-7670-4ee1-9e10-851031caa0df\/88d9738be085456f83d535dd76c8edc8_1000.mp4?ID=873729","linkType":"Streaming","fileType":"mp4","bitrateKbps":1935,"width":640,"height":360},{"


    qualityId":2011187,"uri":"rtmp:\/\/vod.dr.dk\/cms\/mp4:CMS\/Resources\/dr.dk\/NETTV\/DR1\/2011\/02\/d4c34b17-7670-4ee1-9e10-851031caa0df\/88d9738be085456f83d535dd76c8edc8_500.mp4?ID=873729","linkType":"Streaming","fileType":"mp4","bitrateKbps":1310,"width":640,"height":360},{"


    qualityId":2011188,"uri":"rtmp:\/\/vod.dr.dk\/cms\/mp4:CMS\/Resources\/dr.dk\/NETTV\/DR1\/2011\/02\/d4c34b17-7670-4ee1-9e10-851031caa0df\/88d9738be085456f83d535dd76c8edc8_250.mp4?ID=873729","linkType":"Streaming","fileType":"mp4","bitrateKbps":1186,"width":320,"height":180}],"chapters":[]}

    (I have added some newlines to increase readability).

    What I focused on was the "downloadable":false entry...is that bad?
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    According to a Linux user, this should be able to download through rtmpdump:

    rtmpdump --quiet --rtmp='rtmp://vod.dr.dk/cms/mp4:CMS/Resources/dr.dk/NETTV/TVR/2011/03/cee7cc63-f90b-47a6-8cf9-c4d5bfd4cf78/Adrian---Bendix--Kapowshow_3d9c690aa0df4d9ca1e9155bccd87c77.mp4?ID=881172' --playpath='mp4:CMS/Resources/dr.dk/NETTV/TVR/2011/03/cee7cc63-f90b-47a6-8cf9-c4d5bfd4cf78/Adrian---Bendix--Kapowshow_3d9c690aa0df4d9ca1e9155bccd87c77.mp4?ID=881172' --flv='Adrian-&-Bendix'-Kapowshow-8-mar-2011.flv'
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    More talking to myself...I realized that my getUrl call returned an empty string...DOH!

    But, now I get this error:

    2011-03-08 23:41:37.665181 [Info.][MPMain(1)]: [OnlineVideos]Preparing graph for playback of http://127.0.0.1:30006/-1/127.0.0.1...09f123e484897f57bbf766446c8_1Mb.mp4?ID=809196
    2011-03-08 23:41:37.670181 [Info.][MPMain(1)]: VMR9: added EVR Renderer to graph
    2011-03-08 23:41:38.038202 [Info.][MPMain(1)]: DirectShowUtils: First try to insert new audio renderer MediaPortal - Audio Renderer
    2011-03-08 23:41:38.038202 [Info.][MPMain(1)]: DirectShowUtils: Found audio renderer
    2011-03-08 23:41:38.040203 [Info.][MPMain(1)]: Added filter: File Source (URL) to graph
    2011-03-08 23:41:38.042203 [Info.][OnlineVideos(30)]: [OnlineVideos]Start prebuffering ...
    2011-03-08 23:41:38.045203 [Info.][(20)]: [OnlineVideos]Indekset lå uden for området. Det må ikke være negativt og skal være mindre end størrelsen på samlingen.
    Parameternavn: index
    2011-03-08 23:41:38.046203 [Info.][OnlineVideos(30)]: [OnlineVideos]Buffering was aborted.
    2011-03-08 23:41:38.046203 [Info.][OnlineVideos(30)]: [OnlineVideos]Prebuffering failed.
    2011-03-08 23:41:38.062204 [Info.][MPMain(1)]: VideoPlayer9: Cleanup DShow graph
    2011-03-08 23:41:38.064204 [Info.][MPMain(1)]: VideoPlayerVMR9: Disabling DX9 exclusive mode


    EDIT:

    Is the attached .cs file (saved as .txt) not correct? I keep getting URL error...

    :D
     

    Attachments

    • DRNUUtil.cs.txt
      2.6 KB

    Users who are viewing this thread

    Top Bottom