2024-04-25, 07:43 PM
Its possible the files themselves are problematic. VLC is not a good test case because it will try much harder than most players to work around bad files.
We can try re-packaging the file without re-encoding.
Ths will regenerate the MKV container and copy the video, audio, and subtitles without re-encoding. Should repackage very quickly.
We can try re-packaging the file without re-encoding.
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
Ths will regenerate the MKV container and copy the video, audio, and subtitles without re-encoding. Should repackage very quickly.