FAQ  •  Register  •  Login

Issue with BBC iPlayer

<<

turls2201

Streaming enthusiast

Posts: 29

Joined: Fri Jun 07, 2013 2:31 pm

Post Fri Jun 07, 2013 2:54 pm

Issue with BBC iPlayer

First the install:
Using version 1.2.1 and WebUI v 1.4beta2
Using ffmpeg from Qnap install instructions:
ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 2 2013 22:26:04 with gcc 4.2.1 (GCC)
configuration: --arch=x86_64 --enable-ssse3 --prefix=/opt --extra-cflags=-I/opt/include --extra-ldflags=-L/opt/lib --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --enable-libass --enable-fontconfig --enable-libfreetype
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102

This is installed on a QNAD 459 pro II with intel chip.

Have tried to add a BBC link but get an erro in the debug:
2013-06-07 15:30:13,643 DEBUG [FeedUpdaterThread] Retrieving information about the video stream 'Escape to the Country: Series 12: Isle of Wight'
2013-06-07 15:30:13,643 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: rtmp://bbcmedia.fcod.llnwd.net:1935/ app=a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b019j2cy_1370087538.mp4,iplayerstream/secure_auth/800kbps/MP/b019j2cy_1370087552.mp4,iplayerstream/secure_auth/1500kbps/MP/b019j2cy_1370087191.mp4,iplayerstream/secure_auth/400kbps/b019j2cy_1370087538.mp4&et=1370622592&fmta-token=33fc51690ae63dee691a1b739e869e5af5c22ca1804ea68bfedaf950ebd9d94e tcUrl=rtmp://bbcmedia.fcod.llnwd.net:1935/a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b019j2cy_1370087538.mp4,iplayerstream/secure_auth/800kbps/MP/b019j2cy_1370087552.mp4,iplayerstream/secure_auth/1500kbps/MP/b019j2cy_1370087191.mp4,iplayerstream/secure_auth/400kbps/b019j2cy_1370087538.mp4&et=1370622592&fmta-token=33fc51690ae63dee691a1b739e869e5af5c22ca1804ea68bfedaf950ebd9d94e playpath=mp4:iplayerstream/secure_auth/1500kbps/MP/b019j2cy_1370087191.mp4 swfUrl=http://www.bbc.co.uk/emp/10player.swf swfVfy=1
2013-06-07 15:30:13,643 DEBUG [ProcessExecutor] Starting /share/MD0_DATA/.qpkg/Serviio1/opt/bin/ffmpeg -analyzeduration 10000000 -i rtmp://bbcmedia.fcod.llnwd.net:1935/ app=a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b019j2cy_1370087538.mp4,iplayerstream/secure_auth/800kbps/MP/b019j2cy_1370087552.mp4,iplayerstream/secure_auth/1500kbps/MP/b019j2cy_1370087191.mp4,iplayerstream/secure_auth/400kbps/b019j2cy_1370087538.mp4&et=1370622592&fmta-token=33fc51690ae63dee691a1b739e869e5af5c22ca1804ea68bfedaf950ebd9d94e tcUrl=rtmp://bbcmedia.fcod.llnwd.net:1935/a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b019j2cy_1370087538.mp4,iplayerstream/secure_auth/800kbps/MP/b019j2cy_1370087552.mp4,iplayerstream/secure_auth/1500kbps/MP/b019j2cy_1370087191.mp4,iplayerstream/secure_auth/400kbps/b019j2cy_1370087538.mp4&et=1370622592&fmta-token=33fc51690ae63dee691a1b739e869e5af5c22ca1804ea68bfedaf950ebd9d94e playpath=mp4:iplayerstream/secure_auth/1500kbps/MP/b019j2cy_1370087191.mp4 swfUrl=http://www.bbc.co.uk/emp/10player.swf swfVfy=1
2013-06-07 15:30:13,843 WARN [FeedUpdaterThread] Failed to retrieve online item information for rtmp://bbcmedia.fcod.llnwd.net:1935/ app=a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b019j2cy_1370087538.mp4,iplayerstream/secure_auth/800kbps/MP/b019j2cy_1370087552.mp4,iplayerstream/secure_auth/1500kbps/MP/b019j2cy_1370087191.mp4,iplayerstream/secure_auth/400kbps/b019j2cy_1370087538.mp4&et=1370622592&fmta-token=33fc51690ae63dee691a1b739e869e5af5c22ca1804ea68bfedaf950ebd9d94e tcUrl=rtmp://bbcmedia.fcod.llnwd.net:1935/a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b019j2cy_1370087538.mp4,iplayerstream/secure_auth/800kbps/MP/b019j2cy_1370087552.mp4,iplayerstream/secure_auth/1500kbps/MP/b019j2cy_1370087191.mp4,iplayerstream/secure_auth/400kbps/b019j2cy_1370087538.mp4&et=1370622592&fmta-token=33fc51690ae63dee691a1b739e869e5af5c22ca1804ea68bfedaf950ebd9d94e playpath=mp4:iplayerstream/secure_auth/1500kbps/MP/b019j2cy_1370087191.mp4 swfUrl=http://www.bbc.co.uk/emp/10player.swf swfVfy=1. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:292)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:209)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:102)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:453)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:94)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:132)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:269)
... 2 more

