Weird video URL for cbc.ca
#1
Question 
I've been working on trying to make an addon for the videos on http://www.cbc.ca/video. Using wireshark to examine the traffic as I start a video, I get the following URL as part of a SMIL exchange:

rtmp://cp37429.edgefcs.net/ondemand/?auth=daFaVb4auamaCbba7bPcKbtd5d3d0aNdncu-bmPr9F-bl-slr_CqpYCkDoGBw&aifp=v0001&slist=netstorage<break>netstorage/Coronation_Street_Thursday-12_24_51-2010-09-24.flv

As a simple test, I put this in as a listItem in a simple addon, but XBMC skips it as unplayable. Does anyone have any clues? The escaped ampersands I thought I might have to "unescape", but I'm at a loss as to what to do with the escaped break tag.Eek

Any tips on where to look/what to try welcome. If you're really curious I can make available the actual Wireshark trace (just short of 1 MB).
Reply
#2
First thing is to grab rtmpdump and use that to play around with things rather than trying to get it working in XBMC straight away - allows you to quickly try different parameters etc. until you get it doing something useful.

I'm sure others will have more useful things to say about how to ferrit out the "real" urls.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Sometimes those auth strings are time sensitive in my experience. So you have to make the connection before it expires or it will refuse the connection.


addition: also if you split the url at the '<break>' then take the first part as the rtmp url and then use the second as the playpath. I have seen it done this way before.
Reply
#4
Thanks for the info, guys. rtmpdump is a big help. Now I'm getting an access denied (even with an updated URL I just pulled). A cursory google has brought up many a hit with people struggling with rtmp feeds. Looks like I've got some reading ahead of me... Huh
Reply
#5
If you wouldn't mind posting the exact parameters you are trying and verbose rtmpdump output. I think I could spot the problem.
Reply
#6
Much obliged. Here's the SMIL reply I pulled from the packets:

