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-06-2017 12:54 AM

Re: streamlink: an up to date fork of livestreamer


 
Quote:

Originally Posted by Damianonymous (Post 90777)
I did not use Streamlink with ffmpeg.exe, only a version built into Python

How did you do that? To me sounds like something impossible.

Damianonymous 04-06-2017 01:19 AM

Re: streamlink: an up to date fork of livestreamer


 
You are laughing at me? :D I know that without knowing the language I could write something wrong. I mean, I do not install the program, I only use Python pip install -U streamlink :)

j_cool 04-06-2017 02:08 AM

Re: streamlink: an up to date fork of livestreamer


 
pip install -U streamlink

streamlink

Where did you get this from ( link )?

Not any file extension? ( streamlink-latest.exe, for example )

ihryjfbd 04-06-2017 02:54 AM

Re: streamlink: an up to date fork of livestreamer


 
Quote:

Originally Posted by j_cool (Post 90789)
pip install -U streamlink

streamlink

Where did you get this from ( link )?

Not any file extension? ( streamlink-latest.exe, for example )

You don't have to add the extensions if you put it in your enviroment variables, same with livestreamer.
Also allows you to issuse the command without stating which folder the program is in too.

j_cool 04-06-2017 04:57 AM

Re: streamlink: an up to date fork of livestreamer


 
This is fine about the usage after installation.

He says he ran streamlink without ffmpeg.

FFmpeg comes together with streamlink-latest.exe, if you open installation file as an archive with 7zip for example,
you will find FFmpeg inside it.

After installation, I don't find any other ffmpeg apart from one I already have in c:\ap\ff\ffmpeg.exe, and on %PATH%.

My c:\ap\ff\ffmpeg.exe is one I extracted from streamlink-latest.exe before installing streamlink
and placed in to c:\ap\ff\ ( deleted zeranoe ffmpeg, replacing it with one found inside streamlink-latest.exe ).

I tried "streamlink" ffmpeg and "zeranoe" ffmpeg on their own ( no streamlink ) and found that in one
situation "streamlink" ffmpeg does the job and "zeranoe" ffmpeg comes half the way and stops.

https://github.com/streamlink/streamlink/issues/750

I try to find out what is he actually running, "streamlink" doesn't tell me anything,
and he is shy or lazy to say a few more words.

Damianonymous 04-06-2017 05:27 AM

Re: streamlink: an up to date fork of livestreamer


 
In the environment variables, just have these Python paths -
C:\Python27\;C:\Python27\Scripts The installation is done with the command "pip install streamlink", "pip install livestreamer", etc. Updates to the new version with the command "pip install -U streamlink".

P.S. Chaturbate plugin does not work. For this moment he works with this code:

Code:

import re

from streamlink.plugin import Plugin
from streamlink.plugin.api import http, validate
from streamlink.stream import HLSStream

_url_re = re.compile(r"http(s)?://(\w+.)?chaturbate.com/[^/?&]+")
_playlist_url_re = re.compile("html \+= \"src='(?P<url>[^']+)\?")
_schema = validate.Schema(
    validate.transform(_playlist_url_re.search),
    validate.any(
        None,
        validate.all(
            validate.get("url"),
            validate.url(
                scheme="http",
                path=validate.endswith(".m3u8")
            )
        )
    )
)


class Chaturbate(Plugin):
    @classmethod
    def can_handle_url(self, url):
        return _url_re.match(url)

    def _get_streams(self):
        playlist_url = http.get(self.url, schema=_schema)
        if not playlist_url:
            return

        return HLSStream.parse_variant_playlist(self.session, playlist_url)


__plugin__ = Chaturbate

But this can change soon so keep track of the topic: https://github.com/streamlink/streamlink/issues/767

j_cool 04-06-2017 05:32 AM

Re: streamlink: an up to date fork of livestreamer


 
Can you post here link where you got your "streamlink" from ?

I want to follow the same steps and see how it works from me.

To do that, I first have to get your "streamlink".

This is about installing streamlink as first step.

Damianonymous 04-06-2017 05:38 AM

Re: streamlink: an up to date fork of livestreamer


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

j_cool 04-06-2017 05:43 AM

