Quote:
Originally Posted by j_cool
It works with extension mp4.
Code:
streamlink hls://http://pl.koolearn.com/video/m3u8_free?id=16918^&consumerType=1002001^&userId=-1^&keyNumber=0001^×Tamp=1498749361742^&key=6F579762085E7B52B46AEED92726BE28^&hiddenTeach=1 best -o test.mp4
Code:
C:\>streamlink hls://http://pl.koolearn.com/video/m3u8_free?id=16918&consumerType=1002001&userId=-1&keyNumber=0001×Tamp=1498749361742&key=6F579762085E7B52B46AEED92726BE28&hiddenTeach=1 best -o test.mp4
[cli][info] Found matching plugin stream for URL hls://http://pl.koolearn.com/video/m3u8_free?id=16918&consumerType=1002001&userId=-1&keyNumber=0001×Tamp=1498749361742&key=6F579762085E7B52B46AEED92726BE28&hiddenTeach=1
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[download][test.mp4] Written 63.3 MB (6m33s @ 171.9 KB/s)
[cli][info] Stream ended
[cli][info] Closing currently open stream...
Code:
C:\>streamlink hls://http://pl.koolearn.com/video/m3u8_free?id=16918&consumerType=1002001&userId=-1&keyNumber=0001×Tamp=1498749361742&key=6F579762085E7B52B46AEED92726BE28&hiddenTeach=1 best -o test.ts
[cli][info] Found matching plugin stream for URL hls://http://pl.koolearn.com/video/m3u8_free?id=16918&consumerType=1002001&userId=-1&keyNumber=0001×Tamp=1498749361742&key=6F579762085E7B52B46AEED92726BE28&hiddenTeach=1
[cli][info] Available streams: live (best, worst)
[cli][info] Opening stream: live (hls)
[cli][error] Try 1/1: Could not open stream <HLSStream('http://pl.koolearn.com/video/m3u8_free?id=16918&consumerType=1002001&userId=-1&keyNumber=0001×Tamp=1498749361742&key=6F579762085E7B52B46AEED92726BE28&hiddenTeach=1')> (Could not open stream: Missing #EXTM3U header)
error: Could not open stream <HLSStream('http://pl.koolearn.com/video/m3u8_free?id=16918&consumerType=1002001&userId=-1&keyNumber=0001×Tamp=1498749361742&key=6F579762085E7B52B46AEED92726BE28&hiddenTeach=1')>, tried 1 times, exiting
|
The extension on the output file name does not make a difference to Streamlink or Livestreamer. You downloaded a TS file and misnamed it as an MP4.
The M3U8 link has an expiration timestamp on it and expires in a few seconds. Your second attempt to download the video with the TS extension failed because the link had expired before you tried it.