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

How can I force a subtitle track to be set as active on an MP4 video?

I'm converting .mkv's to mp4 and it's working, however the issue is that when I open the .mp4, the subtitle track is disabled by default. I have to manually select it as such: How can I make it so ...
user avatar
  • 1
0 votes
1 answer
17 views

Can I increase audio gain in a Matroksa file without recoding?

I have a Matroska container with some video stream, some subtitles stream and an AAC audio stream. Now, the audio's gain/volume is too low, relative to other media files I play, and I want to increase ...
user avatar
  • 7,302
1 vote
0 answers
37 views

How to I use MKVmerge to add sbtitles to MKV but disable all of them

I came across mkvmerger.bat on this site and it works really well for me (How to mkvmerge all videos and subtitles with the same file name) BUT It seems to set the last subtitle file as the default (...
user avatar
3 votes
1 answer
52 views

Cover art of mkv file not being added when converting to mp3 file

I have an mkv file, only with audio, and I attached a cover art to it, but when I convert it to mp3 the art is not added to the mp3. The command I used to attach the cover art was the only one that ...
user avatar
  • 375
0 votes
0 answers
79 views

FFmpeg to mitigate truehd effects on remux of MKV to MP4

I am trying to come up with an FFmpeg command (for use in a script) that will take an mkv generated from MakeMKV and remux all the video and audio tracks to an mp4 (without the subtitles) without ...
user avatar
0 votes
1 answer
16 views

Lavf creates mysterious element in mkv (Matroska) containers with element id BF

Today I noticed that Lavf creates mkv containers that have an element with element id BF and a length of 4 bytes. According to the mkv specs https://github.com/ietf-wg-cellar/matroska-specification/...
user avatar
1 vote
1 answer
45 views

FFMPEG - COPY MKV to MP4 but add 2.0 Stream

Morning All, Using FFMPEG currently just to re-container UHD MKV into MP4 with... ffmpeg -i File1.mkv -c:v copy -c:a copy -strict -2 File1.mp4 But these MKV only have TrueHD or DTS-HD which is fine ...
user avatar
  • 11
0 votes
0 answers
1k views

How to convert Dolby Vision 7 MKV to MP4 to play on LG OLED TVs?

I am a noob at this and have been at it for hours but can't seem to work it out. Here is the HDR Format from mediainfo- "Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / ...
user avatar
  • 1
0 votes
0 answers
39 views

Remove a section of video with ffmpeg

I want to remove a short section in the middle of an mkv file and end up with the remainder as one single file (i.e., the section before the removed section concatenated wit the section after it.) I ...
user avatar
  • 1
2 votes
1 answer
86 views

Batch file to recursively mux .mp4 and .srt from different folders

There is a new trend in torrents to release TV and Movies as x265 .mp4 with .srt subs in a separate folder, following this folder structure: Season1\title1.mp4 Season1\title2.mp4 Season1\title3.mp4 ...
user avatar
1 vote
1 answer
307 views

How can I include possibly several embedded cover art when converting mp3 to mkv using ffmpeg?

I wish to include embedded cover art when converting an mp3 file to mkv (vorbis). ffmpeg -i input.mp3 output.mkv will render a file that does play (in mpv) showing an image but the moment I try to ...
user avatar
  • 391
0 votes
0 answers
68 views

How to strip HDR metadata from mkv video, without re-encoding?

I have a video file in a mkv container. This video file is 4K/BT2020/SDR but with an extra HDR layer that is useless because the video is SDR: the "correct" colors are already baked-in. The ...
user avatar
1 vote
0 answers
102 views

Is it possible to download an MKV file starting from half-way over HTTP?

I have an MKV video file that I need to download starting form half-way through. The video encoded as h264, the audio is encoded as AAC. Normally HTTP downloads sequentially so if your download speed ...
user avatar
  • 171
0 votes
0 answers
85 views

How to fix playback issues in VLC with a MKV file after slowing it down with ffmpeg

I ripped some extras from a DVD that are basically image galleries to MKV. They play way too fast, so I slowed them down using ffmpeg like this: ffmpeg -i input.mkv -filter:v "setpts=64*PTS"...
user avatar
  • 101
0 votes
0 answers
36 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
68 views

Play Movie with 2 languages simultaneously

I know that a similiar question has been asked on how to achieve this in Linux. However this Question was asked 5 years ago and maybe there is a more convenient way to do this. Furthermore, if ...
user avatar
  • 21
1 vote
0 answers
2k views

Convert Dolby Vision file in MKV container to MP4 container

I have a 5GB Dolby Vision file encoded in MKV container. If I play this file in my LG CX TV, there is a discoloration all over the display. Apparently the default WebOS media player that comes with ...
user avatar
  • 11
0 votes
1 answer
348 views

Removal of select subtitle tracks and audio tracks from mkv file in batch

My problem is that I have 2 subtitle tracks, one is named "English signs and songs" and another is called "English full". I also have English and Japanese audio tracks (dual audio)....
user avatar
0 votes
0 answers
49 views

External chapter file for MKV?

For subtitles, most video players recognise external subtitles like ".srt" if they have the same name as the video. Is there such a thing for chapters. Basically, I am wondering if there is ...
user avatar
1 vote
0 answers
92 views

Matroska audio reports wrong bitrate when adding a cover

I'm trying to make an audio-only Matroska file, but keep having an issue in regard to the reported bitrate of the archive. To demonstrate it, I'm first making a simple .mka without any attachments ...
user avatar
0 votes
2 answers
162 views

Is there any way to passthrough an MKV file to MP4 without it ending up as HVC1?

I use my PS3 to play all my shows & Films using x2 (Fat32) 5TB Drives, normaly mp4's & avis, but I've noticed the PS3 won't play HVC1. I recently tried using dvdfab with the passtrhough option ...
user avatar
1 vote
1 answer
113 views

FFmpeg: Issues muxing/copying ASS subtitle streams from one MKV source with another MKV, causes 33secs of missing subtitle at the beginning

Hey first time posting, But I really tried to look all around for a solution, even tried a couple of options that worked for me before for a similar issue with WebVTT from another solution [here]. ...
user avatar
  • 11
0 votes
0 answers
301 views

Timestamps are unset in a packet for stream 0 error while splitting using ffmpeg command

I've installed ffmpeg at new laptop and during split by time command ffmpeg -ss 00:22:30 -i 20210611-ITA-TUR-EK20_2EN.ts -t 00:01:01.30 -c copy out.mkv I receive following error: ffmpeg version 4.4-...
user avatar
  • 101
0 votes
0 answers
52 views

Converting video (mkv to mp4) results in 2 chapter menus, instead of 1, according to mediainfo?

I used ffmpeg to convert (or copy) an mkv file into an mp4 file, however mediainfo reveals the mp4 video has an additional chapter menu added, and as part of a track with an ID. Original mkv file: ...
user avatar
1 vote
0 answers
130 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 ...
user avatar
1 vote
0 answers
901 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:\...
user avatar
  • 1,455
0 votes
1 answer
292 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: ...
user avatar
1 vote
0 answers
565 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 ...
user avatar
0 votes
0 answers
156 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 ...
user avatar
0 votes
1 answer
625 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 ...
user avatar
0 votes
2 answers
131 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 ...
user avatar
  • 682
2 votes
1 answer
98 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,..., ...
user avatar
  • 21
1 vote
0 answers
40 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 -...
user avatar
  • 538
0 votes
1 answer
224 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 ...
user avatar
0 votes
1 answer
220 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 ...
user avatar
  • 1
1 vote
0 answers
248 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 ...
user avatar
  • 111
0 votes
1 answer
228 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 ...
user avatar
0 votes
0 answers
200 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:...
user avatar
  • 135
0 votes
0 answers
70 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 ...
user avatar
  • 1
0 votes
1 answer
152 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 ...
user avatar
  • 11
0 votes
1 answer
197 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 ...
user avatar
1 vote
1 answer
936 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 1
0 votes
0 answers
103 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 ...
user avatar
  • 935
1 vote
0 answers
139 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 ...
user avatar
0 votes
1 answer
436 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 ...
user avatar
2 votes
1 answer
716 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 ...
user avatar
  • 83
0 votes
0 answers
738 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 ...
user avatar
  • 101
0 votes
1 answer
395 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 ...
user avatar
  • 1
7 votes
1 answer
8k 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 ...
user avatar
  • 311

1
2 3 4 5 6