Results 1 to 6 of 6

Thread: Another RTMP help request

  1. #1
    Join Date
    Jan 2012
    Posts
    2

    Default Another RTMP help request

    Hi

    I am trying to play a rtmp stream, with the following code inspired by the 9004 bug report, but have so far had not success getting it to play .

    Code:
    def playVideo(item):
    	path = "rtmp://vod.dr.dk/cms/cms/mp4:CMS/Resources/dr.dk/NETTV/DR1/2012/01/3053e904-7bb3-43af-8e40-37b608242294/0469495da5ab4431a9dcad41de11b5ef_1000.mp4"
    	player = mc.GetPlayer() 
    	Hostname = "vod.dr.dk"
    	Playpath = "mp4:CMS/Resources/dr.dk/NETTV/DR1/2012/01/3053e904-7bb3-43af-8e40-37b608242294/0469495da5ab4431a9dcad41de11b5ef_1000.mp4"
    	tcUrl    = "rtmp://vod.dr.dk:1935/cms/cms"
    	list_item = mc.ListItem(mc.ListItem.MEDIA_VIDEO_CLIP) 
    	list_item.SetPath(path) 
    	list_item.SetProperty("PageURL", Hostname) 
    	list_item.SetProperty("PlayPath", Playpath) 
    	list_item.SetProperty("TcUrl", tcUrl) 
    	player.Play(list_item)
    The path used above is working with rtmpdump, which reports the following parameters:

    DEBUG: Protocol : RTMP
    DEBUG: Hostname : vod.dr.dk
    DEBUG: Port : 1935
    DEBUG: Playpath : mp4:CMS/Resources/dr.dk/NETTV/DR1/2012/01/3053e904-7bb3-43af-8e40-37b608242294/0469495da5ab4431a9dcad41de11b5ef_1000.mp4
    DEBUG: tcUrl : rtmp://vod.dr.dk:1935/cms/cms
    DEBUG: app : cms/cms
    DEBUG: live : no
    DEBUG: timeout : 30 sec
    DEBUG: Setting buffer time to: 36000000ms


    From the boxee log i can follow some of the first handshake steps in the RTMP_LIB debug print outs, but it seems to stop after some bandwidth checks.

    Anyone able to point out what i do wrong ?

    Thanks in advance

  2. #2

    Default

    As state in the issue. (Which was closed and marked as duplicated completely wrong. )
    http://jira.boxee.tv/browse/BOXEE-9004

    The tcp/swfvfy/swfurl are not working with boxee. They are using a relatively old rtmplib and did not fully implement the api features. There was even a guy who patched the boxee source, but it seems it did not make it to a release

    It would be good to email marcel about it as it seems this is definitly an issue that has lost some attention

    Still it seems you do not need those extra params, but you did not split the domain and path param. Just try it and it just might work. Something like the below setup might do the trick:

    Code:
    player = mc.GetPlayer() 
    list_item = mc.ListItem(mc.ListItem.MEDIA_VIDEO_CLIP) 
    list_item.SetPath(str("rtmp://vod.dr.dk/cms/cms")) 
    list_item.SetProperty("PageURL", str(rtmp://vod.dr.dk/cms/cms)) 
    list_item.SetProperty("PlayPath", str(mp4:CMS/Resources/dr.dk/NETTV/DR1/2012/01/3053e904-7bb3-43af-8e40-37b608242294/0469495da5ab4431a9dcad41de11b5ef_1000.mp4)) 
    player.Play(list_item)
    you could also try to remove the .mp4 extension.
    Last edited by bartsidee; January 24th, 2012 at 02:19 PM.
    Have a look at my repo at www.bartsidee.nl

  3. #3
    Join Date
    Jan 2012
    Posts
    2

    Default

    Thanks for the answer

    I tried the following, but still no luck.

    Code:
    def playVideo(item):
    	player = mc.GetPlayer() 
    	list_item = mc.ListItem(mc.ListItem.MEDIA_VIDEO_CLIP)
    	list_item.SetPath(str("rtmp://vod.dr.dk/cms/cms"))
    	list_item.SetProperty("PageURL", str("rtmp://vod.dr.dk/cms/cms"))
    	list_item.SetProperty("PlayPath", str("mp4:CMS/Resources/dr.dk/NETTV/DR1/2012/01/3053e904-7bb3-43af-8e40-37b608242294/0469495da5ab4431a9dcad41de11b5ef_1000.mp4"))
    	player.Play(list_item)
    From the log file it seems to get stuck at the same spot as before.

    The Boxee UI shows the progress indicators for ever, and become unresponsive when i tried to return to the video list.

    The last rtmp related debug messages looks like this:

    Code:
    22:19:39 T:8360 M:915906560   DEBUG: RTMP_LIB::CRTMP::HandleInvoke, server invoking <_result>
    22:19:39 T:8360 M:915906560   DEBUG: RTMP_LIB::CRTMP::HandleInvoke, received result for method call <createStream>
    22:19:39 T:8360 M:915906560   DEBUG: RTMP_LIB::CRTMP::SendPlay, invoking play 'mp4:CMS/Resources/dr.dk/NETTV/DR1/2012/01/3053e904-7bb3-43af-8e40-37b608242294/0469495da5ab4431a9dcad41de11b5ef_1000.mp4'
    22:19:39 T:8360 M:915906560   DEBUG: RTMP_LIB::CRTMP::SendPing, sending ping. type: 0x0003
    22:19:39 T:8360 M:915881984   DEBUG: RTMP_LIB::CRTMP::GetNextMediaPacket, received: invoke 16419 bytes
    22:19:39 T:8360 M:915881984   DEBUG: START AMF Object Dump:
    22:19:39 T:8360 M:915881984   DEBUG: Property: <no-name. STRING: _onbwcheck>
    22:19:39 T:8360 M:915881984   DEBUG: Property: <no-name. NUMBER: 2156243389.00>
    22:19:39 T:8360 M:915881984   DEBUG: Property: NULL
    22:19:39 T:8360 M:915881984   DEBUG: Property: <no-name. STRING: m N % h 9 n G t % J M p 1 f # t % ^ ........<cut out>...........K H 7 ~ + $ K Z #   ! v 1 < >
    22:19:39 T:8360 M:915865600   DEBUG: Property: <no-name. NUMBER: 0.00>
    22:19:39 T:8360 M:915865600   DEBUG: END AMF Object Dump:
    22:19:39 T:8360 M:915865600   DEBUG: RTMP_LIB::CRTMP::HandleInvoke, server invoking <_onbwcheck>
    and some time after this some kind of ping message is received

    Code:
    22:23:08 T:8360 M:910290944   DEBUG: RTMP_LIB::CRTMP::HandlePing, received: ping, type: 6
    22:23:08 T:8360 M:910290944   DEBUG: RTMP_LIB::CRTMP::SendPing, sending ping. type: 0x0007
     22:23:08 T:8360 M:910290944   DEBUG: RTMP_LIB::CRTMP::HandlePing, received: ping, type: 6
    22:23:08 T:8360 M:910290944   DEBUG: RTMP_LIB::CRTMP::SendPing, sending ping. type: 0x0007

    Compared to the rtmpdump debug output it seems that some reset and start command are missing.

    Code:
    DEBUG: RTMP_ClientPacket, received: invoke 16419 bytes
    DEBUG: (object begin)
    DEBUG: Property: NULL
    DEBUG: (object end)
    DEBUG: HandleInvoke, server invoking <_onbwcheck>
    DEBUG: Invoking _result
    DEBUG: RTMP_ClientPacket, received: invoke 32803 bytes
    DEBUG: (object begin)
    DEBUG: Property: NULL
    DEBUG: (object end)
    DEBUG: HandleInvoke, server invoking <_onbwcheck>
    DEBUG: Invoking _result
    DEBUG: HandleCtrl, received ctrl. type: 4, len: 6
    DEBUG: HandleCtrl, Stream IsRecorded 1
    DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
    DEBUG: HandleCtrl, received ctrl. type: 0, len: 6
    DEBUG: HandleCtrl, Stream Begin 1
    DEBUG: RTMP_ClientPacket, received: invoke 374 bytes
    DEBUG: (object begin)
    DEBUG: Property: NULL
    DEBUG: (object begin)
    DEBUG: Property: <Name:              level, STRING:     status>
    DEBUG: Property: <Name:               code, STRING:     NetStream.Play.Reset>
    DEBUG: Property: <Name:        description, STRING:     Playing and resetting CM
    S/Resources/dr.dk/NETTV/DR1/2012/01/3053e904-7bb3-43af-8e40-37b608242294/0469495
    da5ab4431a9dcad41de11b5ef_1000.mp4.>
    DEBUG: Property: <Name:            details, STRING:     CMS/Resources/dr.dk/NETT
    V/DR1/2012/01/3053e904-7bb3-43af-8e40-37b608242294/0469495da5ab4431a9dcad41de11b
    5ef_1000.mp4>
    DEBUG: Property: <Name:           clientid, STRING:     rAAdwYKA>
    DEBUG: (object end)
    DEBUG: (object end)
    DEBUG: HandleInvoke, server invoking <onStatus>
    DEBUG: HandleInvoke, onStatus: NetStream.Play.Reset
    DEBUG: RTMP_ClientPacket, received: invoke 368 bytes
    DEBUG: (object begin)
    DEBUG: Property: NULL
    DEBUG: (object begin)
    DEBUG: Property: <Name:              level, STRING:     status>
    DEBUG: Property: <Name:               code, STRING:     NetStream.Play.Start>
    DEBUG: Property: <Name:        description, STRING:     Started playing CMS/Reso

    Is Marcel someone from the development team, and how do i get in contact with him ?

  4. #4
    Join Date
    Jan 2012
    Posts
    100

    Default

    come to this thread and try to explain it to marcel I'm trying to get this solved myself also
    http://forums.boxee.tv/showthread.php?t=55743&page=9

  5. #5
    Join Date
    Jan 2012
    Posts
    100

    Default

    it use 2 work i dont understand why they stopped it from working

  6. #6
    Join Date
    Jul 2011
    Posts
    1,428

    Default re

    " Is Marcel someone from the development team, and how do i get in contact with him ? "

    >> marcel@boxee.tv

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •