PDA

View Full Version : Livestreamer


nullacht
03-10-2015, 11:15 AM
Livestreamer

http://docs.livestreamer.io

https://github.com/chrippa/livestreamer

A command line tool that pipes video streams from various services into a video player, such as VLC.

Supported streaming protocols:

Adobe HTTP Dynamic Streaming hds://
Akamai HD Adaptive Streaming akamaihd://
Apple HTTP Live Streaming hls:// hlsvariant://
Real Time Messaging Protocol rtmp:// rtmpe:// rtmps:// rtmpt:// rtmpte://
Progressive HTTP, HTTPS, etc httpstream://

Command line usage:

livestreamer [options] [url] [stream]


File output option [Write stream data to FILENAME instead of playing it.]:

-o FILENAME, --output FILENAME

Windows binaries:


https://github.com/chrippa/livestreamer/releases

http://livestreamer-builds.s3.amazonaws.com/livestreamer-latest-win32.zip

Plugins:

http://docs.livestreamer.io/plugin_matrix.html

Currently most of the big streaming services are supported, such as:


Arte.tv
Bambuser.com
Chaturbate.com
Crunchyroll.com
Dailymotion.com
Hitbox.tv
Livestream.com
MLG.tv
SVTPlay.se
Twitch.tv
UStream.tv
Wat.tv
Weeb.tv
YouTube.com
ZDF.de

... and many more.

vijankush
03-19-2015, 12:25 PM
Thanks. This helped me a lot :)

-D3n1s-
03-19-2015, 04:59 PM
You can try LiveStreamer Playlist:

http://www.kerman.hr/forum/index.php?topic=17946.0

mohqwt
09-25-2015, 06:31 PM
Livestreamer

http://docs.livestreamer.io

https://github.com/chrippa/livestreamer

A command line tool that pipes video streams from various services into a video player, such as VLC.

Supported streaming protocols:

Adobe HTTP Dynamic Streaming hds://
Akamai HD Adaptive Streaming akamaihd://
Apple HTTP Live Streaming hls:// hlsvariant://
Real Time Messaging Protocol rtmp:// rtmpe:// rtmps:// rtmpt:// rtmpte://
Progressive HTTP, HTTPS, etc httpstream://

Command line usage:

livestreamer [options] [url] [stream]


File output option [Write stream data to FILENAME instead of playing it.]:

-o FILENAME, --output FILENAME

Windows binaries:


https://github.com/chrippa/livestreamer/releases

http://livestreamer-builds.s3.amazonaws.com/livestreamer-latest-win32.zip

Plugins:

http://docs.livestreamer.io/plugin_matrix.html

Currently most of the big streaming services are supported, such as:


Arte.tv
Bambuser.com
Chaturbate.com
Crunchyroll.com
Dailymotion.com
Hitbox.tv
Livestream.com
MLG.tv
SVTPlay.se
Twitch.tv
UStream.tv
Wat.tv
Weeb.tv
YouTube.com
ZDF.de

... and many more.

can you explain how can i use it , because im new

SlowNet
09-27-2015, 09:11 AM
can it download videos from hulu as well..?

greatcityness
10-10-2015, 01:08 AM
To download Bambuser braodcasts, you may also try this method at http://www.allavsoft.com/how-to/bambuser-downloader.html

gowtham
10-27-2015, 12:59 PM
i just want to download any streaming content in mp3 format instead of flv! what do i do? Someone said i need ffmpeg to transcode.. if then. how to do it..?

reply me in this thread: http://stream-recorder.com/forum/help-converting-any-video-stream-mp3-format-t20392.html

stream_monkey
02-13-2016, 12:34 PM
Hello community-

Is there a way to set a user agent in livestreamer? Say, for example make it appear to the server as if the OS being used is Android rather than Windows?

Thank you.

zer00
03-01-2016, 07:25 AM
@stream_monkey

you can use the http-header option like this:

livestreamer --http-header "User-Agent=Mozilla/5.0 (Linux; U; Android 4.3; en-us; sdk Build/MR1) AppleWebKit/536.23 (KHTML, like Gecko) Version/4.3 Mobile Safari/536.23" ...

stream_monkey
03-06-2016, 06:49 PM
@stream_monkey

you can use the http-header option like this:

livestreamer --http-header "User-Agent=Mozilla/5.0 (Linux; U; Android 4.3; en-us; sdk Build/MR1) AppleWebKit/536.23 (KHTML, like Gecko) Version/4.3 Mobile Safari/536.23" ...


Thank you.

One more question: Can anyone let me know the correct syntax to use to get livestreamer to play a local, hlsvariant m3u8? I don't have problems when the m3u8 is on the web, but when I try to point it to a local file it doesn't work.

sebus
06-09-2016, 02:41 AM
I can play this local static stream (served by Unreal Madia Server (http://umediaserver.net/umediaserver/download.html))

rtmp://10.0.0.42:5119/vod/MediaRoot2/Illuminations-ThePrivateLivesofMedievalKings/Ep3.LibrariesGaveUsPower_59m_09s.mp4

in VLC perfectly fine

But livestreamer chokes on it (not that I need it, just trying to test)

C:\Livestreamer>livestreamer --player="C:\Program Files\VideoLAN\VLC\vlc.exe" "rtmp://10.0.0.42:5119/vod/MediaRoot2/Illuminations-ThePrivateLivesofMedievalKings/Ep3.LibrariesGaveUsPower_59m_09s.mp4" best
[cli][info] Found matching plugin stream for URL rtmp://10.0.0.42:5119/vod/MediaRoot2/Illuminations-ThePrivateLivesofMedievalKings/Ep3.LibrariesGaveUsPower_59m_09s.mp4
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (rtmp)
[cli][error] No data returned from stream


Obviously that is not correct, as the stream exists & as stated plays fine in VLC

sebus
06-09-2016, 12:14 PM
Any idea if ITV can be restreamed with ffmpeg. Currently I get error if:

livestreamer -O "http://www.itv.com/hub/itv" best 2>NUL | ffmpeg -re -i - -sn -vcodec copy -acodec copy -f flv "rtmp://127.0.0.1/MonaClients/itv"

pipe:: Invalid data found when processing input


Thanks for any help

sebus

edit:

This works!

livestreamer "http://www.itv.com/hub/itv" best --player-external-http-port 59411

and then I can

ffmpeg -re -i http://127.0.0.1:59411 -sn -vcodec copy -acodec copy -f flv "rtmp://127.0.0.1/MonaClients/itv"

danielko
08-14-2016, 01:57 PM
Hi guys,

any help with this one?

http://nlds128.neulion.com:443/play?url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_4500.mp4

Thank you :)

SlowNet
08-16-2016, 08:42 AM
Hi guys,

any help with this one?

http://nlds128.neulion.com:443/play?url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_4500.mp4

Thank you :)

Link not working!

danielko
08-22-2016, 03:04 AM
Link not working!

How about this? I managed to find these:

