Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 01-23-2017, 08:27 AM
piratilla_bcn piratilla_bcn is offline
Junior Member
 
Join Date: Apr 2015
Posts: 28
piratilla_bcn is on a distinguished road
Default

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! :-)
Reply With Quote
  #2  
Old 01-23-2017, 11:08 AM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

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
greetz
Reply With Quote
  #3  
Old 01-23-2017, 11:14 AM
piratilla_bcn piratilla_bcn is offline
Junior Member
 
Join Date: Apr 2015
Posts: 28
piratilla_bcn is on a distinguished road
Default

Re: Help to record stream with livestreamer (linux)


Many thanks!! :-)
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 05:19 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons