mpvz icon indicating copy to clipboard operation
mpvz copied to clipboard

freezing video and skipping

Open omeringen opened this issue 4 years ago • 6 comments

Hi, I am browsing files(watching videos) on my android phone via KDE connect. mpv works fine but mpvz is freezing after a while(just like there is no cache) and skipping to the next video.

How can i diagnose the difference between mpv and mpvz to help ?

omeringen avatar Jul 23 '21 15:07 omeringen

Huh, didn't realize KDE Connect would stream the file without fully copying over first.

I've implemented the "Total Cache" stat in the Playback Info (Tab). I've also implemented cache range indicators in the seekbar (Issue #5).

2021-07-25___17-51-13

They might not be perfect at diagnosing the issue though since it sounds like the connection disconnects or something.

Zren avatar Jul 25 '21 21:07 Zren

They might not be perfect at diagnosing the issue though since it sounds like the connection disconnects or something.

I dont think that it's a connection issue because mpv works fine everytime i try. This happens especially on long videos. Thanks for implementations. :+1: I am going to try, might take long time to find a way to explain. :smile:

omeringen avatar Jul 26 '21 11:07 omeringen

Screenshot_20210727_110614

This happens most of the time (couldn't remember any successfully watched big file). I directly open file with mpv afterwards to finish the file from start to end, no issues.

I am not a programmer or expert but mpvz is not using any modified libmpv, so this leads me to suspect something about "mpvz only" features like thumbnail generator. Also cache info at seekbar is not accurate.

bTw thanks for developing. We needed something to replace Bomi.

omeringen avatar Jul 27 '21 08:07 omeringen

Hmm, the thumbnail generator does open up a 2nd libmpv filestream, so it makes sense. KDE Connect might only handle 1 file at a time? I'll try disabling it for "remote" streams somehow.

Zren avatar Jul 27 '21 16:07 Zren

Taking a look at bomi's code, it seems it also created a mpv instance for the thumbnail.

  • https://github.com/ashinan/bomi/blob/master/src/bomi/video/videopreview.cpp#L32
  • https://github.com/ashinan/bomi/blob/master/src/bomi/video/videopreview.hpp

Zren avatar Jul 27 '21 18:07 Zren

Hmm, the thumbnail generator does open up a 2nd libmpv filestream, so it makes sense. KDE Connect might only handle 1 file at a time? I'll try disabling it for "remote" streams somehow.

Thanks.

Taking a look at bomi's code, it seems it also created a mpv instance for the thumbnail.

* https://github.com/ashinan/bomi/blob/master/src/bomi/video/videopreview.cpp#L32

* https://github.com/ashinan/bomi/blob/master/src/bomi/video/videopreview.hpp

I haven't tested it with Bomi. Not maintained anymore and AUR package wasn't working last time i checked.

omeringen avatar Jul 28 '21 11:07 omeringen