Code:
<smil xmlns="http://www.w3.org/2001/SMIL20/Language" xmlns:tp="http://xml.theplatform.com/mps/metadata/content/custom">
    <head>
        <meta base="http://ad.doubleclick.net/pfadx/" />
    </head>
    <body>
        <ref src="cbc.coronation.ca/coronation_street;sz=320x240;tile=1;show=coronation_street;sport=not_specified;season=9;type=full_program;section=;event=;liveondemand=on-demand;shortClip=false;audioonly=false;secondpreroll=false" title="CBC InStream" copyright="(c) CBC Production|d=1285982313650|l=0,0,1266485,0|prid=1599260499|rid=1601437560,1601437561,1603581214,1601437560|ci=1|b=0|a=|p=All Content|cid=1233228699,1601429658,1599104176,1233228699" no-skip="true" guid="zzTlrph2KwZigLmQ8Ol5iTBWcnWUKJTf" provider="CBC Production" type="text/xml" tp:Account="(not specified)" tp:AudioVideo="Video" tp:AvailableInHD="(not specified)" tp:Camera="(not specified)" tp:ClipType="(not specified)" tp:CommentsEnabled="Yes" tp:Genre="Other" tp:LiveOnDemand="On-Demand" tp:Region="(not specified)" tp:Show="(not specified)" tp:Sport="(not specified)"/>
        <ref src="cbc.coronation.ca/coronation_street/second_preroll;sz=320x240;tile=2;show=coronation_street;sport=not_specified;season=9;type=full_program;section=;event=;liveondemand=on-demand;shortClip=false;audioonly=false;secondpreroll=true" title="CBC - Instream 2" copyright="(c) CBC Production|d=1285982313650|l=0,0,1266485,0|prid=1599260499|rid=1601437560,1601437561,1603581214,1601437560|ci=2|b=0|a=|p=All Content|cid=1233228699,1601429658,1599104176,1233228699" guid="SdzAMQIWdBfpGIkpdwN5PA1xGOM3u38h" provider="CBC Production" type="text/xml" tp:Account="(not specified)" tp:AudioVideo="Video" tp:AvailableInHD="(not specified)" tp:Camera="(not specified)" tp:ClipType="(not specified)" tp:CommentsEnabled="Yes" tp:Genre="Other" tp:LiveOnDemand="On-Demand" tp:Region="(not specified)" tp:Show="(not specified)" tp:Sport="(not specified)"/>
        <ref src="rtmp://cp37429.edgefcs.net/ondemand/?auth=daFaUcGbHbVcCcUbfcUaxb3a6cecydub0dc-bmPOHP-bl-rmn_Fru0ClIpCCB&amp;aifp=v0001&amp;slist=netstorage&lt;break&gt;netstorage/Coronation_Street_Friday-12_46_51-2010-09-24.flv" title="Episode 7223" abstract="Ken and Peter face off over the bar. Kevin and Molly decide when to leave their spouses. There&apos;s a pantomime in the Rovers." copyright="(c) CBC Production|d=1285982313650|l=0,0,1266485,0|prid=1599260499|rid=1601437560,1601437561,1603581214,1601437560|ci=3|b=924636|a=|p=All Content|cid=1233228699,1601429658,1599104176,1233228699" dur="1266485ms" width="640" height="360" guid="MpNng_Ig0tS04uwDVFan2cYYU_3TdHSC" provider="CBC Production" categories="Shows,Shows/Coronation Street" tp:Account="Entertainment" tp:AdCategory="coronation_street" tp:AdSite="cbc.coronation.ca" tp:Aired="true" tp:AudioVideo="Video" tp:AvailableInHD="(not specified)" tp:BylineCredit="CBC/Radio-Canada" tp:Camera="(not specified)" tp:ChapterStartTimes="3:55, 8:03, 17:12" tp:ClipType="Full Program" tp:CommentsEnabled="Yes" tp:EpisodeNumber="7223" tp:FeatureImage="http://a123.g.akamai.net/7/1/8753/1w/cbcstorage.download.akamai.com/8753/maven_legacy/thumbnails/feature_approved_coronation.jpg" tp:Genre="Entertainment" tp:LiveOnDemand="On-Demand" tp:LongDescription="The beloved British soap opera that focuses on the everyday lives of working class people in Manchester, England." tp:Region="(not specified)" tp:RelatedURL1="Coronation Street website|http://www.cbc.ca/coronation/|_blank" tp:RelatedURL2="Coronation Street Community|http://www.cbc.ca/coronation/forums/|_blank" tp:RelatedURL3="CBC Shop|http://www.cbcshop.ca/CBC/shopping/boutique.aspx?CatalogName=CBCBase&amp;CategoryName=boutique_coronation_subroot&amp;lang=en-CA|_blank" tp:SeasonNumber="9" tp:Show="Coronation Street" tp:Sport="(not specified)"/>
        <ref src="cbc.coronation.ca/coronation_street;sz=320x240;tile=1;show=coronation_street;sport=not_specified;season=9;type=full_program;section=;event=;liveondemand=on-demand;shortClip=false;audioonly=false;secondpreroll=false" title="CBC InStream" copyright="(c) CBC Production|d=1285982313650|l=0,0,1266485,0|prid=1599260499|rid=1601437560,1601437561,1603581214,1601437560|ci=4|b=0|a=|p=All Content|cid=1233228699,1601429658,1599104176,1233228699" no-skip="true" tags="mid" guid="zzTlrph2KwZigLmQ8Ol5iTBWcnWUKJTf" provider="CBC Production" type="text/xml" tp:Account="(not specified)" tp:AudioVideo="Video" tp:AvailableInHD="(not specified)" tp:Camera="(not specified)" tp:ClipType="(not specified)" tp:CommentsEnabled="Yes" tp:Genre="Other" tp:LiveOnDemand="On-Demand" tp:Region="(not specified)" tp:Show="(not specified)" tp:Sport="(not specified)"/>
    </body>
</smil>


Here's the command I ran:

