Jellyfin Forum
Dropped frames during direct stream - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Dropped frames during direct stream (/t-dropped-frames-during-direct-stream)



Dropped frames during direct stream - Henkow - 2023-09-25

I have a bunch of remuxes that have gone through MKVToolNix to merge additional audio tracks and .PGS subtitles. These particular files seems to cause problems with Jellyfin.

See this image: https://ibb.co/y870G2C

It seems to happen when there is fast transitions which is weird as there should be no bandwidth limitations. I have a gigabit connection to my server and easily pull 100MB/s from it. The server itself sits at just a couple percent CPU usage.
When the video freezes momentarily the audio is unaffected.

If I playback the file in VLC or MPC-HC locally everything is perfectly fine. As I struggle to grasp what is causing this. I could provide a video sample if that would help.

According to the debug log there seems to be some complaints about the .PGS subtitles. Could that affect the video when none are selected?

I would greatly appreciate some help with this as I'm going mad trying to figure it out!


RE: Dropped frames during direct stream - TheDreadPirate - 2023-09-25

The PGS subtitle messages are harmless and common. Not related to this issue.

Does this issue happen with the ORIGINAL file before you ran it through MKVToolnix? I've used MKVToolnix. Since you only added tracks, it SHOULDN'T have touched the video track. But Jellyfin's web and MPV players are less tolerant of errors. VLC plays just about anything, even if it is partially corrupted or poorly encoded. MPC has some tolerance for bad files from my experience.


RE: Dropped frames during direct stream - Henkow - 2023-09-25

I unfortunately don't have the original file (not tested) prior. Is there any tool I can use to analyze my video file for errors?


RE: Dropped frames during direct stream - TheDreadPirate - 2023-09-25

Try this. You can use ffmpeg to test the file.

Code:
sudo /usr/lib/jellyfin-ffmpeg/ffmpeg -v error -i /path/to/video -f null - >error.log 2>&1

It will print any problems in error.log in the current directory.


RE: Dropped frames during direct stream - Henkow - 2023-09-28

I don't have access to my server at the moment so I'll provide the log later. In the meantime I noticed the issue is not present when the video is transcoding, only when the video is untouched i.e. direct streaming. That's quite odd.


RE: Dropped frames during direct stream - Henkow - 2023-11-08

(2023-09-25, 12:51 PM)Henkow Wrote: I have a bunch of remuxes that have gone through MKVToolNix to merge additional audio tracks and .PGS subtitles. These particular files seems to cause problems with Jellyfin.

See this image: https://ibb.co/y870G2C

It seems to happen when there is fast transitions which is weird as there should be no bandwidth limitations. I have a gigabit connection to my server and easily pull 100MB/s from it. The server itself sits at just a couple percent CPU usage.
When the video freezes momentarily the audio is unaffected.

If I playback the file in VLC or MPC-HC locally everything is perfectly fine. As I struggle to grasp what is causing this. I could provide a video sample if that would help.

According to the debug log there seems to be some complaints about the .PGS subtitles. Could that affect the video when none are selected?

I would greatly appreciate some help with this as I'm going mad trying to figure it out!

It happens with the original file too. However, if the video is transcoded it works fine. This is only an issue when the video is not transcoded.