Re: streamlink: an up to date fork of livestreamer


 
I see,

"Source code", install python first and follow.

Optional
RTMPDump Required to play RTMP streams.
python-librtmp Required by the ustreamtv plugin to be able to use non-mobile streams.
ffmpeg Required to play streams that are made up of separate audio and video streams, eg. YouTube 1080p+

Looks like you are running linux.

Looks different with windows.

j_cool 04-06-2017 06:04 AM

Re: streamlink: an up to date fork of livestreamer


 
I just had a look in windows installation and there is an option
"bundled tools".

I scripted my installation ages ago and forgot it is optional to install
rtmpdump and ffmpeg.

I choose not to instal ffmpeg and rtmpdump because I have them
pre installed.

I highly recommend to install streamlink's ffmpeg and not to install streamlink's rtmpdump,
and use KSV's rtmpdump instead.

It is possible to use KSV rtmpdump with streamlink, you just have to update the path to rtmpdump in your streamlinkrc file.

j_cool 04-06-2017 06:27 AM

Re: streamlink: an up to date fork of livestreamer


 
And no,

I won't follow how chaturbate plugin goes.

KSV's Rtmpdump works for me when I need peep-show ( for now ).

ami_go 04-07-2017 05:36 PM

Re: streamlink: an up to date fork of livestreamer


 
Hi all ,
---
My state : XP sp3 , Streamlink installed & working .
---

@j_cool , you said :
> you just have to update the path to rtmpdump in your streamlinkrc file

I don't find such file in my computer ; can you give me some help ?

Cheers .

Damianonymous 04-07-2017 08:25 PM

Re: streamlink: an up to date fork of livestreamer


 
%APPDATA%\streamlink\streamlinkrc

j_cool 04-08-2017 02:54 AM

Re: streamlink: an up to date fork of livestreamer


 
Quote:

Originally Posted by ami_go (Post 90804)
I don't find such file in my computer ; can you give me some help ?


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:\>dir streamlinkrc /s
Volume in drive C is 750
Volume Serial Number is 7E19-B8CD

Directory of C:\AP\APS\STREAMLINK

06/04/2017 15:40 115 streamlinkrc
1 File(s) 115 bytes

Directory of C:\Users\J\AppData\Roaming\streamlink

06/04/2017 15:40 115 streamlinkrc
1 File(s) 115 bytes

Total Files Listed:
2 File(s) 230 bytes
0 Dir(s) 368,365,912,064 bytes free

C:\>





To see what/where %APPDATA% is type on command prompt: SET



C:\>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\J\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=PC
ComSpec=C:\Windows\system32\cmd.exe
configsetroot=C:\Windows\ConfigSetRoot
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\J
LOCALAPPDATA=C:\Users\J\AppData\Local
LOGONSERVER=\\PC
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
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:\AP\FF;C:\AP\RDUMP;C:\P\M;C:\P\VLC
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WS F;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=9e09
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell \v1.0\Modules\;C:\Program Files\Intel\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\J\AppData\Local\Temp
TMP=C:\Users\J\AppData\Local\Temp
USERDOMAIN=PC
USERNAME=J
USERPROFILE=C:\Users\J
windir=C:\Windows

C:\>

j_cool 04-08-2017 03:08 AM

Re: streamlink: an up to date fork of livestreamer


 
This is how my streamlinkrc file looks like, if it helps.


player=C:\P\VLC\vlc.exe --file-caching=5000
rtmpdump=c:\ap\rdump\rtmpdump.exe
ffmpeg-ffmpeg=c:\ap\ff\ffmpeg.exe

ami_go 04-08-2017 04:41 AM

Re: streamlink: an up to date fork of livestreamer


 
Hi all ,

@j_cool : many thanks for your replies .
I'll investigate .

Cheers .

tvgplayer 04-08-2017 10:48 AM

Re: streamlink: an up to date fork of livestreamer


 
@ami go,

You are just setting the defaults for streamlink in the streamlinkrc file. Inserting this changes my default player to PotPlayer:

player=C:\Program Files\DAUM\PotPlayer\PotPlayerMini64.exe

Maybe that helps.

