Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Capturing apple demo HLS stream fails with 404's #44

Open
kormoc opened this issue Feb 22, 2013 · 1 comment
Open

Capturing apple demo HLS stream fails with 404's #44

kormoc opened this issue Feb 22, 2013 · 1 comment

Comments

@kormoc
Copy link

kormoc commented Feb 22, 2013

Apple has an example HLS stream at https://devimages.apple.com.edgekey.net/resources/http-streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8 that fails to work with hlsclient.

2013-02-21 22:31:49,523 - DEBUG [worker for bipbop] - Downloading http://devimages.apple.com.edgekey.net:80/resources/http-streaming/examples/bipbop_16x9/gear1/#EXT-X-BYTERANGE:328248@43112724
2013-02-21 22:31:49,524 - WARNING [worker for bipbop] - Got 404 trying to download http://devimages.apple.com.edgekey.net:80/resources/http-streaming/examples/bipbop_16x9/gear1/#EXT-X-BYTERANGE:326932@42130424
@hltbra
Copy link
Contributor

hltbra commented Apr 16, 2013

This problem may be because you are using a VOD playlist, and hlsclient was created to deal with live playlists.

This problem you are reporting is with m3u8 package, a dependency of hlsclient:

>>> import urllib2
>>> apple_m3u8 = urllib2.urlopen("https://devimages.apple.com.edgekey.net:443/resources/http-streaming/examples/bipbop_16x9/gear1/prog_index.m3u8").read()
>>> import m3u8
>>> playlist = m3u8.loads(apple_m3u8)
>>> playlist.segments[0].uri
'#EXT-X-BYTERANGE:326744@0'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants