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

Stream of movie doesn't stop #157

Open
CodingPeak opened this issue Oct 20, 2014 · 9 comments
Open

Stream of movie doesn't stop #157

CodingPeak opened this issue Oct 20, 2014 · 9 comments

Comments

@CodingPeak
Copy link
Contributor

When starting a movie, the stream starts. When returning to the movie overview (and stop watching the movie), the stream of frames doesn't stop, resulting in a quite busy server.

image

@CodingPeak
Copy link
Contributor Author

After a while, an error occurs and the streaming stops as the server restarts.

image

@jansmolders86 jansmolders86 added bug and removed bug labels Oct 21, 2014
@jansmolders86
Copy link
Owner

This is an interesting one. From one point of view it would be good if the transcoding continues as long as the machine is idle. It will result in instantaneous playback seeing as the movie has already been transcoded. But that only applies when the server is idle. If you continue to use MCJS, it could cause slowdowns and errors.

@CodingPeak
Copy link
Contributor Author

True, but when switching to another movie, two movies are being streamed.. I don't think that's good..

@Jon889
Copy link
Collaborator

Jon889 commented Oct 21, 2014

I think perhaps it should carry on transcoding for 5 or so minutes after you've stopped watching, just incase you resume it. And then optionally (as in the user can choose an option in settings) it will carry on after 5 minutes if it's idle. However the problem I have with transcoding is that if it's permanent it will use a lot of disk space as it's basically duplicating your movie library.

@Jon889
Copy link
Collaborator

Jon889 commented Oct 21, 2014

Also it seems there's a problem with progression markers, which is actually a bug, rather than unimplemented [yet].

@jansmolders86
Copy link
Owner

@Jon889 I belive your latest changes to the transcoding methods may have fixed this issue, correct?

@Jon889
Copy link
Collaborator

Jon889 commented Nov 27, 2014

No, it only prevents starting a new transcoding if it's the same movie. If you switch to another movie then still both movies will be transcoding.

It would be good to be able to limit the resources that ffmpeg can use, currently on my machine it will transcode as fast as possible, using all the CPU power and making the fans on my laptop go to full speed, when really it only needs to be transcoding just ahead of the current playback time.

Also I have some movies that are already in mp4 format and don't need to be transcoded to be played back in the browser. So it would be good to detect this and just not transcode in this case at all.

@jansmolders86
Copy link
Owner

I agree, I want to add the MP4 detection as well.

But as far as the trancoding goes, of course you can choose the level of quality but other than that I don't know how I would go about lessening the load on the CPU.

@jansmolders86
Copy link
Owner

Hey @Jon889,

FYI: MP4 detection has been added! currently if the requested video is an MP4, it will be copied so that the browser can access it (streaming directly from harddisk isn't supported by browsers).

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

No branches or pull requests

3 participants