I notice you mentioned and "ffmpeg" — but your message is very brief.
For example, a common task:
# Convert to MP4 with H.264/AAC ffmpeg -i "Young.Sheldon.S07E11.mkv" -c:v libx264 -c:a aac output.mp4 young sheldon s07e11 ffmpeg