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

Comments

Projects
None yet
1 participant
@trocknet

trocknet commented Aug 12, 2014

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

This comment has been minimized.

Show comment
Hide comment
@trocknet

trocknet Aug 12, 2014

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 commented Aug 12, 2014

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

This comment has been minimized.

Show comment
Hide comment
@trocknet

trocknet Aug 12, 2014

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.

trocknet commented Aug 12, 2014

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.

@chrippa chrippa closed this in c63c32c Aug 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment