2024-06-19, 05:26 PM
I'm not sure how AviDemux works in the background, but one thing you can try is to repackage the file.
This will copy the video, audio, and subs unmodified and just regenerate the packet time stamps. Jellyfin, and a lot of the players Jellyfin uses, are not very tolerant of faults and out of spec files.
Code:
/usr/lib/jellyfin-ffmpeg/ffmpeg -fflags genpts -i "/path/to/video.mkv" -map 0:v -map 0:a -map 0:s -map_chapters 0 -c:v copy -c:a copy -c:s copy outputFile.mkv
This will copy the video, audio, and subs unmodified and just regenerate the packet time stamps. Jellyfin, and a lot of the players Jellyfin uses, are not very tolerant of faults and out of spec files.