I suspect one possible cause could be the EAC3 audio.
On my setup I've long since begun converting all EAC3 audio to AC3.
I don't remember exactly the circumstances, but EAC3 caused me problems where AAC and AC3 do not.
I have same issue, Samsung TV with some videos stuttering at times while same ones work just fine on other TV's or phones. And at first i also thought it may be something with the format itself but it should not happen as my TV has native support for .mkv files.
Then i noticed the issue doesn't replicate with all .mkv files. So then i thought maybe some issue regarding the codecs within the container. But it's not really.
As i decided to focus a bit more effort to this issue and see if it's maybe an issue with the file itself or not, to test if encoding in a different format may help. And it did.
Then compared the codecs within, as i didn't thought at first to take that in consideration when encoding so i just went default settings in shotcut. And i noticed that they were the exact same ones in the .mkv that didn't work and in .mp4 that did.
So i have no idea what is precisely the issue, but just copying everything as is in another container with ffmpeg in like 5 seconds seemed to fix the thing. Maybe some 99% encoding completion type of scenario where everything seems fine but it's not really and the TV is fussy about it.
2023-12-30, 03:02 PM (This post was last modified: 2023-12-30, 03:03 PM by tmsrxzar.)
"So i have no idea what is precisely the issue, but just copying everything as is in another container with ffmpeg in like 5 seconds seemed to fix the thing."
ffmpeg can be stripping certain things when copying (-c copy) streams, for example i know for a fact unless told not to it strips dolby vision metadata
for an actual fact based comparison get a mediainfo output before and after
in some cases as well the container format may dictate which video and audio codecs are supported on a client
You're right, they are different. Tried to copy from .mkv to .mkv where the original doesn't work and the new one does. Always the new one is smaller. It would seem that the original has many subtitles in and a different format as in encoder version or something like that. Tried to copy everything, to also include subtitles, and the new file has playback issues too. While testing went on checking older episodes and found that those that were working on Plex have playback issues in Jellyfin. So it may be a TV issue but also a Jellyfin issue too, some type of weird unicorn of an error from this combination that i'm totally too dumb to troubleshoot and understand. At least i know how to solve my issue, re encode all .mkv files and let it discard all additional channels that i don't need anyway. I supose it's an encoding standard issue where some movies are from a group using some set of standards while others a different set of standards, hence why the issues were only from .mkv files, but not all, and none from .mp4 files.
I've been having the issue with mkv files that contain a lot of embedded subtitles. Same thing, Jellyfin installed on Samsung TV. the stuttering starts when the subtitle is being displayed(or when the dialogue starts, practically the same thing!). Turning off the subtitles didn't solve the issue.
One solution was to turn on burn in subtitles on Jellyin on the TV ( the client) but this activated the transcoding on the server and made the fast forward really slow, since it's waiting for the server to do the actual transcoding. Ideally what you want is Direct Play.
What worked for me is the ffmpeg command:
ffmpeg -i MOVIENAME.mkv -map 0:v -map 0:a -map 0:s:0 -c copy OUTPUT.mkv
After the conversion, I didn't notice any issue with the video nor the audio. it's just stripping the embedded subtitles and it keeps the first one.
the movie is usually less by 4 MB (for a 5 GB movie) so I assume it's extra subtitles that were stripped.
I run into this a bunch with certain DVD rips. Sometime the embedded VOBSUB subtitles will cause the whole thing to start stuttering or lagging really bad. SRT subs don't seem to do it that often. I am currently running batch extracts on my media to extract SRT subs, so they can stay external and play a little nicer. Anything without SRT subs is slowly getting a set.