<?xml version="1.0" encoding="utf-8" ?> <channel version="3.5" currentTime="0" defaultStreamIndex="5"> <streamDatas> <streamData url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_4500.mp4" blockDuration="2000" bitrate="4608000" duration="7795587"> <encryption method="aes-128" keyUrl="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_4500.mp4" keyDuration="3600000" keySecure="false" keyTransfer="secure" token="NLAuth=fef27c89cc7b8fde5592909c48963707-0-32;serverKey_internal_ASV3=aeaeb8a53456cf1871ceab1 ea17aac4c-f5bff7e7ad81883ff06843843a74aa37-1471869164-32" /> <video width="1280" height="720" fps="29.970030" bitrate="4317184" codec="avc1" /> <audio channelCount="2" samplesRate="44100" sampleBitSize="16" bitrate="124928" codec="mp4a" /> <httpservers> <httpserver name="nlds128.cdnak.neulion.com" port="80" /> <httpserver name="nlds128.cdnllnwnl.neulion.com" port="80" /> </httpservers> </streamData> <streamData url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_3000.mp4" blockDuration="2000" bitrate="3072000" duration="7795754"> <encryption method="aes-128" keyUrl="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_3000.mp4" keyDuration="3600000" keySecure="false" keyTransfer="secure" token="NLAuth=fef27c89cc7b8fde5592909c48963707-0-32;serverKey_internal_ASV3=aeaeb8a53456cf1871ceab1 ea17aac4c-f5bff7e7ad81883ff06843843a74aa37-1471869164-32" /> <video width="1280" height="720" fps="29.970030" bitrate="2824192" codec="avc1" /> <audio channelCount="2" samplesRate="44100" sampleBitSize="16" bitrate="124928" codec="mp4a" /> <httpservers> <httpserver name="nlds128.cdnak.neulion.com" port="80" /> <httpserver name="nlds128.cdnllnwnl.neulion.com" port="80" /> </httpservers> </streamData> <streamData url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_2400.mp4" blockDuration="2000" bitrate="2457600" duration="7795754"> <encryption method="aes-128" keyUrl="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_2400.mp4" keyDuration="3600000" keySecure="false" keyTransfer="secure" token="NLAuth=fef27c89cc7b8fde5592909c48963707-0-32;serverKey_internal_ASV3=aeaeb8a53456cf1871ceab1 ea17aac4c-f5bff7e7ad81883ff06843843a74aa37-1471869164-32" /> <video width="960" height="540" fps="29.970030" bitrate="2264064" codec="avc1" /> <audio channelCount="2" samplesRate="44100" sampleBitSize="16" bitrate="93184" codec="mp4a" /> <httpservers> <httpserver name="nlds128.cdnak.neulion.com" port="80" /> <httpserver name="nlds128.cdnllnwnl.neulion.com" port="80" /> </httpservers> </streamData> <streamData url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_1600.mp4" blockDuration="2000" bitrate="1638400" duration="7795754"> <encryption method="aes-128" keyUrl="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_1600.mp4" keyDuration="3600000" keySecure="false" keyTransfer="secure" token="NLAuth=fef27c89cc7b8fde5592909c48963707-0-32;serverKey_internal_ASV3=aeaeb8a53456cf1871ceab1 ea17aac4c-f5bff7e7ad81883ff06843843a74aa37-1471869164-32" /> <video width="960" height="540" fps="29.970030" bitrate="1478656" codec="avc1" /> <audio channelCount="2" samplesRate="44100" sampleBitSize="16" bitrate="77824" codec="mp4a" /> <httpservers> <httpserver name="nlds128.cdnak.neulion.com" port="80" /> <httpserver name="nlds128.cdnllnwnl.neulion.com" port="80" /> </httpservers> </streamData> <streamData url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_1200.mp4" blockDuration="2000" bitrate="1228800" duration="7795754"> <encryption method="aes-128" keyUrl="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_1200.mp4" keyDuration="3600000" keySecure="false" keyTransfer="secure" token="NLAuth=fef27c89cc7b8fde5592909c48963707-0-32;serverKey_internal_ASV3=aeaeb8a53456cf1871ceab1 ea17aac4c-f5bff7e7ad81883ff06843843a74aa37-1471869164-32" /> <video width="640" height="360" fps="29.970030" bitrate="1126400" codec="avc1" /> <audio channelCount="2" samplesRate="44100" sampleBitSize="16" bitrate="56320" codec="mp4a" /> <httpservers> <httpserver name="nlds128.cdnak.neulion.com" port="80" /> <httpserver name="nlds128.cdnllnwnl.neulion.com" port="80" /> </httpservers> </streamData> <streamData url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_800.mp4" blockDuration="2000" bitrate="819200" duration="7795754"> <encryption method="aes-128" keyUrl="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_800.mp4" keyDuration="3600000" keySecure="false" keyTransfer="secure" token="NLAuth=fef27c89cc7b8fde5592909c48963707-0-32;serverKey_internal_ASV3=aeaeb8a53456cf1871ceab1 ea17aac4c-f5bff7e7ad81883ff06843843a74aa37-1471869164-32" /> <video width="640" height="360" fps="29.970030" bitrate="753664" codec="avc1" /> <audio channelCount="2" samplesRate="44100" sampleBitSize="16" bitrate="56320" codec="mp4a" /> <httpservers> <httpserver name="nlds128.cdnak.neulion.com" port="80" /> <httpserver name="nlds128.cdnllnwnl.neulion.com" port="80" /> </httpservers> </streamData> <streamData url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_400.mp4" blockDuration="2000" bitrate="409600" duration="7795754"> <encryption method="aes-128" keyUrl="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_400.mp4" keyDuration="3600000" keySecure="false" keyTransfer="secure" token="NLAuth=fef27c89cc7b8fde5592909c48963707-0-32;serverKey_internal_ASV3=aeaeb8a53456cf1871ceab1 ea17aac4c-f5bff7e7ad81883ff06843843a74aa37-1471869164-32" /> <video width="400" height="224" fps="29.970030" bitrate="350208" codec="avc1" /> <audio channelCount="2" samplesRate="44100" sampleBitSize="16" bitrate="56320" codec="mp4a" /> <httpservers> <httpserver name="nlds128.cdnak.neulion.com" port="80" /> <httpserver name="nlds128.cdnllnwnl.neulion.com" port="80" /> </httpservers> </streamData> </streamDatas> <imageStreamDatas> <streamData url="/nlds_vod/nfl/vod/2016/08/13/56837/20160813cfv2bkq2/1_56837_dal_la_2016_h_whole_1_thumbnail.images" duration="7800020"> <image width="112" height="86" format="jpg" interval="5000" /> <httpservers> <httpserver name="nlds128.cdnak.neulion.com" port="80" /> <httpserver name="nlds128.cdnllnwnl.neulion.com" port="80" /> </httpservers> </streamData> </imageStreamDatas> </channel>

confused.com
02-10-2017, 05:10 AM
https://www.reddit.com/r/Python/comments/5e6mlr/streamlink_an_up_to_date_fork_of_livestreamer/?st=iyghhus8&sh=9ca5190b

cristian
10-17-2017, 04:11 PM
where i can download livestreamer please?

j_cool
10-17-2017, 04:31 PM
https://github.com/chrippa/livestreamer/releases