View Single Post
  #4  
Old 05-25-2016, 09:32 PM
nyancat nyancat is offline
Junior Member
 
Join Date: Mar 2016
Posts: 9
nyancat is on a distinguished road
Default

Re: how to capture this stream?


Quote:
Originally Posted by joejones15 View Post
i try this in livestreamer, but no work:

Code:
livestreamer "hls://http://cdn.sstream.pw/live/tvb126/playlist.m3u8" best -o video.ts
You need to include the Referer URL and change the User-Agent to get around the 403 Forbidden message.

Also make sure to only accept gzip & deflate encoding (for some reason, livestreamer includes "compress" which makes the connection timeout).



Code:
livestreamer "hls://http://cdn.sstream.pw/live/tvb126/playlist.m3u8" best --http-header "Referer=http://www.playerhd2.pw/embed.php?c=2126&width=640&height=360&autostart=true&tk1=wBwkIfNbMFqt2iwOhMQtNTbu5LeYUvBQwWhfLuqQWRs%3D&tk2=g7VGsXGQ63hNwwyN7%2BPZYS%2FaNygvgbjH73C9nWqcnZo%3D&tk3=NdEEACg7lUeHE7PpySOpKvzRNE13KQ79kU%2FYG6kqUw4%3D" --http-header "Accept-Encoding=gzip, deflate" --http-header "User-Agent=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36" -o test.ts
Reply With Quote