Forrest logo
back to the ffmpeg tool

ffmpeg:tldr:fd093

ffmpeg: Remux MKV video to MP4 without re-encoding audio or video streams.
$ ffmpeg -i ${input_video}.mkv -codec copy ${output_video}.mp4
try on your machine

This command uses the ffmpeg software to convert a video file from a MKV format to an MP4 format without re-encoding the content. Here is a breakdown of each part of the command:

  • ffmpeg: This is the command to run the ffmpeg software.
  • -i ${input_video}.mkv: This specifies the input file. ${input_video} is a placeholder for the actual name of the input video file and .mkv indicates that it is in MKV format.
  • -codec copy: This option tells ffmpeg to copy the video and audio streams from the input file to the output file without re-encoding them. It ensures that the quality of the video and audio is preserved.
  • ${output_video}.mp4: This specifies the output file. ${output_video} is a placeholder for the desired name of the output video file and .mp4 indicates that it should be in MP4 format.
This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ffmpeg tool