2024-12-02, 11:32 PM
MKV and MP4 are just containers and while some clients cannot directly play MKVs, as long as the codecs used by the video and audio are compatible the server simply needs to remux them.
But simply moving the video/audio/subs to an MP4 does NOT require any encoding.
If you are using docker or your NAS, you'd have to open a bash shell into the container to run that command.
But simply moving the video/audio/subs to an MP4 does NOT require any encoding.
Code:
/usr/lib/jellyfin-ffmpeg/ffmpeg -fflags +genpts+igndts -i "/path/to/video.mkv" -map 0 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled newFile.mp4
If you are using docker or your NAS, you'd have to open a bash shell into the container to run that command.