Questions tagged [mkv]

The Matroska Multimedia container is a free and open media file format. It is also a container format which means it can contain all sorts of audio, video, textual and graphical file information inside of it. You can have multiple number of audio, video, textual and graphical streams co-existing in the same file without an issue. It uses something called an Extensible Binary Meta Language which is supposed to be equivalent to XML.

Filter by
Sorted by
Tagged with
16 votes
1 answer
19k views

ffmpeg: how to add several subtitle streams

I tried to add 2 .srt subtitles to a video, but the resulting file has only the first subtitle. This is the command I used: ffmpeg -i $movie.mov -i $sub_en.srt -i $sub_de.srt \ -c:v copy -c:a copy \ -...
mivk's user avatar
  • 567
8 votes
1 answer
17k views

Join multiple M4V to one file (maybe MKV?)

So I've recorded all my old Mini DV tapes to .AVI with dvgrab, then Deinterlaced them with Handbrake (Bob Method) on the High Profile but I'm left with a bunch of M4V files now (due to the 2 audio ...
Stefan Kern's user avatar
5 votes
3 answers
21k views

How to DISABLE--NOT REMOVE subtitle tracks from an MKV file from the command line?

ATTENTION: THIS QUESTION IS ABOUT DISABLING--NOT REMOVING SUBTITLE TRACKS FROM MKV FILES FROM THE COMMAND LINE. PERIOD. It IS NOT about REMOVING subtitles by REMUXING with mkvmerge or any ...
hmj6jmh's user avatar
  • 344
5 votes
3 answers
21k views

MKVToolNix equivalent for .MP4's

Good day! I'm looking for MKVToolNix equivalent software for .MP4's. I will use it in a video file without subtitles, I'll find it's subtitle and merge it with the video file just like what I did in ...
Julius Alfeche's user avatar
5 votes
2 answers
1k views

Is it feasible to create a true multi-language video file with visual localization?

I'm of Russian descent, but I've been living in Germany for the better part of my life now, which means that I deal with both German and Russian media on a regular basis. Most video stuff I have will ...
Nikolai Prokoschenko's user avatar
5 votes
1 answer
321 views

How do I author a playable DVD from an MKV file containing MPEG2 video, audio, subtitle and chapter streams?

I'm using MakeMKV to back up my DVD library to MKV files without re-encoding the video or audio streams (since space is cheap, and quality is top priority.) I'd like to know if there's a tool ...
snoopy91's user avatar
  • 151
4 votes
1 answer
355 views

Easisest way to convert whole DVD folder (all titles and chapters) to MKV file(s)?

I have lots of movies stored as DVD folders(.bup, .vob, .ifo files); I am looking for the easiest way to convert each folder into one (or more) mkv files (preferably by using freeware program(s)) ...
Steve V's user avatar
  • 141
4 votes
2 answers
9k views

How can I merge five mkv files I've created in OBS Studio?

I used OBS Studio to create five recordings. Now I need to submit them as just one file on YouTube, so my five .mkv files has to be merged into just one file. Can it be done in OBS Studio, if so ...
Ola Ström's user avatar
3 votes
2 answers
10k views

Is it possible to encode MP4 video with VP9 codec?

Does MP4 support VP9 codec or is it exclusive to WebM?
adityav's user avatar
  • 141
3 votes
1 answer
5k views

Remove audio tracks from multiple MKV files

I've got a multitude of MKV files each containing two audio tracks that correspond to two languages. In each of the files, the English language is the second track and it's the only track I need for ...
Desmond Hume's user avatar
2 votes
2 answers
3k views

Why does AAC have two Sampling rates?

I am working on a project that reads the meta data of video files with MediaInfo and processes the results. While testing my code with some sample files I noticed that the audio track of a .mkv file ...
arne.z's user avatar
  • 123
2 votes
1 answer
4k views

Convert mkv to mp4 (or webM) with the output file viewable in the process

I'm trying to find a way to convert a MKV file into MP4 and actually already start to view it, while it's still converting. The output file would be viewed via Chrome or Firefox and I would like to ...
user avatar
2 votes
3 answers
910 views

What is the difference between mkv and mp4 files?

I don't know if this is the correct exchange site to ask this question. I would like to know what is the difference between mkv and mp4 files?
Bastien Vandamme's user avatar
2 votes
1 answer
3k views

How to convert 10-bit H.265 videos to H.264 without losing quality

I have a MPEG-H Part2/HVEC (H.265) .mkv file (Planar 4:2:0 YUV 10-bit LE). Since my LG PF 1500 beamer does not read H.265 but H.264 I would like to convert it (HVEC -> H.264). I think handbrake is a ...
captcoma's user avatar
  • 123
2 votes
1 answer
3k views

Trim audio stream to video stream length

I have an mp4 file (converted from an mkv file) that has a longer audio than video stream. This file doesn't play back nicely in my media streaming app (or MPC-HC) when I reach the end of the file. ...
Stephen Cleary's user avatar
2 votes
3 answers
1k views

Widely compatible video format with lossless audio

I'm a software developer. My software produces animated video files with music. The video files should be compatible with a wide range of software, and they should have excellent audio quality. The ...
LTR's user avatar
  • 141
2 votes
1 answer
722 views

Editing/Changing Cluster Timecode Element in mkv files (Amazon Kinesis Video)

I've tried researching this very thoroughly, but have not come across a similar issue. To sum up my problem first, I'm sending 3 second .mkv clips into Amazon Kinesis Video. Then I pull back random ...
Nick Richardson's user avatar
2 votes
2 answers
1k views

How to calculate the length of the video file that was encoded so far?

I am using ffmpeg to convert a video file to H.264 format. If I call ffprobe while ffmpeg is still running the duration of the video is not known. Only when ffmpeg finishes the ffprobe will display ...
VL-80's user avatar
  • 123
2 votes
1 answer
1k views

Is it possible to embed a thumbnail in a .mkv file?

I am trying to embed a thumbnail in a .mkv file with h265 video encoding using ffmpeg from the Linux command line. I am able to embed thumbnails in h264-encoded .mp4 files using the following command: ...
HunterThueson's user avatar
2 votes
1 answer
4k views

How to split a large mkv file into parts with the *.srt subtitle file separated accordingly?

At UNIX command line, I use the mkvmerge command in MkvToolNix to split the large multi-GB *.mkv file into several parts: mkvmerge -o out.mkv --split 1990M large.mkv It generated out-001.mkv, out-...
qazwsx's user avatar
  • 133
2 votes
1 answer
454 views

How to merge video stream and two Stereo audio streams in 5.1 with a terminal command?

What I want as result: a video with the English stream on the front lineout of my soundcard and a German audio stream on the rear lineout of my soundcard. So far, I extracted the streams with: ...
kimliv's user avatar
  • 121
2 votes
0 answers
86 views

Create time corrected .srt subtitle file for .mkv which uses file/segment linking

I have two mkv files. One of them is the episode of a series and the other one the opening which is linked in the first one. Let's call them episode.mkv resp. opening.mkv. I also have a subtitle.srt ...
FreudigWilderSkorpion's user avatar
2 votes
0 answers
53 views

Play two soundtracks, from an "mkv" movie, on two different devices [closed]

I have "mkv" movies with two soundtracks, one English and one French. I'd like to play the video and the French soundtrack on my TV and the English soundtrack on my bluetooth earphones. Is there a ...
Samuel's user avatar
  • 121
2 votes
0 answers
1k views

Extract file thumbnail from mp4 file

I'm currently converting a few mp4 file to mkv. In the process they lose their file thumbnails and I wanted to keep them. So I'm searching for a way to extract the custom thumbnails from the mp4 files ...
Maschs's user avatar
  • 21
1 vote
1 answer
1k views

I have a .mkv video file I need to use but it is apparently infinite

So I'm trying to make a YouTube video and I have recorded some gameplay and some facecam footage. When I went over to edit in Kdenlive (my video editor of choice) I tried to import my facecam footage (...
Caden Mitchell's user avatar
1 vote
2 answers
8k views

How to stop ffmpeg from interlacing when converting from m2ts to mkv

I have a m2ts video file that contains a h264 video stream and an ac3 audio stream. The quality is not the best, but it is okay, but converting it with ffmpeg without any additional options makes the ...
Jan Christian Grünhage's user avatar
1 vote
1 answer
2k views

Using FFMPEG to convert an MKV with multiple subtitles, audio tracks and chapters to a plain mp4

I have MKV files which contain multiple subtitle options, multiple audio options, and multiple chapters. I'm wanting to convert to MP4. The MKV's are x265 with DD 5.1. I just want x264 MP4's with ...
Adam's user avatar
  • 113
1 vote
1 answer
4k views

How can we keep the subtitle track when converting from MKV to MP4 with ffmpeg?

I have an MKV with integrated subtitles as such: I want to keep "English [Full] - [English]" when converting to MP4. Currently I use this command: ffmpeg -i myMovie.mkv -vcodec copy -acodec ...
user38357's user avatar
1 vote
2 answers
4k views

FFmpeg does not preserve colors after resizing

I would like to resize a 4K mkv video to 1920×1080 with ffmpeg version 3.4.6-0ubuntu0.18.04.1 on Ubuntu 18.04. The original file has the following features: Input #0, matroska,webm encoder : ...
BowPark's user avatar
  • 111
1 vote
1 answer
490 views

Identify H.265 from the OSX Command Line?

Can anyone suggest a way to tell the difference, from the OSX command line, between .mkv files encoded with H.265 from those encoded with H.264? Plex H.265 streams viewed from some devices (e.g. LG ...
NetFool's user avatar
  • 145
1 vote
1 answer
12k views

How to display subtitles as default in an MKV file

I have an MKV file with multiple subtitles. I would like to mark one set of those subtitles as default, so that it is turned on by default when the video starts playing. NOTE: I do not want to "burn"...
ltcomdata's user avatar
  • 157
1 vote
2 answers
1k views

Why aren't chapters being added to my m2ts using tsmuxer?

Question - Why aren't chapters being added to my m2ts using tsmuxer? Background I have a mkv file with 61 chapters. I confirmed the presence of those chapters by using mkvtoolnix. I want to convert ...
Craig's user avatar
  • 111
1 vote
1 answer
144 views

Is it possible to remove a border from a Webm video losslessly?

I know that Matroska does have a way to remove the border by editing its metadata, and i also know that Webm is a cheaper version of Matroska. I have tried using MKVtools to edit Webm and it appears ...
v010dya's user avatar
  • 850
1 vote
1 answer
2k views

FFmpeg can't convert eia_608 subtitles: "Data Ignored since exceeding screen width"

I'm trying to convert iTunes movies that were previously decrypted to an mkv file with FFmpeg for use with Kodi. I want to keep stereo audio and h264 video the same, which I can do. Subtitles I want ...
NightEule5's user avatar
1 vote
1 answer
800 views

What are display and pixel width reported by mkvinfo?

For one movie, mkvinfo says: | + Pixel width: 704 | + Pixel height: 480 | + Display width: 853 | + Display height: 480 What are these values exactly? Why the difference?
x-yuri's user avatar
  • 115
1 vote
1 answer
545 views

What is the technique behind mkv. video format?

Can someone please explain in detail the technique of encoding and decoding used in mkv video format and what is the major difference between mkv. and other video formats. It will be good if someone ...
Junayd Khalid's user avatar
1 vote
1 answer
478 views

How to BATCH remux combine video and audio to one file?

How can BATCH remux video and audio to one file? I'm trying this on mine android termux. So what I'm trying: I want to rip audio from video and convert to wav. ffmpeg -i inp.mkv -map 0:1 audio.wav ...
For Fun's user avatar
  • 11
1 vote
0 answers
654 views

Mjpeg in video containers use case

From time to time i'm converting mkv to mp4 using ffmpeg in order to save disk space. Currently i noticed that in some files multiple mjpeg streams where also included. Some of them were named cover....
Ronon's user avatar
  • 111
1 vote
0 answers
3k views

What's wrong with VLC seeking and/or MKV created by ffmpeg?

I have creeated a video using FFmpeg. It is a result of putting 4 videos together, tiled, using -filter_complex with overlays. Following the how-to here, I have it created as MKV. When playing this ...
Ondra Žižka's user avatar
1 vote
1 answer
847 views

How to convert an mkv file with hevc encoding to mkv with avc

I have some mkv files with a hevc encoding which is not allowing me to burn to disc in covertxtodvd as it shows no video track as the encoding isn't supported, i was wondering if it was possible to ...
user12302's user avatar
1 vote
0 answers
291 views

Burn .mkv to a .dvd for playback on DVD player while retaining multiple tracks?

If I use a program like ASVtoDVD or ConvertXToDVD to convert a .mkv to a .dvd, and the .mkv has multiple audio tracks/subtitle, will the produced .dvd only have one of those, or will it retain more or ...
user2649681's user avatar
1 vote
1 answer
131 views

Is it better to have a player application stretch the video or to use a resolution that matches the video file?

I have a Samsung LN40A550 LCD TV, purchased in 2008. I have a 2011 mac mini connected via HDMI, and I use VLC Media Player to play tv/movies, most often x264/mkv files. The native resolution of ...
Jordan Hudson's user avatar
0 votes
1 answer
2k views

Loop video for the duration of audio

I have a 10 seconds video clip and 60 seconds audio clip, so when I mux it with mkvmerge --output video.mkv ./a.mp3 ./a.mp4 The output file shows the video only for the first 10 seconds, and then the ...
IvanD's user avatar
  • 103
0 votes
1 answer
487 views

Is there any way to efficently compress multiangle recordings?

I have a DVD (a concert recording) which uses the multi angle feature for 3 different angles. I just encoded it with Handbrake on 3 separate but identical machines (all of the same model and maker, ...
LiveWireBT's user avatar
0 votes
1 answer
3k views

Burn ASS subtitle onto MKV without any quality loss

I want to burn embedded ASS subtitle onto MKV, but I'm completely clueless when it comes to video converting. I want to keep the same quality, file size and everything else but the subtitle hardcoded. ...
RizVid's user avatar
  • 1
0 votes
1 answer
853 views

Linux mkv packages for VLC

The video converter incorporated in VLC warns me when I select the MKV format with the message: This muxer is not provided by VLC. It could be missing. Is there an official list of these MKV-related ...
Carlos Pinzón's user avatar
0 votes
2 answers
601 views

Can I use Apple Compressor software to convert mkv files to mp4

I use Final Cut Pro X. I am planning to buy Compressor software too which gives me options in exporting my video. Can this same software be used for converting mkv files to mp4 because Final Cut Pro X ...
TV Nath's user avatar
  • 113
0 votes
1 answer
343 views

Removing streams in HEVC H.265 MKV file?

I have multiple MKV files with video encoded a la HEVC/H.265. I want to, using the Windows command line, make a new MKV file, stripping out all but specific subtitle tracks and audio tracks, on a ...
K7AAY's user avatar
  • 65
0 votes
0 answers
68 views

Why has transport stream (TS) a much bigger file size than mkv?

When I remux the transport stream (.ts file) of a satellite recording to mkv, file size shrinks considerably. Why is that ? What is inside the .ts container that gets "lost" during remuxing ?...
summerrain's user avatar
0 votes
1 answer
1k views

ffmpeg "-shortest" yielding a clip longer than audio file

I'm working on adding .mlp audio / TrueHD w/ Atmos content into an .mkv container (certain playback programs require a video track to bitstream audio). I'm synthesizing a color background for the ...
chris's user avatar
  • 1