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
0 answers
13 views

FFMPEG conversion from HEVC .MP4 video to .MKV stutters in VLC

I've been trying to convert a .mp4 file containing a HEVC encoded video and AAC encoded audio into a .mkv container with ffmpeg. However, when I try to play the resulting file in VLC it stutters. ...
user avatar
0 votes
1 answer
165 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 ...
user avatar
0 votes
1 answer
78 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 ...
user avatar
  • 103
0 votes
1 answer
98 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 ...
user avatar
  • 1
0 votes
0 answers
19 views

Combing .mlp audio stream and blank video OR still frame into .mkv

I'm working on creating some consumer-friendly .mkv files that will play back in common software (e.g., JRiver, Kodi, etc.) and allow bistreaming of some Atmos music tracks. The audio stream is ...
user avatar
  • 1
0 votes
0 answers
22 views

Transcode a video that is still downloading to a streaming output

I'm making a video player that plays files while downloading them. The problem that I face is that electron (= chrome browser) can not play some formats (e.g. H265 encoded MKV). I want a solution that ...
user avatar
  • 101
2 votes
0 answers
33 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 ...
user avatar
0 votes
0 answers
23 views

Mixdown Audtio with FFMPEG

I want to process MKV files by mixing down the audio to 128kbps AAC on 2 channels while just copying video and subtitle tracks. So I run: ffmpeg -i input.mkv -c:s copy -c:v copy -c:a aac -ab 128k -ac ...
user avatar
  • 101
0 votes
0 answers
130 views

How can I trim an MKV video of incorrect length without re-encoding or losing any of its tracks?

I have a handful of MKV videos which claim to be a few seconds longer than they actually are. When played in VLC, they simply stop abruptly when they get to the actual end of the video. This would be ...
user avatar
0 votes
0 answers
31 views

How to mux (or reencode) files from lossless avi to mp4 or mkv using the current FFMPEG?

Exactly what it says on the title, how do you mux avi files that utilize lossless codecs such as Lagarith, Huffyuy, FFV1, etc. to mp4 using FFMPEG? Or do you need to reencode the files as opposed to ...
user avatar
  • 51
0 votes
1 answer
250 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 ...
user avatar
0 votes
1 answer
308 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 ...
user avatar
  • 113
1 vote
1 answer
270 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 ...
user avatar
  • 11
1 vote
2 answers
604 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 ...
user avatar
  • 111
0 votes
1 answer
238 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:...
user avatar
2 votes
1 answer
551 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 ...
user avatar
  • 141
1 vote
1 answer
84 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 ...
user avatar
  • 810
0 votes
1 answer
240 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 ...
user avatar
  • 65
2 votes
1 answer
2k 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 ...
user avatar
  • 123
3 votes
2 answers
5k 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 ...
user avatar
2 votes
0 answers
42 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 ...
user avatar
  • 121
0 votes
0 answers
42 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 ...
user avatar
  • 1
0 votes
1 answer
641 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 ...
user avatar
1 vote
2 answers
2k 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 : ...
user avatar
  • 111
2 votes
1 answer
478 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 ...
user avatar
2 votes
1 answer
2k 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. ...
user avatar
0 votes
0 answers
368 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....
user avatar
  • 101
1 vote
1 answer
200 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 ...
user avatar
  • 145
0 votes
0 answers
290 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 ...
user avatar
  • 11
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 ...
user avatar
0 votes
1 answer
798 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': ...
user avatar
1 vote
1 answer
779 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 (...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
2 votes
0 answers
834 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 ...
user avatar
  • 21
0 votes
1 answer
438 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 ...
user avatar
12 votes
1 answer
15k 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 \ -...
user avatar
  • 507
0 votes
1 answer
432 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, ...
user avatar
3 votes
2 answers
7k views

Is it possible to encode MP4 video with VP9 codec?

Does MP4 support VP9 codec or is it exclusive to WebM?
user avatar
  • 141
3 votes
3 answers
16k 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 ...
user avatar
1 vote
2 answers
7k 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 ...
user avatar
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 ...
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 ...
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 ...
user avatar
  • 123
1 vote
1 answer
3k 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
1 vote
1 answer
632 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?
user avatar
  • 115
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 ...
user avatar
  • 123
1 vote
1 answer
795 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 ...
user avatar
1 vote
1 answer
11k 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"...
user avatar
  • 157
0 votes
1 answer
5k 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 ...
user avatar
  • 1
2 votes
1 answer
3k 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-...
user avatar
  • 123