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

Can somebody help get filmon rtmp code to play with livestreamer?

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

ihryjfbd 02-09-2017 11:16 AM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Quote:

Originally Posted by lajvguy (Post 89669)
Beardypig is a very sharp guy. Using HRTV high with the nightly.

Where can we get nightly builds?

j_cool 02-09-2017 01:32 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
https://streamlink.github.io/#

GitHub: https://github.com/streamlink/streamlink

Installers for Windows/Mac/Linux:

Windows ( link )

https://streamlink.github.io/install...ndows-binaries

You can download the latest nightly Windows installer here. ( this link )

https://streamlink-builds.s3.amazona...ink-latest.exe

Yesterday's was: 0.3.1.807

Today's is: 0.3.1.814

Vaganza 02-09-2017 05:33 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Quote:

Originally Posted by ihryjfbd (Post 89702)
Where can we get nightly builds?

Should this also concern the use of -ldebug your not dependent on the Nightly Builds,
the only thing for any reinstall is to uninstall first according to beardypig:
“...if you want the latest filmon fixes” (0.3.1), but obviously also for any coming (future) fixes.
Don't remember if that ever was the case with Livestreamer.

As j_cool has linked to Github I'm assuming it's okay:
"...updated plugin to match changes..."

By the way, my question about if this ever was available in Livestreamer
and his suggestion “--loglevel” isn't working for me so this must be totally new.
That's why I think it should be included in some documentation.

However, he/ (they) has made it possible to just download
the Nightly Builds, extract it and then replace or put in any new fixes.
My directory: C:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins.

ihryjfbd 02-09-2017 05:48 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Quote:

Originally Posted by j_cool (Post 89703)
https://streamlink.github.io/#

GitHub: https://github.com/streamlink/streamlink

Installers for Windows/Mac/Linux:

Windows ( link )

https://streamlink.github.io/install...ndows-binaries

You can download the latest nightly Windows installer here. ( this link )

https://streamlink-builds.s3.amazona...ink-latest.exe

Yesterday's was: 0.3.1.807

Today's is: 0.3.1.814

Thanks :cool:

I don't suppose there is anyway to make it support player pausing for tea breaks? like a temporary created cache record file if it detects the player has been paused, i'm using MPC-BE x64 and it loses the stream if paused it'll play for like 3-5mins after the paused time then go off, maybe via ffplay.

j_cool 02-09-2017 06:14 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
This one works fine:

set url=http://www.filmon.com/channel/bbc-news
start /min streamlink --http-header "User-Agent=Mozilla/5.0" --player "ffplay.exe -vf scale=854:480" %url% worst


This one not so fine:

set url=http://www.filmon.com/channel/bbc-news
start /min streamlink --http-header "User-Agent=Mozilla/5.0" --player "ffplay.exe" %url% best


You can dump the stream on disk, wait for some stream to get saved on disk, and play the stream from disk with any player.
Mplayer, FFplay ...

This way there are no tea breaks, but one second more or less between chunks.

Python guys know how to sort it out or somebody like rtmpdump team.
Look at Vaughnlive.py, one example of excellence of stramlink/livestreamer team.

j_cool 02-11-2017 08:20 AM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Ihry,

This reading may answer your last post:

streamlink -h

--player-no-close
By default Streamlink will close the player when the stream ends.
This is to avoid "dead" GUI players lingering after a stream ends.

It does however have the side-effect of sometimes closing a player
before it has played back all of its cached data.

This option will instead let the player decide when to exit.


--player-continuous-http
Make the player read the stream through HTTP, but unlike
--player-http it will continuously try to open the stream if the
player requests it.

ihryjfbd 02-12-2017 08:15 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
hmmm getting file not found in MPC-BE x64.

Code:

