chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 581 forks source link

FilmOn doest’n work #514

Closed Ordval closed 10 years ago

Ordval commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

…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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

Thanks

On 8/30/14, Christopher Rosell notifications@github.com 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: https://github.com/chrippa/livestreamer/issues/514#issuecomment-53956505

Ordval commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 9 years ago

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 commented 7 years ago

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