Interesting, I tried that with curl, and it shows the first frame of the video, and then exits. Looking through the debug block shows this is where it stops:
Code:
6:44:11 T:3021797248 M:3696136192 NOTICE: Created m_glPixmapTexture (1)
16:44:11 T:3021797248 M:3696136192 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
16:44:11 T:2713684848 M:3696136192 INFO: Scriptresult: Success
16:44:11 T:2713684848 M:3696136192 INFO: Python script stopped
16:44:11 T:2713684848 M:3696136192 DEBUG: Thread 2713684848 terminating
16:44:11 T:3021797248 M:3696136192 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
16:44:11 T:3021797248 M:3696136192 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.iplayer/?pid=b00jz2t4]
16:44:11 T:3021797248 M:3696136192 DEBUG: Playlist Player: no more playable items... aborting playback
This appears to mean the script passes off the RTMP stream to the DVD player, and then exits (without giving the right error code). The player catches the exiting of the script as the end of the video (beliveing it to be unplayable?).
Has this usage of a python script to handle a video been thought about, or is this new? Should the script stay running until the program completes (what happens if we exit ourselves) or does it just need to pass the correct return code?
More worryingly. If i run the command again XBMC hangs. the last stuff in xbmc.log is
Code:
16:57:24 T:2785151856 M:3672379392 NOTICE: iplayer2.py: INFO Reusing existing thumbfile =/home/alex/.xbmc/userdata/Thumbnails/Video/f/f91ae172.tbn for url plugin://plugin.video.iplayer/?pid=b00jz2t4
16:57:24 T:2785151856 M:3672379392 NOTICE: .
16:57:24 T:2785151856 M:3672379392 NOTICE: iplayer2.py: INFO Stream XML URL: http://www.bbc.co.uk/mediaselector/4/mtis/stream/b00jz2mx
16:57:24 T:2785151856 M:3672379392 NOTICE: .
16:57:24 T:2785151856 M:3672379392 NOTICE: iplayer2.py: INFO URL Fetch took 0.00 sec for http://www.bbc.co.uk/mediaselector/4/mtis/stream/b00jz2mx
16:57:24 T:2785151856 M:3672379392 NOTICE: .
16:57:24 T:2785151856 M:3672379392 NOTICE: iplayer2.py: INFO watching url=rtmp://bbcmedia.fcod.llnwd.net:1935/ app=a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/1500kbps/MP/b00jz2mx_1293729314.mp4,iplayerstream/secure_auth/800kbps/MP/b00jz2mx_1293728993.mp4,iplayerstream/secure_auth/480kbps/MP/b00jz2mx_1293729314.mp4,iplayerstream/secure_auth/400kbps/b00jz2mx_1293729311.mp4&et=1294079791&fmta-token=80cea546e3d874d1288ccbed7d986222a2d6d214d23a7575d833eb6b73773972 tcurl=rtmp://bbcmedia.fcod.llnwd.net:1935/a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/1500kbps/MP/b00jz2mx_1293729314.mp4,iplayerstream/secure_auth/800kbps/MP/b00jz2mx_1293728993.mp4,iplayerstream/secure_auth/480kbps/MP/b00jz2mx_1293729314.mp4,iplayerstream/secure_auth/400kbps/b00jz2mx_1293729311.mp4&et=1294079791&fmta-token=80cea546e3d874d1288ccbed7d986222a2d6d214d23a7575d833eb6b73773972 playpath=mp4:iplayerstream/secure_auth/800kbps/MP/b00jz2mx_1293728993.mp4 swfurl=http://www.bbc.co.uk/emp/10player.swf swfvfy=true timeout=600
16:57:24 T:2785151856 M:3672379392 NOTICE: .
16:57:24 T:2785151856 M:3672379392 NOTICE: iplayer2.py: INFO Playing preference h264 800
16:57:24 T:2785151856 M:3672379392 NOTICE: .
it stops on the
player.play(play)
line in default.py