Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

afreeca is available,but the hls playlist parser is wrong. #488

Closed
trocknet opened this issue Aug 12, 2014 · 2 comments
Closed

afreeca is available,but the hls playlist parser is wrong. #488

trocknet opened this issue Aug 12, 2014 · 2 comments

Comments

@trocknet
Copy link

C:\Users\lenovo>livestreamer afreeca.com/yuambo best
[cli][info] Found matching plugin afreecatv for URL afreeca.com/yuambo
error: Failed to parse playlist: invalid literal for int() with base 10: '5.0'

the m3u8 file:

EXTM3U

EXT-X-VERSION:3

EXT-X-ALLOW-CACHE:NO

EXT-X-MEDIA-SEQUENCE:290

EXT-X-TARGETDURATION:5.0

EXTINF:5.0,

100290939-mobile_290.TS

EXTINF:5.0,

100290939-mobile_291.TS

EXTINF:5.0,

100290939-mobile_292.TS

I notice the m3u8 format about tag #EXTINF and #EXT-X-TARGETDURATION:
Durations MUST be integers if the protocol version of the Playlist file is less than 3

please fix it

@trocknet
Copy link
Author

workround:

hls_playlist.py edit line 179
179 self.m3u8.target_duration = self.parse_tag(line, float)

afreecatv.py
change
return HLSStream.parse_variant_playlist(self.session, playlist_url,
headers=HEADERS)
to
return {"live":HLSStream(self.session, playlist_url, headers=HEADERS)}

@trocknet
Copy link
Author

it seems that afreeca has enhanced this mobile stream.
1,Increase the resolution and bitrate of the stream.
2,use CDN to distribute the stream.

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

No branches or pull requests

1 participant