Coder Social home page Coder Social logo

hls-fetch's Introduction

hls-fetch

Introduction

hls-fetch is a small program that downloads and decrypts HTTP Live Streaming (HLS) videos. HLS is commonly used for streaming video on Apple iOS devices.

hls-fetch can download videos from web pages with embedded

It is written in Perl.

Author and Feedback

hls-fetch is written by Oskar Liljeblad [email protected].

This software is a work in progress and there are probably many ways it can still be improved. If you'd like to contribute patches, ideas, or bug reports, please don't hesitate contacting me!

License

hls-fetch is copyright (C) 2012 Oskar Liljeblad.

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/.

Download

The latest hls-fetch can be downloaded from GitHub:

Requirements

  • Perl 5.10.0 (or later). Debian: perl

  • OpenSSL (only needed for encrypted streams). Debian: openssl

  • HTML::Parser Perl module. Debian: libhtml-parser-perl

  • LWP::UserAgent Perl module. Debian: libwww-perl

  • JSON Perl module. Debian: libjson-perl

  • URI Perl module. Debian: liburi-perl

Usage

All you need to specify on the command line is the URL to fetch. hls-fetch will download the page and look for a

Run 'hls-fetch --help' for further usage information.

Future

On SIGINT and other terminating signals, make sure temporary files are removed.

Autodetect data in URL so that the --embedded/--playlist/--svtplay options are not necessary.

References

hls-fetch's People

Contributors

somsak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hls-fetch's Issues

Bad decrypt due to key being fetched as decoded data

I've had trouble downloading a stream due to a bad decrypt error from OpenSSL. It turns out the wrong decrypt key was assembled when doing the faux hexdump of the fetched key file. This in turn was because the crypt key file was fetched as decoded utf8 data, although it's just a series of bytes. I fixed this by making this modification: https://github.com/alimony/hls-fetch/commit/6714efb15fe09efcfc9acb115eb41e7bd3c7abac

Would you be interested in a pull request with this fix?

invalid playlist, no header

I get a strange error when downloading from svtplay.

server:/storage1/hls-fetch# ./hls-fetch --svtplay
http://www.svtplay.se/video/1861168/fukushima
no output file specified, assuming video.ts
http://svtplay16p-f.akamaihd.net/i/se/open/20140308/1365368-001A/DOKUMENT_UTIFRA-001A-7da850e7501b699d_,900,348,564,1680,2800,.mp4.csmil/master.m3u8?cc1=name=Svenska~default=yes~forced=no~uri=http://media.svt.se/download/mcc/wp3/undertexter-wsrt/1365368/1365368-001A/C(sv)/index.m3u8~lang=sv: invalid playlist, no header

For decryption

I'm newbie to program and tried to install Perl & OpenSSL on my PC
I finally make the way out to run Perl, but the decryption didn't go smooth.
Is it something to do with the key file? I have no idea of how to get the key...
What I am trying to download is: http://logirl.favclip.com/video/tgs_concert05.html
I can get the m3u8, but I think that I have some problems on the decryption
2015-01-28_121444

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.