PDA

View Full Version : how to capture this stream?


joejones15
05-24-2016, 07:12 PM
any ideas how to capture?

http://www.foot-live.info/stream/ch10.php

Terenz
05-25-2016, 06:57 AM
Search for "chunklist.m3u8" or "playlist.m3u8" in the cache of the browser ex. chrome://cache. Download it and use ffmpeg or livestreamer, you will find many example around.

joejones15
05-25-2016, 06:10 PM
Search for "chunklist.m3u8" or "playlist.m3u8" in the cache of the browser ex. chrome://cache. Download it and use ffmpeg or livestreamer, you will find many example around.

i try this in livestreamer, but no work:

livestreamer "hls://http://cdn.sstream.pw/live/tvb126/playlist.m3u8" best -o video.ts

nyancat
05-25-2016, 09:32 PM
i try this in livestreamer, but no work:

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).

http://i.imgur.com/7WOlHUB.png

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%2FaNygvgbjH73C9nWqcnZ o%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

joejones15
05-26-2016, 05:22 AM
many thanks nyancat!