GithubHelp home page GithubHelp logo

petdr / python-iview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akent/python-iview

0.0 2.0 0.0 944 KB

Alternative frontend to ABC TV’s Iview service. Now requires Python 3 and supports Akamai HD unmetered streaming.

License: GNU General Public License v3.0

python-iview's Introduction

Python command-line and GTK+ interface to ABC iView

Copyright © 2009–2010 by Jeremy Visser [email protected]

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Requirements

For the GUI:

Optional dependencies:

Installation

  1. Make sure Python is installed and working.
  2. Either run ./iview-cli or ./iview-gtk.

Usage

Some usage examples are provided for your perusal.

This is a purely informational command. It verifies that handshaking is working correctly, and shows which streaming host is used.

$ ./iview-cli --print-auth
iView auth data:
    Streaming Host: Akamai
    RTMP Token: [...]
    HDS Token: [...]
    Server URL: http://iviewmetered-vh.akamaihd.net/z/
    Playpath Prefix: playback/_definst_/
    Unmetered: False

This can be used to list the iView programmes and find a programme’s file name:

$ ./iview-cli --programme
7.30:
    7.30 Episode 193 26/11/2013	(news/730s_Tx_2611.mp4)
    7.30 25/11/2013	(news/730s_Tx_2511.mp4)
    7.30 20/11/2013	(news/730s_Tx_2011.mp4)
[...]

To actually download the programme, use something like the following:

$ ./iview-cli --download news/730s_Tx_2611.mp4

Hopefully that will download an .flv file into your current directory, appropriately named. Downloaded files always use the FLV container format, despite any “.mp4” suffix in the original name.

RTMP

Iview now seems to use the HDS protocol for most programmes, although it used to use the RTMP protocol. However, RTMP still seems to be used for the News 24 live stream, and the on-demand programmes still seem to be available from the old RTMP host. The RTMP downloader supports resuming interrupted files, even though the HDS downloader currently does not.

To use RTMP, install rtmpdump. If building from source, copy rtmpdump to somewhere within your $PATH (e.g. /usr/local/bin). The RTMP host may be forced with the “iview-cli --host AkamaiRTMP” option.

Hacking

Uh...good luck.

There are a few variables that can be edited in the “config.py” file.

:wq

python-iview's People

Contributors

aperkins81 avatar bencollerson avatar benphegan avatar jeremyvisser avatar sdt avatar shenki avatar timwhite avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.