Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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! :-) |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
Re: Help to record stream with livestreamer (linux)Many thanks!! :-)
|
Tags: ffmpeg, hls variant, linux, livestreamer |
Thread Tools | |
Display Modes | |
|
|