jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.25k stars 322 forks source link

Player stops suddenly and returns to movie/series selection #522

Open Compr0mzd opened 12 months ago

Compr0mzd commented 12 months ago

Describe the bug I'm trying to watch movies or series using the media player on windows. I start watching a movie without any issues however after a few minutes the video player crashes and I go back to the movie selection

Inside my Jellyfin Media Player logs I can find at the time of the crash :

2023-11-17 12:27:17.402 [warning] unknown @ 0 - cplayer: 
2023-11-17 12:27:17.402 [warning] unknown @ 0 - cplayer: Audio/Video desynchronisation detected! Possible reasons include too slow
.....
2023-11-17 12:27:17.402 [warning] unknown @ 0 - cplayer: hardware, temporary CPU spikes, broken drivers, and broken files. Audio
2023-11-17 12:27:17.402 [warning] unknown @ 0 - cplayer: position will not match to the video (see A-V status field).
2023-11-17 12:27:17.402 [warning] unknown @ 0 - cplayer: 
2023-11-17 12:27:33.745 [critical] unknown @ 0 - ffmpeg: https: Stream ends prematurely at 226211910, should be 24713725486
2023-11-17 12:27:33.745 [debug] unknown @ 0 - mkv: EOF reached.

And inside my docker logs I can find only this info

[12:28:30] [INF] [177] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app Jellyfin Media Player 1.9.1 playing Le Loup de Wall Street. Stopped at 118952 ms

It is happening on every movie I'm watching it's independent of the quality of the movie and my movie quality is not really that high (1080p, H264). The issue is only there on the Jellyfin Media Player on Windows. On my Android app nothing is working wrong, and on the web browser there is no issues as well Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

sevenrats commented 11 months ago

this just sounds like your computer isn't fast enough to decode the video

Compr0mzd commented 11 months ago

this just sounds like your computer isn't fast enough to decode the video

GTX 1070 , 32Gb RAM , I5 12400F. I don't think it's my computer the issue

sevenrats commented 11 months ago

Possible reasons include too slow hardware, temporary CPU spikes, broken drivers, and broken files. What happens if you ffprobe /the/file.mkv

sevenrats commented 10 months ago

i also kinda wonder if a disk is running out of space. if not the disk the jmp's local storage is on then perhaps the server transcode directory.

Compr0mzd commented 10 months ago

I have quite a particular setup so It could be that. I have a Dedicated server in the cloud with Portainer,the storage is on a Storabe Box with Hetnze and mounted with CIFS

pcs03 commented 4 months ago

Can confirm this is still an issue in Jellyfin Media Player 1.11.1. I'm having this exact issue with the same log messages showing up as @Compr0mzd shows in the original post.

A bit of info about my setup:

As for the server running jellyfin:

I am experiencing the issue on both my desktop, as described above, and on my laptop. Only jellyfin media player is affected, I have not seen this issue occur using the web player. Some additional observations:

I highly doubt this issue is hardware related, as suggested by @sevenrats . Both the server and the client devices had plenty of resource overhead when this issue occurred in the past.

athuler commented 2 months ago

Having the exact same issue with the same symptoms as described by @Compr0mzd and @pcs03.

I was using the web player, but only my Windows laptop seemed affected. No issues so far with an M1 Mac.

Attaching below the logs for one of the (several) times when playback suddenly stopped and went back to movie selection.

[2024-09-02 23:00:30.462 +02:00] [INF] [24] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2024-09-02 23:00:32.181 +02:00] [INF] [24] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Web" "10.9.10" playing "Longlegs". Stopped at "6056618" ms
[2024-09-02 23:00:32.205 +02:00] [INF] [34] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Playback stop tracker found, processing stop : "TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NDsgcnY6MTI5LjApIEdlY2tvLzIwMTAwMTAxIEZpcmVmb3gvMTI5LjB8MTcyNTAzMTk3ODI4MA11-3db86d01f7de4d9d8d59ace11a560dad-e95c8368306635febd00fe9a16501499"
[2024-09-02 23:00:32.205 +02:00] [INF] [34] Jellyfin.Plugin.PlaybackReporting.Data.PlaybackTracker: PlaybackTracker : Adding Stop Event : 09/02/2024 23:00:32
[2024-09-02 23:00:32.205 +02:00] [INF] [34] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Saving playback tracking activity in DB
pcs03 commented 2 months ago

I've got an update on this from my side.

I always run Jellyfin through a Cloudflare proxy, to expose it to the internet "safely". I have recently turned this off (about 1-2 months ago), and have just run Jellyfin locally or through a VPN. This issue has since gone away for me.

Since I do use the free plan of the Cloudflare proxy, there might be some limitations in place that deny Jellyfin from functioning properly.

Can others that experience this issue confirm whether they connect to their Jellyfin instance through a Cloudflare proxy? I would be pretty interested to see if this could be the culprit.

Compr0mzd commented 2 months ago

I've got an update on this from my side.

I always run Jellyfin through a Cloudflare proxy, to expose it to the internet "safely". I have recently turned this off (about 1-2 months ago), and have just run Jellyfin locally or through a VPN. This issue has since gone away for me.

Since I do use the free plan of the Cloudflare proxy, there might be some limitations in place that deny Jellyfin from functioning properly.

Can others that experience this issue confirm whether they connect to their Jellyfin instance through a Cloudflare proxy? I would be pretty interested to see if this could be the culprit.

I changed my setup since then and it could be related to that as well. I was using Cloudflare tunnel to serve my Jellyfin server. Now I'm running everything locally and for now I have no issues with the player.