otsaloma / gaupol

Editor for text-based subtitle files
https://otsaloma.io/gaupol/
GNU General Public License v3.0
251 stars 34 forks source link

Video freezes when you moving the position slider #196

Closed thereticle closed 2 years ago

thereticle commented 2 years ago

When you move the cursor to find a certain forward position, the video freezes. Sometimes the situation is solved by reloading the video, but in general you need to close the application and start again. The problem occurs with both MPlayer and VLC. O.S. Ubuntu 22.04 Gaupol v. 1.10.1

otsaloma commented 2 years ago

Thanks for reporting the issue.

To clarify, by "cursor" do you mean the position slider in the integrated video player (picture below)?

Screenshot from 2022-06-26 22-38-17

MPlayer and VLC are only for the "preview" functionality ("Preview" from the "Tools" menu). Those just launch the video player and the players don't interact with Gaupol in any way. The integrated video player uses GStreamer.

thereticle commented 2 years ago

Yes, I mean the slider. When I move the slider , the app freeze and no further interaction is possibile until I restart it. Maybe the issue is related to GStreamer.

otsaloma commented 2 years ago

Thanks. I've never seen this kind of a problem before and I couldn't reproduce it as I tried. There two likely possibilities

  1. It's related to the particular file or file format. If only a single file causes problems, it could be in some way broken and thus seeking not working properly. Or if it's a single file format (or video encoder) causing problems, it could be related to how GStreamer handles that. The only thing that comes to mind is that you could check that you have the following packages all installed. If you installed Gaupol via the package manager, you should have them though.
gstreamer1.0-libav
gstreamer1.0-plugins-bad
gstreamer1.0-plugins-good
gstreamer1.0-plugins-ugly
  1. There could be some kind of a problem in how Gaupol handles the playback state, maybe something like one action (looping playback, seeking, etc.) started before the previous has finished. If there's some particular sequence of actions by which you can reliably reproduce the problem, then let me know.
thereticle commented 2 years ago

Well, I just don't know what to say ...

The gstreamer libraries you indicated I had all already installed. I noticed that I didn't have the gstreamer1.0-plugins-bad-apps library and thought maybe installing it would fix the issue. I installed it and then I ran several tests with different video files and everything worked perfectly, even with the original video file with which I had the issue. At that point I tried uninstalling the gstreamer1.0-plugins-bad-apps library to see if that was the solution, but everything continued to work.

Then you can close the thread. Thank you very much for the support.

thereticle commented 2 years ago

Oh Oh... The problem has come back and it seems to happen when I have a browser open. I normally use Firefox, but I've also tried with Chrome. With both of them, after a while they are open, Gaupol freezes. Closing Gaupol and the browsers and reopening only Gaupol, everything works. So there must be some interaction between these software. I really don't know what kind of interaction... I reported it just for your info. Thanks again

otsaloma commented 2 years ago

There shouldn't be any interaction with a browser, but it's of course that possible you hit some system limits, like CPU or memory. Another possiblity is if the browser is using audio or video you could have some problem in your system that prevents simultaneous audio or video output from multiple sources.

thereticle commented 2 years ago

Probably so. I will try to adapt by avoiding using the two software together. 🙂 I think I can close the issue.