streamlink -ldebug http://www.filmon.com/channel/cbs-action best --player-continuous-http
[cli][info] Found matching plugin filmon for URL http://www.filmon.com/channel/cbs-action
[cli][info] Available streams: low (worst), high (best)
[cli][info] Starting player: "C:\Program Files\MPC-BE x64\mpc-be64.exe"
[cli][info] Got HTTP request from MPC-BE
[cli][info] Opening stream: high (hls-filmon)
[stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: cbs-action
[stream.hls][debug] Adding segment 704317 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 704318 to queue
[stream.hls][debug] Adding segment 704319 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 704320 to queue
[stream.hls][debug] Download of segment 704317 complete
[cli][debug] Writing stream to player
[cli][info] HTTP connection closed
[stream.hls][debug] Closing worker thread
[stream.hls][debug] Closing writer thread
[cli][info] Stream ended
[cli][info] Got HTTP request from MPC-BE
[cli][info] Opening stream: high (hls-filmon)
[stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: cbs-action
[stream.hls][debug] Adding segment 704320 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 704321 to queue
[stream.hls][debug] Adding segment 704322 to queue


j_cool 02-13-2017 02:30 AM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
I have not tried mpc-be yet.

Here are streamlink players, and what they do and don't do.
Scroll the page to see Known issues and workarounds, MPC-HC reports “File not found”.

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

Note the absence of ffplay, to people this is no player at all, and can do it all.

This works perfectly fine:

start /min streamlink --player "ffplay.exe" http://www.filmon.com/channel/cbs-action best

ihryjfbd 02-13-2017 03:55 AM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Quote:

Originally Posted by j_cool (Post 89731)
I have not tried mpc-be yet.

Here are streamlink players, and what they do and don't do.
Scroll the page to see Known issues and workarounds, MPC-HC reports “File not found”.

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

Note the absence of ffplay, to people this is no player at all, and can do it all.

This works perfectly fine:

start /min streamlink --player "ffplay.exe" http://www.filmon.com/channel/cbs-action best

Ok thanks I'll try with VLC, ffplay and MPC-HC.
I was running v1.4.6 (build 1478) beta of MPC-BE.

ihryjfbd 02-14-2017 02:00 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Ok MPC-HC is playing back fine :)

Recording though is intermittent though it looses the stream 1-2mins in and sometimes repeats the same section in the recording, I guess it has do with it timing out and reloading the playlist instead of just adding / playing the next segment.

Also without adding the following I kept getting 403 client forbidden errors.

Code:

--http-header "Referer=http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf" --http-header "Accept-Encoding=gzip, deflate" --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
Code:

Streamlink is now Recording... channel-4
[cli][info] Found matching plugin filmon for URL https://www.filmon.com/tv/channel-4
[cli][info] Available streams: low (worst), high (best)
[cli][info] Opening stream: high (hls-filmon)
[stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: channel-4
[stream.hls][debug] Adding segment 980191 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 980192 to queue
[stream.hls][debug] Adding segment 980193 to queue
[cli][debug] Checking file output
[stream.hls][debug] Download of segment 980191 complete
[cli][debug] Writing stream to output
[download][..7_20-42-03_channel-4.ts] Written 1.9 MB (2s @ 801.9 KB/s)[stream.hls][debug] Download of segment 980192 complete
                                                                              [stream.hls][debug] Download of segment 980193 complete
[download][..7_20-42-03_channel-4.ts] Written 3.4 MB (4s @ 794.2 KB/s)                                                                              [
stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 980194 to queue
[stream.hls][debug] Download of segment 980194 complete
[download][..7_20-42-03_channel-4.ts] Written 4.8 MB (12s @ 397.6 KB/s)                                                                              [
stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 980195 to queue
[stream.hls][debug] Download of segment 980195 complete
[download][..7_20-42-03_channel-4.ts] Written 6.8 MB (21s @ 323.4 KB/s)                                                                              [
stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 980196 to queue
[stream.hls][debug] Download of segment 980196 complete
[download][..7_20-42-03_channel-4.ts] Written 7.5 MB (33s @ 230.0 KB/s)                                                                              [
stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: channel-4
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: channel-4
[cli][error] Error when reading from stream: Read timeout
[stream.hls][debug] Closing worker thread
[stream.hls][debug] Closing writer thread
[stream.hls][debug] Closing writer thread
[cli][info] Stream ended



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