Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilmOn doest’n work #514

Closed
Ordval opened this issue Aug 28, 2014 · 19 comments
Closed

FilmOn doest’n work #514

Ordval opened this issue Aug 28, 2014 · 19 comments

Comments

@Ordval
Copy link

Ordval commented Aug 28, 2014

On this particular day FilmOn doest’n work.
“error: No streams found on this URL: http://www.filmon.com/tv/bbc-two”
FilmOn is up and running, also for BBC two”.

Livestreamer works otherwise as general.
I’ve already rebooted.

I’ve seen: “Filmon plugin doesn't work #377” , “invalid json respnse when opening filmon stream #372” and several others.

I’ve put in “filmon.py” (Fix Invalid Json Response) in
[C:\Program Files\VLC\Livestreamer\livestreamer-1.10.1-py2.7.egg\livestreamer\plugins]
[C:\Users\Ordval\AppData\Roaming\livestreamer] and desperately wherever I could.

Previous message was “error: Unable to validate JSON: Unable to validate key 'streams':
Unable to validate key 'url': Unable to validate URL attribute 'scheme':
u'http' does not equal 'rtmp' “

I’m opening a new issue rather than writing on any of the old; which is preferable ?
Same question goes for my request for a plugin for [http://www.pluzz.fr/] put on
“Request for new plugins #328”. Should I rather open a new ?

@chrippa
Copy link
Owner

chrippa commented Aug 28, 2014

I’m opening a new issue rather than writing on any of the old; which is preferable ?
Same question goes for my request for a plugin for [http://www.pluzz.fr/] put on
“Request for new plugins #328”. Should I rather open a new ?

Yes, opening a new issue for each new bug report/feature request is the way to go.

@Ordval
Copy link
Author

Ordval commented Aug 29, 2014

…and on this particular day (29/8) France 2 +5 opens but (hardly?) nothing else,...go figure,
because trying to open streams through this plug-in then rejected, open if sniffed by other
scripts with temporary MRL’s in the usual rtmp, rtsp, m3u8 links.

@chrippa
Copy link
Owner

chrippa commented Aug 29, 2014

Every channel I've tried works fine here, can you name a specific channel you're having issues with and what error you're getting?

@Ordval
Copy link
Author

Ordval commented Aug 30, 2014

livestreamer.exe http://www.filmon.com/tv/dave low
livestreamer.exe http://www.filmon.com/tv/bbc-two low
livestreamer.exe http://www.filmon.com/tv/cbeebiesbbc-four low etc.

error: The specified stream(s) 'low' could not be found. Available streams: 320p (worst), 480p (best)

A few days back I installed “Internet Download Manager” uninstalled it but somehow it
managed to install itself at another place. It seems to be working, only, haven’t figured
out how to grab MRL’s with it yet.

As it is a Download Manager, any idea on how the F.O. plug-in might go in conflict ?

@chrippa
Copy link
Owner

chrippa commented Aug 30, 2014

error: The specified stream(s) 'low' could not be found. Available streams: 320p (worst), 480p (best)

As this error message says, you're trying to use a stream that does not exist. The commit that closed this issue changed the stream names to use the pixel height instead since that information is available for the HLS streams.

Though since then, there was another commit that added support for both HLS and RTMP streams and also changed the names back to "high" and "low" to be consistent between the stream types. So either download the latest build or use the correct stream name.

@stevma
Copy link

stevma commented Aug 30, 2014

Not sure if this is where to put this but I am getting the same as the top post.

livestreamer http://www.filmon.com/tv/channel-4 low
[cli][info] Found matching plugin filmon for URL http://www.filmon.com/tv/channel-4
error: Unable to validate JSON: Unable to validate key 'streams': Unable to validate key 'url': Unable to validate URL attribute 'scheme': u'http' does not equal 'rtmp'

This is the same for any UK tv channel Filmon stream.
I have 1.10.1 installed, on this cmptr, and a reinstalled 1.10.1 on my raspberry pi, but get the same message

@chrippa
Copy link
Owner

chrippa commented Aug 30, 2014

I have 1.10.1 installed, on this cmptr, and a reinstalled 1.10.1 on my raspberry pi, but get the same message

This was very recently fixed and has not been put into a release yet. Install the latest development version if you want to use it right now.

@stevma
Copy link

stevma commented Aug 30, 2014

Thanks

On 8/30/14, Christopher Rosell [email protected] wrote:

I have 1.10.1 installed, on this cmptr, and a reinstalled 1.10.1 on my
raspberry pi, but get the same message

This was very recently fixed and has not been put into a release yet.
Install the latest development
version
if you want
to use it right now.


Reply to this email directly or view it on GitHub:
#514 (comment)

@Ordval
Copy link
Author

Ordval commented Aug 30, 2014

stevma or chrippa,

I reinstalled the latest Livestreamer, unzipped the Nightly build to the Livestreamer folder,
copied the filmon.py to [C:\Users\Ordval\AppData\Roaming\livestreamer] and
[C:\Users\Ordval\AppData\Roaming\livestreamer\plugins].

Anything else ? Something’s still missing.

@chrippa
Copy link
Owner

chrippa commented Aug 30, 2014

You can't sideload the latest plugin since it depends on changes to the Livestreamer core. When extracting a nightly build into the existing install make sure you first go into the directory inside the zip and copy those files there without the parent directory, e.g. there should not be a "livestreamer-v1.10.1-16-gd322d0a" in the Livestreamer directory.

@Ordval
Copy link
Author

Ordval commented Aug 30, 2014

I reinstalled again as nothing worked.

I had lifted over the content from [livestreamer-v1.10.1-20-gf4053ec] to the folder
which must be the same as copying them, still didn’t work.
This is above my level of competence.

@Ordval
Copy link
Author

Ordval commented Sep 8, 2014

V. 1.10.2.
So, now sometimes you need to add an s to the pattern:
[livestreamer.exe https://www.filmon.com/tv/dave worst]
sometimes not, but still e.g. “Yesterday” won’t open:
[livestreamer.exe https://www.filmon.com/tv/yesterday low]
although it works on the homepage. Seems depend on how burdened/
charged the channel is, but never used to react like this before.
chrippa writes: "So either download the latest build or use the correct stream name."

What would be the correct name for the “Yesterday” stream ?
By “pixel height” do mean like 480p ? But that is the one that won’t last for more than 5 min.

@chrippa
Copy link
Owner

chrippa commented Sep 9, 2014

Both those streams work fine for me with or without the "s". Please copy+paste the actual error you're getting or it's impossible to help.

What would be the correct name for the “Yesterday” stream ?
By “pixel height” do mean like 480p ? But that is the one that won’t last for more than 5 min.

The pixel height thing is irrelevant now, I changed it back to the "low" and "high" names.

@Ordval
Copy link
Author

Ordval commented Sep 9, 2014

Is this what you mean ? Basically the same message as the previous.

C:\Users\Ordval >livestreamer.exe https://www.filmon.com/tv/yesterday low
[cli][info] Found matching plugin filmon for URL https://www.filmon.com/tv/yeste
rday error: The specified stream(s) 'low' could not be found.
Available streams: 360p (worst), 480p (best)

Is the solution “”worst” ? Now it opened. I have to continue trying.

With sandy187’s “F-On Playlist Maker” I can extract .m3u8 amongst other extensions
and they always work but are of course temporary.
The fact that it always works for you from my point is strange.

This works for about 5 min.:
C:\Users\Ordval>livestreamer.exe https://www.filmon.com/tv/yesterday best
[cli][info] Found matching plugin filmon for URL https://www.filmon.com/tv/yeste
rday
[cli][info] Available streams: 360p (worst), 480p (best)
[cli][info] Opening stream: 480p (hls)
[cli][info] Starting player: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --fil
e-caching=5000

By the way, thanks for all your effort and kindness !

@chrippa
Copy link
Owner

chrippa commented Sep 9, 2014

You mentioned earlier you tried to sideload the plugin, so you probably have a filmon plugin in %APPDATA%\livestreamer\plugins, that will override the version shipped with 1.10.2.

@chrippa
Copy link
Owner

chrippa commented Sep 9, 2014

About the 5 minute limit, there is nothing we can do about this since that is how the webpage works aswell, it's just a preview unless you pay.

We currently do not have a simple way to authenticate though, you might be able to copy your cookies from your browser and use them with --http-cookies but I do not have a pay account so I don't know if it will work.

@MerlinMike
Copy link

I am also having the 5 minute disconnect issue. I tried sending the cookies as you show but didn't work. I noticed that the XBMC filmon plugin does not have this issue regardless if you are using a free account. It doesn't disconnect ever, without logging in. I decided to investigate and found exactly the process they are using to keep the session alive. It is as follows:

  1. Get the url: http://www.filmon.com/api/init/
  2. Extract "session_key" from returned data.
  3. Get the url: http://www.filmon.com/api/keep-alive?session_key="session_key"
  4. Repeat this every 60 seconds.

After manually doing this and posting the session key to the keep-alive url I get the following response:
{"success" : true }

So this is indeed how the XBMC plugin is keeping the stream alive, not via cookies as it is only sending the user-agent header.

The XBMC plugin is also written in python so I guess it should be simple to copy and paste the required code to the livestreamer plugin. I don't have the knowledge of livestreamer code or python to do it though.

Oh and the code I am referring to is here:

https://github.com/XBMCFILMON/plugin.video.filmon/blob/master/default.py

Keep alive from line: 92

Also function from line: 112

Thanks and I hope someone can implement this.

@Ordval
Copy link
Author

Ordval commented Mar 6, 2015

These two
[http://www.filmon.com/tv/the-dick-van-dyke-show]
[http://www.filmon.com/tv/the-lucy-show worst]
don't open whereas the regular live stream channels do.

@adibabu
Copy link

adibabu commented Apr 6, 2017

Filmon tv is Nice site but some time some channel did not play
http://livetvlab.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants