Skip to content

Conversation

@TopoIogist
Copy link

This adds support for viewing trovo streams, example:

C:\Users\Topologist>streamlink https://trovo.live/Ler_GG
[cli][info] Found matching plugin trovo for URL https://trovo.live/Ler_GG
Available streams: 360p (worst), 480p, 720p, 1080p (best)

C:\Users\Topologist>streamlink https://trovo.live/Ler_GG best
[cli][info] Found matching plugin trovo for URL https://trovo.live/Ler_GG
[cli][info] Available streams: 360p (worst), 480p, 720p, 1080p (best)
[cli][info] Opening stream: 1080p (http)
[cli][info] Starting player: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --file-caching=5000

@codecov
Copy link

codecov bot commented Jul 16, 2020

Codecov Report

Merging #3076 into master will increase coverage by 0.02%.
The diff coverage is 78.57%.

@@            Coverage Diff             @@
##           master    #3076      +/-   ##
==========================================
+ Coverage   52.69%   52.72%   +0.02%     
==========================================
  Files         245      246       +1     
  Lines       15570    15584      +14     
==========================================
+ Hits         8205     8216      +11     
- Misses       7365     7368       +3     

@bastimeyer bastimeyer linked an issue Jul 16, 2020 that may be closed by this pull request
@bastimeyer
Copy link
Member

Look fine, thanks for the PR.

Not sure though whether we should merge this yet, because the site is apparently still in beta and providing streams as a progressive HTTPStream seems very backwards, so I expect that they will change that at some point. Also not sure how long this streaming site will last (see Mixer and basically every other Twitch clone that has shut down in the past 5 years). And while talking about clones, it looks like they went all in with cloning Twitch's website, which is quite ridiculous.

@gravyboat
Copy link
Member

gravyboat commented Jul 19, 2020

@bastimeyer Considering I just closed #3083 I would say this is a no on the merge. Anything in beta we shouldn't be supporting, same with sites constantly changing their URLs or other such nonsense. The progressive HTTPStream usage is also a joke and makes no sense. There is no way they will keep streaming like that, and if they do they're DOA any way.

Them cloning the Twitch layout doesn't factor in for me at all, it's just a sidebar nav with a carousel and a gallery in the middle. For now I'm going to close this. @TopoIogist Thanks for taking the time to write up a PR for this, please understand that by closing this I'm not shutting down the idea of adding them, but it seems like there will likely be a lot of maintenance with this plugin and we don't want to deal with that. If they make it out of beta, get decent viewership, and most importantly stop using progressive HTTPStreaming we'll be happy to merge in a PR.

Edit: If anyone wants to side load this plugin you can so using the instructions here: https://streamlink.github.io/cli.html?highlight=side%20load#sideloading-plugins

@gravyboat gravyboat closed this Jul 19, 2020
@nedsed
Copy link

nedsed commented Jul 27, 2020

@TopoIogist Thank you for this plugin. It basically works and is useful for me. I just have the problem when downloading a stream to a file that when the stream ends Streamlink is not closing the file and is not responding anymore. It appears to freeze without throwing errors. The code seems not too complex but I'm not familiar enough with the Streamlink project to know what's wrong. I would be grateful for a solution to avoid manually terminating the process each time. Thanks again.

@TopoIogist
Copy link
Author

@nedsed handling the progressive HTTPStream output is up to the program that displays the video, streamlink merely pipes everything to the process. For me, I do not observe a hang when recording via ffmpeg to a file, here are my parms:
streamlink trovo.live/abc best -O | ffmpeg -abort_on empty_output -err_detect explode -i pipe:0 -c copy -map 0 -segment_time 01:00:00 -f segment $FILE

@nedsed
Copy link

nedsed commented Jul 28, 2020

@TopoIogist I see, I had only tried to write the transport stream directly into a file using --output and without using ffmpeg. This had worked for me for Twitch in the past. The way you propose seems to work for Trovo though, in a first test Streamlink exited without hanging. Thank you for your quick help. :)

@tr0n64
Copy link

tr0n64 commented Aug 6, 2020

i get this error error: No plugin can handle URL: trovo.live/name
your plugin outdate?

@TopoIogist
Copy link
Author

@tr0n64 the developers decided against adding this plugin to streamlink for the reasons mentioned above. Therefore it is not included in the official builds.

@streamlink streamlink locked as resolved and limited conversation to collaborators Aug 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New Plugin] trovo.live

6 participants