When running at command line it get:

[ Client.SWFVerificiation.Rejected ] : status code 433>
But not sure if this is because the session token cannot be re-used


Full debug:
Parsing...
Parsed protocol: 0
Parsed host : iplayertokfs.fplive.net
Parsed app : iplayertok?token=c3RhcnRfdGltZT0yMDEzMDYwNzExNDY1OSZlbmRfdGltZT0yMDEzMDYwNzE1NDY1OSZkaWdlc3Q9MGVlZTczOGM4ODhkNGFiYWVkOGVjNmY5N2U4ZmRmNjY=
RTMP_Connect1, ... connected, handshaking
HandShake: Client type: 03
HandShake: Client digest offset: 430
HandShake: Initial client digest:
bf 5c d1 5f 71 e8 da 3a 96 4c c3 ab 39 25 2b 9e
1b 70 9b 87 5b 03 61 6c e2 f0 7c e4 8d 11 88 a7
HandShake: Type Answer : 03
HandShake: Server Uptime : 828850173
HandShake: FMS Version : 4.5.3.1
HandShake: Calculated digest key from secure key and server digest:
6a 2a 25 02 47 f9 4a d2 fa 20 ee cf 9a ff ee 2a
a1 fd 88 27 3d fe 9a 2e 19 e5 56 ac 5e bc 9b 29
HandShake: Client signature calculated:
c9 70 75 cd 1e b5 73 47 22 2b 54 95 a3 67 0b 1f
da ef 09 6b 11 4f 3e ea 21 0a c0 db 9b 89 4a 0e
HandShake: Server sent signature:
7b 9c 92 bd aa d6 b8 04 99 64 9e 4f 6b 5d e2 f3
8c 40 4e 96 b7 07 6c cd f3 8a e3 9b 29 e7 32 76
HandShake: Digest key:
7e 5f 1c 2b 31 53 dd 76 15 87 cc 5a ea d9 dd a6
ec bc 77 d1 a0 ff c3 45 51 d5 a4 29 f8 00 33 f6
HandShake: Signature calculated:
7b 9c 92 bd aa d6 b8 04 99 64 9e 4f 6b 5d e2 f3
8c 40 4e 96 b7 07 6c cd f3 8a e3 9b 29 e7 32 76
HandShake: Genuine Adobe Flash Media Server
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
Invoking connect
HandleServerBW: server BW = 2500000
HandleClientBW: client BW = 2500000 2
HandleCtrl, received ctrl. type: 26, len: 3
HandleCtrl, SWFVerification ping received:
sending ctrl. type: 0x001b
Sending SWFVerification response:
00 1b 01 01 00 0f 9c 9b 00 0f 9c 9b d8 37 d2 22
0f 58 80 40 ea 64 f1 18 96 b8 7c c0 7d d6 f7 8c
32 06 64 1a 63 23 9b 3a d8 a1 4a 5a
HandleChangeChunkSize, received: chunk size change to 16384
RTMP_ClientPacket, received: invoke 181 bytes
(object begin)
Property: <Name: no-name., STRING: _error>
Property: <Name: no-name., NUMBER: 1.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: error>
Property: <Name: code, STRING: NetConnection.Connect.Rejected>
Property: <Name: description, STRING: Connection failed.>
Property: <Name: description, STRING: [ Client.SWFVerificiation.Rejected ] : status code 433>
(object end)
(object end)
HandleInvoke, server invoking <_error>
rtmp server sent error
RTMP_ClientPacket, received: invoke 18 bytes
(object begin)
Property: <Name: no-name., STRING: close>



Any help would be appreciated

Cheers Ian
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Jun 07, 2013 3:21 pm

Re: Issue with BBC iPlayer

it might be expired already (the token). Did you try it immediately after it failed in the log?
<<

turls2201

Streaming enthusiast

Posts: 29

Joined: Fri Jun 07, 2013 2:31 pm

Post Fri Jun 07, 2013 5:14 pm

Re: Issue with BBC iPlayer

Yes - and it fails for all iplayer feeds - will try again now
<<

turls2201

Streaming enthusiast

Posts: 29

Joined: Fri Jun 07, 2013 2:31 pm

Post Fri Jun 07, 2013 5:35 pm

Re: Issue with BBC iPlayer

Tried with 30 seconds and still get the same error

Property: <Name: description, STRING: [ Client.SWFVerificiation.Rejected ] : status code 433>

Am i missing some library or should ffmpeg be comiled with some other options?


Is there also a problem with channel 4od:
Unexpected error during url extractor plugin invocation (4OD (UK only)) for item null: index is out of range 0..-1 (index = 0)

PS. This is a great application - being trying ages to get something that will transcode for my older sony tv

Cheers Ian
<<

turls2201

Streaming enthusiast

Posts: 29

Joined: Fri Jun 07, 2013 2:31 pm

Post Tue Jun 11, 2013 7:23 am

Re: Issue with BBC iPlayer

After a lot of research and debugging I have found the problem. The problem is in the iplayer.groovy code and what .swf file is coded. The standard code I had was:
swfUrl=http://www.bbc.co.uk/emp/10player.swf
IF I change to:
swfUrl=http://www.bbc.co.uk/emp/releases/iplayer/revisions/749603_749269_749444_6/749603_749269_749444_6_emp.swf
it works fine.

Question - I assume this is changed regularly by the BBC as new versions of flash player come out?
2. How do you find the latest version - I think I was just lucky?

I now have iplayer working fine - now onto 4oD :-)

Regards Ian
<<

turls2201

Streaming enthusiast

Posts: 29

Joined: Fri Jun 07, 2013 2:31 pm

Post Sat Jun 15, 2013 2:25 pm

Re: Issue with BBC iPlayer

Any response?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jun 15, 2013 2:38 pm

Re: Issue with BBC iPlayer

the plugin has been updated with the new swf version.
<<

turls2201

Streaming enthusiast

Posts: 29

Joined: Fri Jun 07, 2013 2:31 pm

Post Sat Jun 15, 2013 3:09 pm

Re: Issue with BBC iPlayer

How often does this need doing and how do you find the latest - I was just lucky on this!
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sat Jun 15, 2013 9:05 pm

Re: Issue with BBC iPlayer

turls2201 wrote:How often does this need doing and how do you find the latest - I was just lucky on this!

I found it by checking out the open source XBMC iPlayer plugin - Line 350 here
Its not frequent that iPlayer changed its swf url
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

turls2201

Streaming enthusiast

Posts: 29

Joined: Fri Jun 07, 2013 2:31 pm

Post Sun Jun 16, 2013 7:01 pm

Re: Issue with BBC iPlayer

I have found out how - if you right click on the iplayer screen to get the about information it gives the r number which matches the directories. For example the current verion is
http://www.bbc.co.uk/emp/releases/iplay ... _6_emp.swf

the r number is 749603_749269_749444_6
so there is a directory
749603_749269_749444_6
and the file is
749603_749269_749444_6_emp.swf

BTW the latest verision of the groovy file on here viewtopic.php?f=20&t=3277 contains the wrong version though it may still work:
swfUrl=http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 11 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.