Code:
rtmpdump -z -o test.flv -r "rtmp://cp37429.edgefcs.net/ondemand/?auth=daFaUcGbHbVcCcUbfcUaxb3a6cecydub0dc-bmPOHP-bl-rmn_Fru0ClIpCCB&aifp=v0001&slist=netstorage" -y "netstorage/Coronation_Street_Friday-12_46_51-2010-09-24.flv"

...
Reply
#7
...and here's the output:

Code:
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host    : cp37429.edgefcs.net
DEBUG: Parsed app     : ondemand/?auth=daFaUcGbHbVcCcUbfcUaxb3a6cecydub0dc-bmPOHP-bl-rmn_Fru0ClIpCCB&aifp=v0001&slist=netstorage
DEBUG: Protocol : RTMP
DEBUG: Hostname : cp37429.edgefcs.net
DEBUG: Port     : 1935
DEBUG: Playpath : netstorage/Coronation_Street_Friday-12_46_51-2010-09-24.flv
DEBUG: tcUrl    : rtmp://cp37429.edgefcs.net:1935/ondemand/?auth=daFaUcGbHbVcCcUbfcUaxb3a6cecydub0dc-bmPOHP-bl-rmn_Fru0ClIpCCB&aifp=v0001&sl
DEBUG: app      : ondemand/?auth=daFaUcGbHbVcCcUbfcUaxb3a6cecydub0dc-bmPOHP-bl-rmn_Fru0ClIpCCB&aifp=v0001&slist=netstorage
DEBUG: live     : no
DEBUG: timeout  : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer   : 03
DEBUG: HandShake: Server Uptime : 1564110779
DEBUG: HandShake: FMS Version   : 3.5.2.1
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG2: RTMP_SendPacket: fd=1912, size=407
DEBUG2:   0000:  03 00 00 00 00 01 97 14  00 00 00 00               ............
DEBUG2:   0000:  02 00 07 63 6f 6e 6e 65  63 74 00 3f f0 00 00 00   ...connect.?....
DEBUG2:   0010:  00 00 00 03 00 03 61 70  70 02 00 68 6f 6e 64 65   ......app..honde
DEBUG2:   0020:  6d 61 6e 64 2f 3f 61 75  74 68 3d 64 61 46 61 55   mand/?auth=daFaU
DEBUG2:   0030:  63 47 62 48 62 56 63 43  63 55 62 66 63 55 61 78   cGbHbVcCcUbfcUax
DEBUG2:   0040:  62 33 61 36 63 65 63 79  64 75 62 30 64 63 2d 62   b3a6cecydub0dc-b
DEBUG2:   0050:  6d 50 4f 48 50 2d 62 6c  2d 72 6d 6e 5f 46 72 75   mPOHP-bl-rmn_Fru
DEBUG2:   0060:  30 43 6c 49 70 43 43 42  26 61 69 66 70 3d 76 30   0ClIpCCB&aifp=v0
DEBUG2:   0070:  30 30 31 26 73 6c 69 73  74 3d 6e 65 74 73 74 6f   001&slist=netsto
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  72 61 67 65 00 08 66 6c  61 73 68 56 65 72 02 00   rage..flashVer..
DEBUG2:   0010:  0e 57 49 4e 20 31 30 2c  30 2c 33 32 2c 31 38 00   .WIN 10,0,32,18.
DEBUG2:   0020:  05 74 63 55 72 6c 02 00  88 72 74 6d 70 3a 2f 2f   .tcUrl...rtmp://
DEBUG2:   0030:  63 70 33 37 34 32 39 2e  65 64 67 65 66 63 73 2e   cp37429.edgefcs.
DEBUG2:   0040:  6e 65 74 3a 31 39 33 35  2f 6f 6e 64 65 6d 61 6e   net:1935/ondeman
DEBUG2:   0050:  64 2f 3f 61 75 74 68 3d  64 61 46 61 55 63 47 62   d/?auth=daFaUcGb
DEBUG2:   0060:  48 62 56 63 43 63 55 62  66 63 55 61 78 62 33 61   HbVcCcUbfcUaxb3a
DEBUG2:   0070:  36 63 65 63 79 64 75 62  30 64 63 2d 62 6d 50 4f   6cecydub0dc-bmPO
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  48 50 2d 62 6c 2d 72 6d  6e 5f 46 72 75 30 43 6c   HP-bl-rmn_Fru0Cl
DEBUG2:   0010:  49 70 43 43 42 26 61 69  66 70 3d 76 30 30 30 31   IpCCB&aifp=v0001
DEBUG2:   0020:  26 73 6c 69 73 74 3d 6e  65 74 73 74 6f 72 61 67   &slist=netstorag
DEBUG2:   0030:  65 00 04 66 70 61 64 01  00 00 0c 63 61 70 61 62   e..fpad....capab
DEBUG2:   0040:  69 6c 69 74 69 65 73 00  40 2e 00 00 00 00 00 00   ilities.@.......
DEBUG2:   0050:  00 0b 61 75 64 69 6f 43  6f 64 65 63 73 00 40 a8   ..audioCodecs.@.
DEBUG2:   0060:  ee 00 00 00 00 00 00 0b  76 69 64 65 6f 43 6f 64   ........videoCod
DEBUG2:   0070:  65 63 73 00 40 6f 80 00  00 00 00 00 00 0d 76 69   [email protected]
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  64 65 6f 46 75 6e 63 74  69 6f 6e 00 3f f0 00 00   deoFunction.?...
DEBUG2:   0010:  00 00 00 00 00 00 09                               .......
DEBUG: Invoking connect
INFO: Connected...
DEBUG2: RTMP_ReadPacket: fd=1912
DEBUG2:   0000:  03 00 00 00 00 00 86 14  00 00 00 00               ............
DEBUG2:   0000:  02 00 06 5f 65 72 72 6f  72 00 3f f0 00 00 00 00   ..._error.?.....
DEBUG2:   0010:  00 00 05 03 00 05 6c 65  76 65 6c 02 00 05 65 72   ......level...er
DEBUG2:   0020:  72 6f 72 00 04 63 6f 64  65 02 00 1e 4e 65 74 43   ror..code...NetC
DEBUG2:   0030:  6f 6e 6e 65 63 74 69 6f  6e 2e 43 6f 6e 6e 65 63   onnection.Connec
DEBUG2:   0040:  74 2e 52 65 6a 65 63 74  65 64 00 0b 64 65 73 63   t.Rejected..desc
DEBUG2:   0050:  72 69 70 74 69 6f 6e 02  00 29 5b 20 41 63 63 65   ription..)[ Acce
DEBUG2:   0060:  73 73 4d 61 6e 61 67 65  72 2e 52 65 6a 65 63 74   ssManager.Reject
DEBUG2:   0070:  20 5d 20 3a 20 41 63 63  65 73 73 20 64 65 6e 69    ] : Access deni
DEBUG2: RTMP_ReadPacket: fd=1912
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  65 64 21 00 00 09                                  ed!...
DEBUG: RTMP_ClientPacket, received: invoke 134 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:           no-name., STRING:     _error>
DEBUG: Property: <Name:           no-name., NUMBER:     1.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:           no-name., OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:     error>
DEBUG: Property: <Name:               code, STRING:     NetConnection.Connect.Rejected>
DEBUG: Property: <Name:        description, STRING:     [ AccessManager.Reject ] : Access denied!>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG2: RTMP_ReadPacket: fd=1912
DEBUG2:   0000:  03 00 00 00 00 00 12 14  00 00 00 00               ............
DEBUG2:   0000:  02 00 05 63 6c 6f 73 65  00 00 00 00 00 00 00 00   ...close........
DEBUG2:   0010:  00 05                                              ..
DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:           no-name., STRING:     close>
DEBUG: Property: <Name:           no-name., NUMBER:     0.00>
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <close>
ERROR: rtmp server requested close
DEBUG: Closing connection.
Reply

Logout Mark Read Team Forum Stats Members Help
Weird video URL for cbc.ca0