[PATCH] Fix live tv streaming broken by live rewind

2012-06-20 Thread dinkypumpkin
Instructions for updating to Git HEAD:

https://github.com/dinkypumpkin/get_iplayer/wiki/githead

The live rewind feature added to iPlayer TV broke playlist parsing for live tv
due to the addition of a 'liverewind' attribute to  elements.  Parsing has
been fixed.  For example of new format:

http://www.bbc.co.uk/iplayer/playlist/bbc_two
---
 get_iplayer |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/get_iplayer b/get_iplayer
index 9356716..e0cc349 100755
--- a/get_iplayer
+++ b/get_iplayer
@@ -5033,7 +5033,8 @@ sub get_verpids {
# Live TV
if ( m{\s+simulcast="true"} ) {
$version = 'default';
-   $verpid = 
"http://www.bbc.co.uk/emp/simulcast/".$1.".xml"; if 
m{\s+live="true"\s+identifier="(.+?)"};
+   # 
+   $verpid = 
"http://www.bbc.co.uk/emp/simulcast/".$2.".xml"; if 
m{\s+live="true"\s+(liverewind="true"\s+)?identifier="(.+?)"};
main::logger "INFO: Using Live TV: $verpid\n" if 
$opt->{verbose} && $verpid;
 
# Live/Non-live EMP tv/radio XML URL
-- 
1.7.7.5 (Apple Git-26)


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: BBC iPlayer introduces Live Restart capability

2012-06-20 Thread dinkypumpkin

On 20/06/2012 13:51, Shevek wrote:

Is this going to kill of get_iplayer?

http://connecteddigitalworld.com/2012/06/19/bbc-iplayer-introduces-live-restart-capability/


Not necessarily, though it broke live tv streaming in get_iplayer. 
get_iplayer is as much to blame as the Beeb, though.  All that 
regex-based XML parsing in get_iplayer is a bit fragile, but it would be 
a non-trivial chore to replace it.


I've patched get_iplayer to restore live tv for now.  That's a bit of a 
drag so soon after a release, but then I wouldn't say live tv streaming 
is really get_iplayer's USP.  Still, commiserations to all package 
maintainers.



Or is it only for live TV?

Will they switch from RTMP to chunked streaming for non live?


I would guess they made this move for live tv on the iPlayer site as 
part of preparations for the hammering they're going to get during the 
Olympics.  There probably isn't much of an immediate incentive to do it 
for non-live content.  The BBC blog post offers no clue if existing RTMP 
streams (live and non-live) are going to disappear at any point.  If 
they do, there may be other options for downloading, though it would 
certainly require major changes in get_iplayer. We'll all have to keep 
an eye on this.  Thanks for flagging it up.


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: BBC iPlayer introduces Live Restart capability

2012-06-20 Thread Christopher Woods (CM)
This is a very interesting topic, particularly as I've noted that the 
Beeb's been running a (non-advertised) 720p BBC HD stream using chunked 
H.264 for a while. Quality's pretty darned decent, I'd watch it if I 
didn't have a Sky+HD box.


I can't imagine they'd rip and replace their entire infrastructure for 
on-demand, particularly with all the embedded devices they support... If 
anything this means more complexity - chunked HTTP for PC and Mac with 
the latest versions of Flash, progressive streaming for everything else.


On 20/06/2012 13:51, Shevek wrote:

Is this going to kill of get_iplayer?

http://connecteddigitalworld.com/2012/06/19/bbc-iplayer-introduces-live-restart-capability/

Or is it only for live TV?

Will they switch from RTMP to chunked streaming for non live?

"As we can keep all the video chunks as we distribute them, we can
offer them to be viewed again later, or even store them more
permanently."

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer




___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


BBC iPlayer introduces Live Restart capability

2012-06-20 Thread Shevek
Is this going to kill of get_iplayer?

http://connecteddigitalworld.com/2012/06/19/bbc-iplayer-introduces-live-restart-capability/

Or is it only for live TV?

Will they switch from RTMP to chunked streaming for non live?

"As we can keep all the video chunks as we distribute them, we can
offer them to be viewed again later, or even store them more
permanently."

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer