Help to record stream with livestreamer (linux)Hi,
I used to record via command line this stream: http://www.rtp.pt/play/direto/rtpafrica It used to work like these: livestreamer "hlsvariant://http://rtp-pull-wrtp-live.hls.adaptive.level3.net/liverepeater/smil:rtpafrica.smil/playlist.m3u8" best -o - | ffmpeg -i - /var/tmp/RTPAfrica.mp4 The URL seems to be the same, but when I do it know I receive this from livestreamer: error: Unable to open URL: http://rtp-pull-wrtp-live.hls.adapti.../playlist.m3u8 (401 Client Error: Unauthorized for url: http://rtp-pull-wrtp-live.hls.adapti.../playlist.m3u8) Any ideas? Many thanks in advance! :-) |
Re: Help to record stream with livestreamer (linux)Hi,
you need to use a referer paramter to get it work with LS.If you load the site and check the response in the webconsole of your browser then you can see it. Just use it like this... Code:
livestreamer --http-header "Referer=http://www.rtp.pt/play/direto/rtpafrica" "hlsvariant://http://rtp-pull-wrtp-live.hls.adaptive.level3.net/liverepeater/smil:rtpafrica.smil/playlist.m3u8" best |
Re: Help to record stream with livestreamer (linux)Many thanks!! :-)
|
All times are GMT -6. The time now is 02:16 AM. |