Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

streamlink: an up to date fork of livestreamer

(http://stream-recorder.com/forum/showthread.php?t=22646)

j_cool 04-08-2017 01:19 PM

Re: streamlink: an up to date fork of livestreamer


 
If you specify player on command line ( batch file ) it supersedes player from config file, streamlinkrc.

start /min streamlink -p "ffplay.exe -vf scale=854:480" %url% best

The rule "You must use a quoted path if there are spaces in the path" applies everywhere.

Damianonymous 04-08-2017 04:24 PM

Re: streamlink: an up to date fork of livestreamer


 
Quote:

Originally Posted by j_cool (Post 90812)
On command prompt type cd \

Now you start searching from beginning of your hard drive, c:\

Switch /s means subdirectories, makes dir look everywhere on your c: drive
C:\>

If after installing "pip install streamlink" it is not in the "%APPDATA%\streamlink\" folder of the streamlinkrc file, it should be created manually in this folder.

Code:

# Format is option=value. Lines starting with a # is considered comments
# and are ignored.

# By default streamlink will attempt to locate VLC on your system
# and use that, but you can also specify the location of a player
# yourself.

# Important: You must use a quoted path if there are spaces in the path. This
# is because the player command is parsed like a shell command to allow
# parameters to be passed to the player.

# Here is a few examples of players:

# VLC
#player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
#player="C:\Program Files\VideoLAN\VLC\vlc.exe"
# Using --file-caching is recommended, but is only supported in VLC 2.0+
#player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --file-caching=5000
#player="C:\Program Files\VideoLAN\VLC\vlc.exe" --file-caching=5000

# MPC-HC, must be at least version 1.7 to be used
#player="C:\Program Files (x86)\MPC-HC\mpc-hc.exe"

# MPlayer2
#player=C:\mplayer2\mplayer2.exe -cache 4096


# Use this if you want to transport the stream to the player via a named pipe.
#player-fifo

# Use this if you want to transport the stream to the player via HTTP.
#player-http

# Use this if you want streamlink to only pass a URL to your player and
# let it handle the transport of the stream itself.
#player-passthrough=http,hls,rtmp

# By default streamlink will close the player when stream is over.
# Use this option to let the player stay or close itself instead.
#player-no-close

# Use this option if you want streamlink to keep trying to access
# the stream even if it goes offline or disconnects. Your player must
# support HTTP and its playlist should be set to repeat mode.
#player-continuous-http

# Show console output from the video player
#verbose-player

# RTMP streams are downloaded using rtmpdump. Full path or relative path
# to the rtmpdump exe should be specified here.
#rtmpdump=C:\Program Files (x86)\Streamlink\rtmpdump\rtmpdump.exe
rtmpdump=rtmpdump.exe

# FFMPEG is used to mux separate video and audio streams in to a single
# stream so that they can be played. The full or relative path to ffmpeg
# or avconv should be specified here.
#ffmpeg-ffmpeg=C:\Program Files (x86)\Streamlink\ffmpeg\ffmpeg.exe
ffmpeg-ffmpeg=ffmpeg.exe

# Log level, default is info
#loglevel=debug

# Number of threads to use when streaming HLS streams
#hls-segment-threads=1

# Number of threads to use when streaming HDS streams
#hds-segment-threads=1


j_cool 04-08-2017 04:40 PM

Re: streamlink: an up to date fork of livestreamer


 
amigo runs XP.

After reading windows installation guide, I am a little confused.

Follow this link, read it, and maybe then you can elaborate in a way
we can understand something without getting confused.

https://streamlink.github.io/install.html


Windows binaries

Important

Windows XP is not supported. Windows Vista requires at least SP2 to be installed.

You can download the latest stable Windows installer from the GitHub Releases Page.

Alternatively, you can download the latest nightly Windows installer.

This is a installer which contains:

A compiled version of Streamlink that does not require an existing Python installation
RTMPDump for viewing RTMP streams
ffmpeg for muxing streams

and performs the following tasks:

Adds Streamlink to your $PATH (making it possible to use streamlink directly from the command prompt without specifying its directory)

To build the installer, you need to have NSIS and pynsist installed on your system.

j_cool 04-08-2017 04:53 PM

Re: streamlink: an up to date fork of livestreamer


 
@amigo,

are you running this one ?


Windows portable version

Instructions:

Download https://github.com/streamlink/stream...ive/master.zip
Extract the “Streamlink for Windows (Compiled)” folder from the ZIP file
Check README.txt file for requirements and run “Streamlink for Windows.exe”

Damianonymous 04-09-2017 12:59 AM

Re: streamlink: an up to date fork of livestreamer


 
@Johnny but what are you looking for? Amigo wrote that his Streamlink works. He just searched for streamlinkrc, which the standard Windows installer creates here %APPDATA%\streamlink\ In the portable version, you do not need to search for streamlinkrc, it is located in the program folder.

j_cool 04-09-2017 03:20 AM

Re: streamlink: an up to date fork of livestreamer


 
I wonder how his streamlink works at all.

Windows XP is not supported

Damianonymous 04-09-2017 11:33 AM

Re: streamlink: an up to date fork of livestreamer


 
Maybe just the standard version, apparently used the installation by pip install streamlink.

ami_go 04-09-2017 05:41 PM

Re: streamlink: an up to date fork of livestreamer


 
Hi all , ( thanks for your helps ) ,

Sorry for my late answer !
===
NB : Downloaded "https://www.videohelp.com/download/streamlink-portable-master.zip" ( 2017-02-03 ) . NOT necessary !!!

Installed under Python v2.712 , with this command :
"x:\python_2712\Scripts\pip.exe" install -U streamlink"
---
During Installation :
x:\python_2712\lib\site-packages\streamlink-0.5.0-py2.7.egg
===
Done a batch file ( working ) ; Ex: "...\streamlink.exe" "httpstream://..." best

@j_cool : following what you said ,
====
created a folder ...\AppData\Roaming\streamlink
---
created "streamlinkrc" from a file found on the web , modified with my settings .
====

I don't know how "streamlinkrc" is used by "streamlink.exe" (?) .

Cheers .

j_cool 04-10-2017 01:03 AM

Re: streamlink: an up to date fork of livestreamer


 
There is no need for you to create \AppData\Roaming\streamlink. This is specific to windows 7.

If you type on your command line: set, look what commes as APPDATA, this is XP's equivalent to
windows 7's \AppData\Roaming\streamlink,

C:\Documents and Settings\{username}\Application Data.

https://en.wikipedia.org/wiki/Environment_variable

Streamlink will create for you location where it will place its configuration file.

Find where is your configuration file as in post #54.

If you look at default streamlinkrc file you will see that all lines are commented.

Streamlink can do without using configuration file if it can find VLC on your system.

If you want streamlink to use other player than VLC you can specify in stramlinkrc what other player you want
instead of specifying for every single usage on command line or batch file what other player than VLC you prefer.

Read streamlinkrc from beggining to the end and it will say something about what it is about.

FFmpeg and rtmpdump are optional, if streamlink doesn't install or installs them, I don't know
how it handles various situations it encounters.

You know if you want FFmpeg and rtmpdump or not, so specify in streamlinkrc where they are on your system,
if they are not on the %PATH%.

Type on command line: path, if you don't see your vlc, rtmpdump and ffmpeg there you MUST
specify in stramlinkrc where they are or streamlink won't find them.


C:\>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\Sys tem32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;
C:\P\STREAMLINK\bin;C:\AP;C:\AP\CURL;C:\AP\7Z;C:\A P\FF;C:\AP\RDUMP;C:\P\M;C:\P\VLC

ami_go 04-10-2017 04:53 AM

Re: streamlink: an up to date fork of livestreamer


 
Hi ,

@j_cool : Thanks for yours instructions .
I'll try .

Cheers .


All times are GMT -6. The time now is 08:51 AM.