Questions tagged [matroska]

Matroska Multimedia Container is an open standard free container format, that can hold an unlimited number of video, audio, picture, or subtitle tracks in one file. It is intended to serve as a universal format for storing multimedia content.

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

Unknown (possibly malicious) behaviour when executing .mkv file

Context: I was transferring files from my phone to laptop through USB. I was curious about one of the videos in the Telegram folder (which had a .mkv extension) and double clicked. Now normally when I ...
0
votes
0answers
24 views

Using ffmpeg, is it possible to convert a blu-ray folder to a MKV file and add chapter titles in one go?

From time to time, I have to convert the files which are referenced by a playlist from a blu-ray disc to a MKV file. I normally use ffmpeg under Windows in a command line like the following: "C:\...
0
votes
1answer
29 views

How to convert flac inside mkv ffmpeg?

Guys! I was wanting to know if anyone can tell me how to losslessly convert FLAC audio to LPCM without any quality loss at all? This is info from of the mkv. Stream #0:0: Video, Stream #0:1: Audio: ...
0
votes
0answers
18 views

Batch Muxing Subtitle With MKV

I found this code for batch muxing a SRT with MKV video I want to alter it to override the existing Video instead of making a new one anyone knows how? for %%A IN (*.mkv) do ( "C:\Program ...
0
votes
0answers
18 views

Encoding the video on the GPU with the results as on the CPU

I need to recode the video from MKV to MP4 with minor quality loss and good compression. My input file: Size: 4.07 GB Quality: 1080p FPS: 23.98 Duration: 47:32 Now I use: ffmpeg -i input.mkv -c:v ...
1
vote
0answers
70 views

How to Batch Merge Identically-Named Subtitles and Audio Files Into a .MKV File

I am very unfamiliar with how batch processing with MKVToolNix (I just barely know how to save a .bat file and make it use MKVToolNix), so forgive me if this is obvious. I found an answer here (Batch ...
0
votes
0answers
43 views

ffmpeg: adding subtitles (.srt) to MKV only adds first subtitle frame

I am trying to add a separate .srt file to an existing MKV container using ffmpeg: > ffmpeg -i 'input.mkv' -fix_sub_duration -i 'subtitles.srt' -map 0 -c copy -map 1 -c:s:1 srt 'output.mkv' I am ...
0
votes
0answers
30 views

Create a Segment MKV file that plays chapters of multiple video files as one file

I have an anime in 12 episodes. I've already put in chapter markers for cold intro, opening, body, credits, etc. I've always wanted to put a bunch of anime episodes together into a sort of movie. Then ...
0
votes
0answers
68 views

Extract mkv metadata / headers into a file

I've got several thousand mkv-files. I need to extract 2 metadata information of these files into a list, specifically the file resolution (e.g. 1920x1080) and if exists (!) the information the aspect ...
0
votes
0answers
11 views

Any way to fix out of sync embedded mkv subtitles? [duplicate]

The subtitles built into the video are off I think because a different framerate than the video. They start out synced but within a minute or so they start getting behind and by the 7:30 mark the ...
0
votes
0answers
130 views

ffmpeg conversion MOV to MKV

I would like to convert a MOV file to a MKV file, using the exact same codec for audio and video. Therefore I'm using the following command ffmpeg -i input.mov -c:v copy -c:a copy output.mkv The ...
0
votes
2answers
78 views

How to make a three times smaller video from a large video as fast as possible with Handbrake?

I have a good quality black and white old movie in MKV format of 11GB. My intention is to keep the original and to create smaller versions for practical reasons when watching on various devices that ...
0
votes
0answers
34 views

How to mux Vorbis audio and VP9 into WebM format with MKVToolnix?

I downloaded 2 files from Youtube with the Kaner Youtube Downloader (a Firefox Extension). A VP9 file in the webm container An opus file in the ogg container How do I mux them both into a webm ...
2
votes
1answer
90 views

My Batch script cannot match the cover JPG images when muxing files into a MKV

I wrote the code and I want to use it for my archive. Thanks for helping me improve it. The folders containing the files are as follows (ex.): Got folder /S01, /s02, /s0n... /S01/01.mkv, 02.mkv,..., ...
0
votes
0answers
98 views

Can mkvmerge combine two audio streams with a file?

I have an mkv file that was mistakenly recorded from OBS with the desktop audio and mic audio on separate tracks. Is there a way to combine the two tracks into a single track? I have the MKVToolNix ...
1
vote
0answers
26 views

Concatinate mkv from segmented recordings of rtsp

I recorded an rtsp stream to a series of segmented files via the following ffmpeg -t $((5*60*60)) \ -i 'rtsp://....@10.0.0.132:88/videoMain' \ -c copy -map 0 \ -f segment -segment_time 60 -...
0
votes
0answers
280 views

remove encoding information

I want to know how I can remove encode settings from the mediainfo with mkvpropedit or ffmpeg? İn this post: https://video.stackexchange.com/questions/18227/removing-mp4-encoding-information I found ...
0
votes
1answer
26 views

Using mkvmerge to Merge Subtitle Tracks

I am looking for a way to merge two MKV files, each with an embedded subtitle track, into one where the subtitle tracks merge properly and in order. Right now I get two separate subtitle tracks, and ...
0
votes
1answer
130 views

Batch: Merge specific parts of mkv files

I have several Folders of MKV files. each folder contains episodes of a series with english Audio track and good quality of video and same episode with Farsi dubbed audio track (and also english) but ...
0
votes
0answers
126 views

mkvtoolnix merge roadblock

I'm trying to combine two mkv files, but I'm getting the error that the audio tracks don't match (2 vs 6 tracks). Error: The track number 1 from the file 'C:\Users\snip1.mkv' cannot be appended to ...
1
vote
0answers
151 views

In ffmpeg truehd encoder, can you mark L and R as LT and RT (Dolby Surround)

When encoding a stereo audio stream with the ffmpeg ac3 encoder, you can specify that the L/R channels are Dolby-Surround (Pro-Logic) LT/RT channels, using the -dsur_mode 2 flag. Is there a way to do ...
0
votes
1answer
84 views

How to install mkclean?

Download the tar file from this link . > wget https://sourceforge.net/projects/matroska/files/mkvalidator/mkvalidator-0.5.2.tar.bz2/download Unzip the archive with tar. > tar -xjf ./download I ...
0
votes
0answers
32 views

Remove embedded subtitle streams from media file without “streaming/remuxing”

This related post gives a solution: mkvmerge -o output.mkv input.mkv -S # remove all subtitle tracks This other related post gives a solution: ffmpeg -i input.mp4 -c:v copy -c:a copy -map_metadata 0:...
0
votes
0answers
143 views

muxing primary h264 into mkv or mp4

this is a long time standing problem: primary 264 streams don't have time stamps, so one gets (whatever you do) in the end an endless repeating error chain like [mp4 @ 00000204c63e2f00] Timestamps are ...
0
votes
0answers
29 views

FFmpeg: SSIM Returning Unexpected Result When Input is Using MKV Container

I have an uncompressed video file and I want to compress it with a (lossless) codec. It is all right, but when I perform SSIM test, FFmpeg is returning an unexpected result (i.e. SSIM <> 1) when ...
0
votes
1answer
112 views

combining two batch file into one

I'm using two commands on for removing subtitles audio etc. and the other one is to merge subtitle with mkv file in the same folder. This for removing the subtitle or audio: FOR /F "delims=*" %%A ...
0
votes
1answer
106 views

FFmpeg - Converting mkv to mp4 with surround sound

I've searched many posts about this topic, and still cant get this done. To be exact, I'm trying to convert .mkv file with subtitles and surround sound to .mp4 with embedded subtitles and with as hi ...
1
vote
1answer
278 views

How to convert an mkv file with several subtitle tracks into mp4 with one of the subtitle streams hardcoded using ffmpeg?

I would like to know how to convert an mkv file with several subtitle and audio tracks into an mp4 with one of the subtitle tracks hardcoded and a single audio track selected using ffmpeg? It should ...
0
votes
1answer
1k views

How to losslessly transcode MKV to WebM or MP4? [duplicate]

I've downloaded a rather vast number of videos from YouTube over the past couple of years (probably in excess of 1500) - and these are all MKV. Unfortunately — Premiere Pro seems only capable of ...
0
votes
0answers
61 views

video file keeps getting out of audio/video sync

I have a video file that when you first start it the audio comes in earlier than a the video by a few hundred milliseconds, so I adjust the audio delay in my media player, but then after a few minutes ...
1
vote
0answers
68 views

Converting VP9 webm to VP8

I wonder how can I convert VP9 webm to VP8 with FFmpeg or Matroska (matroska would be better) without changing any kind of setting? I just want the output to be exactly same as the input but as VP8 ...
0
votes
1answer
236 views

FFMPEG, resize, watermark and compress a video

I can't quite combine a couple of commands in FFMPEG. I'm trying to Burn in an external subtitle file map all other streams since the file contains many audio and subtitle tracks i don't wish to ...
2
votes
1answer
510 views

Splitting corrupted webm video file

There's a 50-minute long webm video file which stops playing after about 8th minute. As I don't require the beginning of the video, I decided to split it and get last 30 minutes of it. For that, I ...
0
votes
0answers
265 views

How to fix a damaged MKV video file?

I have a damaged MKV file (power turned off while recording). I know how to get the actual video duration (e.g. decode and send output to null, take the last frame reported PTS). How do I edit the ...
0
votes
1answer
209 views

Using FFmpeg to convert to AC3 and remove extra tracks

I've been using this to convert the first audio track to AC3: ffmpeg -i FILE.mkv -map 0:v -map 0:a:0 -map 0:s -c copy -c:a ac3 -b:a 640k FILE-AC3.mkv And it has been working great. I wanted to know ...
4
votes
1answer
4k views

Understanding FFMPEG Error Extracting Subtitles

I'm trying to extract some subtitles as an srt file because there are some lines I'd like to edit therein before remuxing the video. Unfortunately I'm running into an error that I really don't ...
0
votes
0answers
172 views

Why is the length of the same movie different?

Currently I am digitizing my collection of DVDs. Some of the DVDs have a scratch and cannot be read perfectly. When this occurs I am downloading this DVD from the internet and try to recover the ...
1
vote
0answers
44 views

Windows - Is it possible with MKV Merge to remove all subtitles that do not match given name

I found this code: :: remux all mkvs under a certain subfolder with all subitles :: but those as specified by %language% parameter removed. @echo off setlocal enabledelayedexpansion :: set your ...
5
votes
0answers
3k views

Extracting Opus from WebM losslessly with FFmpeg or MKVToolNix

I have come across a strange problem when remuxing Opus audio stream from WebM to another container like ogg or opus. Running the output files through a spectrum analyzer clearly shows that there is ...
0
votes
0answers
987 views

Audio and video from MKV file getting out of sync in multiple media players

I noticed an issue while playing MKV files on my HP laptop. After about an hour or so, the audio starts to get out of sync with the video, and the delay becomes greater and greater. If i restart the ...
0
votes
1answer
1k views

FFMpeg to manually set a file duration

My generated mkv containers (containing h265 video) are missing the video length. Is there a way to set this before the piped input is closed? Input #0, matroska,webm, from 'camera01-20190815-203646....
1
vote
1answer
2k views

Batch Merge subtitles into MKV file using MKVToolNix

I am currently trying to merge external subtitle files (.ass files) into an mkv file, but am facing problems with looping. My latest attempt at this: set mkvmerge="C:\Program Files\MKVToolNix\...
0
votes
1answer
101 views

How to remux mka audiobook to m4b?

I have some audiobooks in "mka" files (Matroska audio) that I wish to remux to the more-standard "m4b" container, which more players can read. Is there a way to do this without losing the chaptering ...
1
vote
2answers
4k views

How do I convert an MK3D file into an MKV file while preserving the 3D?

I have an MK3D video file containing a 3D movie. But my video player (Skybox for Oculus Quest) does not support MK3D files, only MKV files. My question is, how do I convert my MK3D file into an MKV ...
0
votes
0answers
124 views

How to batch convert a specific DTS audio track language of multiple MKV files to Dolby Digital?

I now the tool PopCorn MKV AudioConverter to convert all DTS audio tracks of a MKV file to DD. It is able to convert multiple MKVs in a folder as well. But it is not able to convert only if: - MKV ...
1
vote
1answer
1k views

set default audio track for mkv movies

i am currently running a bash script on my linux debian system to copy some dvds. I am using makemkv for that. I also use minidlna to share the movies with my other devices in my network. The Problem ...
1
vote
1answer
503 views

How to Extract Video & Audio from a Corrupt File with Codec Id Mismatch (wrong track type)?

The Problem: There is a bunch of video files that can only be played with a custom player and I'd like to reverse engineer it so that the video can be played on common media players (like VLC or MPC). ...
3
votes
5answers
14k views

Change audio track order in MKV files

I have a bunch of MKV files, that were all made the same way: one video track audio track 1 is english audio track 2 is german Now I want to change the audio track order, so that german is track 1 ...
0
votes
1answer
264 views

Reencode mkv to mp4 with forced subs only

I've asked a similar question before but I couldn't get it to work and since it is an old post, I'm trying again. I want to convert to mp4 from mkv because many of my players have issues with mkv. ...
0
votes
0answers
614 views

Batch Script.Bulk MKV videos metadata removal. OS X Mac

When I run the below batch file that is using mkvpropedit and remove all tags and title from all mkv files within a directory. I get the error: .mkv Error: The file '.mkv' is not a Matroska file or ...

1
2 3 4 5