Convert mkv to mp4 with ffmpeg

Tutorial

With ffmpeg, you can convert mkv files to mp4 format. This can be done on your local computer or in the cloud (i.e. on a server).

First, you will need to install ffmpeg. Refer to the official ffmpeg documentation for information on how to install ffmpeg on your operating system.

Then, run the following command, replacing the input and output file names as necessary:


ffmpeg -i input.mkv -c copy output.mp4

Next Steps

OpenCV can be used with the open source supervision Python package.

supervision provides an extensive range of functionalities for working with computer vision models. With supervision, you can:

1. Process and filter detections and segmentation masks from a range of popular models (YOLOv5, Ultralytics YOLOv8, MMDetection, and more).
2. Process and filter classifications.
3. Compute confusion matrices.

And more! To learn about the full range of functionality in supervision, check out the supervision documentation.