confused.com 04-08-2017 11:40 AM

Re: streamlink: an up to date fork of livestreamer


 
player="C:\Program Files\DAUM\PotPlayer\PotPlayerMini64.exe"

# 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.

tvgplayer 04-08-2017 12:39 PM

Re: streamlink: an up to date fork of livestreamer


 
@confused.com,

Thanks for mentioning that.

player=C:\Program Files\DAUM\PotPlayer\PotPlayerMini64.exe

This is working for me even with a space in the path.

confused.com 04-08-2017 12:58 PM

Re: streamlink: an up to date fork of livestreamer


 
streamlinkrc

# 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

# Lines starting with a # is considered comments and are ignored.

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 .

j_cool 05-11-2017 02:10 PM

Re: streamlink: an up to date fork of livestreamer


 
Here are the latest changes on streamlink's pages on github:

https://streamlink.github.io/


streamlink has released version 0.6 ( stable )

https://github.com/streamlink/stream...ases/tag/0.6.0


Release notes are now available to read about changes to nighly releases ( for testing purposes ),

https://bintray.com/streamlink/strea...tly/streamlink

https://bintray.com/streamlink/strea...amlink#release


and nightly binaries are labeled in explanatory way:

https://dl.bintray.com/streamlink/streamlink-nightly/

streamlink-0.5.0-20170505.exe
streamlink-0.5.0-20170506.exe
streamlink-0.5.0-20170507.exe
streamlink-0.5.0-20170508.exe
streamlink-0.5.0-20170509.exe
streamlink-0.5.0-20170510.exe
streamlink-0.6.0-20170511.exe
streamlink-latest.exe

Damianonymous 07-02-2017 10:53 AM

Re: streamlink: an up to date fork of livestreamer


 
Latest release: 0.7.0

https://github.com/streamlink/stream...ases/tag/0.7.0

j_cool 07-29-2017 12:48 AM

Re: streamlink: an up to date fork of livestreamer


 
Here is one interesting link:

https://github.com/streamlink/streamlink/issues/1111

Some on streamlink forum are like ostrich burying their heads in the sand unwilling to recognize existence and importance of rtmp protocol.

XP is dead, and they are still working on it.

They are working on XP because there are always those few..

Well, dear streamlink fellows, there will be those few.. using rtmp rotocol lasting far longer than users using XP.

Numbers on this forum speak.

"rtmpdump" and "adult streaming videos" forums = rtmp protocol.

Take it away, and stream-recorder forum is 50% smaller.

ImLive was booted from their rtmp host and now they are on a new rtmp host and running 2 rtmp streams in parallel in addition to 1 hls stream per model.

On Russian TV ( RT ), they use hls protocol like any other news website but guess what:

When Puting speaks there is one extra rtmp stream in real-life time running parallel with hls:

rtmp://fml.3443.edgecastcdn.net/203443/en-stream

Rtmp is back on Press TV, congratulations.

rtmp://178.32.255.199:1935/live/ptven

Each and every cam site runs on rtmp protocol probably because it is best suited for cam-to-cam.

I cannot update rtmpdump, but at least I can see it's importance using common sense.

Streamlink is fantastic project for other things and I keep this thread on top.


Cheers,


Johnny.

j_cool 07-29-2017 01:01 AM

Re: streamlink: an up to date fork of livestreamer


 
For those saying:

what the shit...

at least you can watch Putin and Press Tv from my last post.

And ImLive, if you know how..

wizard 07-29-2017 05:24 AM

Re: streamlink: an up to date fork of livestreamer


 
Quote:

Originally Posted by j_cool (Post 93113)

And ImLive, if you know how..

And some others too...

Damianonymous 07-31-2017 03:47 AM

Re: streamlink: an up to date fork of livestreamer


 


Does someone use Streamlink regularly to record Chaturbate? Does Streamlink work so badly, poor quality, freezing, etc. Or is it a problem with this script?

Code:

@echo off
setlocal enableDelayedExpansion

set USERNAME=AnonymousUser
set PASSWORD=anonymous
set CB_VERSION=9

set SECONDS=30

set /p model=Enter username:
set model=%model:https://chaturbate.com/=%
set model=%model:/=%

