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
0 votes
1 answer
529 views

MKVToolNix Splitting and Joining Stutter

I've been trying to split a tv show episode into two seperate parts, but whenever I try to rejoin the split files, I get a pixelation look on the merge locations. I've been using MKVToolNix to try ...
0 votes
1 answer
410 views

ffmpeg mov_text subtitle too small when converting mkv to mp4

I want to remux a mkv file into mp4. I used the following command. ffmpeg -i "input.mkv" -c:v copy -c:a copy -map 0:0 -map 0:1 -map 0:2 -map 0:3 -c:s mov_text "output.mp4" Problem:...
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 ...
0 votes
1 answer
1k views

How to make ffmpeg to generate NUMBER_OF_BYTES tag for every stream in file output?

Can ffmpeg count size of stream in bytes? I want to write NUMBER_OF_BYTES tag for every stream in file output on the fly. Like MKVToolNix does. Input #0, matroska,webm, from 'm:\S01E18.mkv': ...
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 ...
0 votes
0 answers
47 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 ?...
1 vote
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: ...
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 ...
1 vote
1 answer
842 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 ...
0 votes
0 answers
53 views

How to convert mkv to a container that works well on apple devices while keeping the audio tracksand subtitles

I have a mkv file that I would like to transcode to to a container that works well on Apple devices. I have identified the following options to help me reach my goal based on the ffmpegs video ...
0 votes
2 answers
557 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 ...
0 votes
0 answers
24 views

What causes, and how to avoid artifacts on uncompressed video?

Wondering what in particular could be causing visual artifacts on uncompressed video and how to avoid it. I am assuming it is due to the encoding, but would need confirmation as I'm not an expert on ...
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 ...
1 vote
1 answer
3k 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 ...
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 ...
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 ...
0 votes
1 answer
329 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 ...
16 votes
1 answer
18k 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 \ -...
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 ...
0 votes
1 answer
6k views

Burn MKV with subtitles on a DVD

I have a movie on an mkv file, the movie has video, audio and the subtitles all in the mkv file but I cannot find a way to burn it to dvd including the subtitles. I need to get VIDEO_TS and AUDIO_TS ...
0 votes
1 answer
781 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 ...
3 votes
2 answers
9k views

Is it possible to encode MP4 video with VP9 codec?

Does MP4 support VP9 codec or is it exclusive to WebM?
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 ...
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 : ...
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 ...
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 ...
1 vote
1 answer
460 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 ...
1 vote
1 answer
996 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 (...
5 votes
3 answers
20k 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 ...
1 vote
1 answer
137 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 ...
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 ...
2 votes
0 answers
51 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 ...
0 votes
0 answers
52 views

No sound on Windows Media Player after removing unneeded audio streams with ffmpeg

In some .mkv files with multiple different audio streams I removed all the ones I don't need with ffmpeg and only kept the desired audio stream along with the video and possibly subtitles. The result ...
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. ...
0 votes
1 answer
865 views

ffmpeg setting not working for x264 compatibility in television

I'm having some files in MKV format (x264). Some files work flawlessly in my non-smart TV, but others are not even opened at all or crashing. I tried the following command in FFmpeg to convert it to ...
2 votes
1 answer
697 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 ...
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 ...
1 vote
0 answers
603 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....
1 vote
1 answer
450 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 ...
0 votes
0 answers
511 views

Reencode MKV (from DVD - Mpeg2) to h264

I have some old DVD that I already converted using MakeMKV, they seems to have the original mpeg stream, so I want to do this: Reencode the video stream to the more recommended settings for old-DVD ...
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 ...
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 ...
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. ...
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 ...
2 votes
3 answers
890 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?
0 votes
1 answer
480 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, ...
5 votes
1 answer
318 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 ...
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 ...
1 vote
1 answer
779 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?
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 ...