set OUT_DIR=captures

if not exist %OUT_DIR% (mkdir %OUT_DIR%)

for /L %%i in (1,1,99) do (
  set N=!time:~9,12!
  set /a N=10000!N! %% 10000
  set rand=!random!
  set /a rand=!rand!* 31/32768+1
  set /a rand=!N!+!rand!
  set /a rand=!rand!*31/131+1
)
set server=edge%rand%

:doCapture
for /r %%F in (*) do if %%~zF==0 @del "%%F"
set ts=%date:/=-%_%time::=-%
set ts=%ts: =%
set output=%OUT_DIR%\%model%_%ts%.ts
set PASSWORD=%PASSWORD:\u003D==%

color 2F && title %model% @ %time% - %server%
cls && echo Capturing: %model% @ %time% - %server% && echo.

streamlink "https://chaturbate.com/%model%/" best --http-header "swfUrl=https://chaturbate.com/static/flash/CBV_2p670.swf" --http-header "flashVer=WIN 26.0.0.137" -o "%OUT_DIR%\%model%_%ts%.ts"


for %%r in (%output%) do (
  if %%~zr lss 1 del %output%
  color 4F && title %model% - OFFLINE
)

set /a rand=%random%*31/32768+1
set server=edge%rand%

timeout %SECONDS%
goto doCapture


troller12 07-31-2017 05:23 AM

Re: streamlink: an up to date fork of livestreamer


 
Hi,

the script isn't the problem and the freezing issue / dropped frames you also have if you just watch the streams in browser for many cams and same gets recorded too.So if you don't want to record with SL from the playlist in that TS format then change the script (or write new) to record in Flash format with rtmpdump.So I do prefer flash format where you have less problems with your records for playing,seeking & editing instead of TS.

greetz

Damianonymous 08-01-2017 01:56 AM

Re: streamlink: an up to date fork of livestreamer


 
I just wanted to know if this problem exists at all, is it just my computer's configuration problem (Python, excluded services etc). Quick editing of flv without re-encoding (cut / join) is possible only with ffmpeg (at least I do not know which programs support it) and it's time consuming even with GUI. TS accurately cut a lot of programs, even those free.

troller12 08-01-2017 11:44 AM

Re: streamlink: an up to date fork of livestreamer


 
Hi,

the problem isn't your computer config.
About FLV format.I for myself use VirtualDub with diffrent import plugins like FLV Handler (for flash format),FFMpeg plugin (for diffrent formats also flash files and TS etc).Optional you can also use AviSynth & scripts.Just check this out if you want.Maybe its something for you too also if you have to download the stuff manually first.

greetz

j_cool 08-02-2017 02:36 PM

Re: streamlink: an up to date fork of livestreamer


 
Here is one solution to Stramlink's file formats problem but at a price.


Using ffmpeg to get flv format returns a file with audio an video in sync, but during ffmeg converting CPU usage spikes in short moments to 30% !

This spikes don't appear while ffmpeg is just copying but resulting file is next to unplayable.


Here is one example for example's sake only, my script is involved:

youtube-dl.exe --get-url -f 94 --no-check-certificate https://www.youtube.com/watch?v=y60wDzZt8yg | clip
for /f %%a in ('clb.exe') do set url=%%a
ffmpeg -user-agent Mozilla/5.0 -i %url% -c:v h264 -c:a aac c:\SKY_%d%.flv

I get youtube url sent to clipboard and from there url passed to ffmpeg.

This returns perfect file but at a price of 30% CPU usage in spikes every few seconds or so.

This matters to me because my PC is 100% passively cooled without any rotating parts inside and increasing CPU usage rises the temperature.


here is one example of bad file resulting no matter how I name filename extension, mkv, mp4, flv, etc.:


streamlink.exe https://www.youtube.com/watch?v=y60wDzZt8yg 480p -o c:\SKY_%d%.mkv


Does anyone know if there is any default file extension for youtube live videos or streamlink's output to that type of stream?

How to figure out what file extension would be the most suitable to streamlink to return decent file in case of youtube live videos?

This would benefit us in a way that streamlink or ffmpeg would just copy and save the stream without much processing in the background.


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