Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

extracting DTS-HD MA tracks from mkv files

I’d like to extract the DTS-HD MA tracks from several mkv files ripped from Blu-rays, and I’m looking to preserve to original audio quality. I’ve extracted the tracks with FFMPEG and MKVToolNix. For ...
Rip's user avatar
  • 1
1 vote
0 answers
33 views

VMAF Quality Loss when applying bicubic interpolation to a video when upscaling with ffmpeg

First of all, I'm a bit of a beginner to this specific topic therefore any advice would be greatly appreciated! For a project that I've currently been working on, I've been essentially trying to ...
Solomon Williams's user avatar
0 votes
1 answer
20 views

MKV Audio track stop playing

I have a show with two sources, Blu-Ray and DVD. Blu-Ray doesn't contain the correct audio language but DVD does. I want to add the DVD audio track to the Blu-Ray. So I have decided to rip them. Using ...
Meslam's user avatar
  • 1
1 vote
1 answer
146 views

Why is it when an MKV video converted by FFmpeg to MP4 only plays on VLC media player?

I have a video in MKV format that I wanted to convert to MP4, so I used ffmpeg to convert it. The command I used was pretty simple: ffmpeg -i <path_and_name_of_file>.mkv <...
Alfrodo8's user avatar
0 votes
1 answer
105 views

Converting audio tracks only in mkv files to AC3

I have an LG CX TV. The internal video player does not recognise DTS audio format. I'd like to be able to play MKV files (which might have DTS audio tracks) from an external USB device. I was looking ...
Alastair's user avatar
0 votes
0 answers
59 views

Encoding MKV File Without Changing Header Information

I captured a video using a Kinect Azure SDK device. This captured video (.mkv container) has three tracks: Color, Depth and IR. I extracted the Color track using MKVToolNIX. I could playback this RGB ...
Ashutosh Singla's user avatar
2 votes
1 answer
251 views

When copying all streams from a mkv contained to another mkv container, original cover thumbnail stream gets copied, but does not get visualized

So, to simplify the topic for this question, I am using a simple command that only copies all the original streams and puts their copies in a new mkv container. The original cover.png stream is still ...
NoName's user avatar
  • 21
0 votes
0 answers
123 views

Telling FFMPEG to process all audio tracks with the same parameters as in the source and changing only the parameters I specified

I have an MKV file with 3 audio tracks (AAC stereo, stereo and 6ch) and use a following command line: C:\Program Files\ffmpeg\bin\ffmpeg.exe -hide_banner -loglevel info -y -i "%1" -c:v copy -...
Paul's user avatar
  • 944
0 votes
0 answers
228 views

Change 50fps video into 25fps and keep the duration without reencoding

I have a 50fps video, where every second frame is a duplicate of the previous frame. I want to upload this video to youtube and I want youtube to think it's a 25fps video. Is this possible? For ...
DD3R's user avatar
  • 85
3 votes
0 answers
572 views

null bytes in .mkv file

I recently downloaded a movie (.mkv), it works perfectly on VLC Android, but after I moved it to my computer (with adb), mpv could not run it (Failed to recognize file format), nor parole (GStreamer ...
WMunn's user avatar
  • 31
1 vote
1 answer
215 views

FFmpeg does not copy over chapter atoms when I try to remove subtitles

I have some videos encoded from The Criterion Collection, and their videos use these things called "chapter atoms". What is really odd is that ffprobe does not detect these. I assume that ...
mrjpaxton's user avatar
1 vote
1 answer
989 views

Disable all subtitles (softsub) in .mkv, .mp4 files

I have several Movies/Animes with many subtitles, and I want disable all (not remove) subtitles in a batch (.bat file); below current code: for %%a in (*.mkv, *.mp4) do ( REM disable subtitles ) ...
Ricardo's user avatar
  • 115
2 votes
2 answers
6k views

Is there a way to extract subtitles from an MKV while maintaining the original format?

I am trying to extract (first, in case of many) subtitle track from mkv files (via CLI only, no GUIs) using ffmpeg or mkvextract. But there is one downside to this: I have to write the output name ...
user206904's user avatar
2 votes
1 answer
425 views

Old family videos with no audio... any hope of recovering the audio?

I have limited experience but have used simple tools like mediainfo and ffmpeg before, though I don't usually know what is happening. I dug up some old digital video files of family members that are ...
bcsteeve's user avatar
  • 299
0 votes
1 answer
514 views

Trouble with splitting a .mkv file in half with FFMPEG using one command, had to do it one at a time with a slightly different command

So I have a ~400GB .mkv file I wanted to upload to YouTube, unfortunately for me YouTube has a 256GB limit. So I Googled if I could split the file with FFMPEG and found the following article (FFMPEG ...
Pizzaazzip's user avatar
0 votes
0 answers
710 views

Copy all FFMPEG streams and metadata except the first video stream

I have some "voice memos" that were recorded through the video camera app. They have huge video streams, but I just want the audio. How can I copy all streams via ffmpeg except the first ...
Atomic Tripod's user avatar
0 votes
0 answers
3k 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 ...
Mnea's user avatar
  • 1
3 votes
1 answer
414 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 ...
Clamarc's user avatar
  • 663
0 votes
1 answer
80 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/...
dsfsdfdsf's user avatar
1 vote
1 answer
351 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 ...
Josh's user avatar
  • 11
3 votes
1 answer
2k 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 ...
fuumind's user avatar
  • 433
0 votes
0 answers
468 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"...
Selena's user avatar
  • 101
1 vote
1 answer
3k 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 ...
anishjp's user avatar
  • 11
1 vote
0 answers
183 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 ...
blueclouds8666's user avatar
1 vote
1 answer
1k 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]. ...
Jinhjy's user avatar
  • 11
5 votes
0 answers
4k 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:\...
Binarus's user avatar
  • 1,835
0 votes
1 answer
1k 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: ...
niko7496's user avatar
0 votes
0 answers
630 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 ...
AlpacasInSpace's user avatar
1 vote
0 answers
209 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://[email protected]:88/videoMain' \ -c copy -map 0 \ -f segment -segment_time 60 -...
Huckle's user avatar
  • 568
1 vote
0 answers
504 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 ...
marklam's user avatar
  • 111
0 votes
1 answer
8k 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:...
Abraham's user avatar
  • 164
0 votes
0 answers
153 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 ...
Caho's user avatar
  • 1
0 votes
1 answer
527 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 ...
pawlo444444's user avatar
1 vote
1 answer
2k 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 ...
Aspiring Dev's user avatar
0 votes
1 answer
6k 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 ...
ReEA's user avatar
  • 1
1 vote
1 answer
703 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 ...
Selim Karaman's user avatar
0 votes
1 answer
885 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 ...
Karim Gawish's user avatar
2 votes
1 answer
1k 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 ...
gdrt's user avatar
  • 83
1 vote
0 answers
2k 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 ...
dkrikun's user avatar
  • 111
0 votes
1 answer
1k 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 ...
tomcar's user avatar
  • 1
10 votes
2 answers
18k 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 ...
oldboy's user avatar
  • 393
19 votes
0 answers
9k 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 ...
alexitx's user avatar
  • 321
0 votes
1 answer
3k 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....
Imaginator's user avatar
0 votes
0 answers
274 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 ...
mgutt's user avatar
  • 1,048
1 vote
1 answer
1k 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). ...
sfxedit's user avatar
  • 333
0 votes
1 answer
905 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. ...
Huston's user avatar
  • 99
1 vote
2 answers
5k views

ffmpeg to get an HEVC RTSP stream into an mkv container

I'm trying to copy an hevc video from an RTSP feed into an mkv container. This works: rtsp(hevc) -> out.hevc then out.hevc -> out.mkv This doesn't work rtsp(hevc) -> out.mkv Working below: ...
Imaginator's user avatar
0 votes
0 answers
1k views

ffmpeg Non-monotonous DTS Error During Stream copy

I am attempting to stream copy a DTS-HD MA audio stream into the matroska container. ffmpeg throws Non-motonous DTS errors that look like this: [matroska @ 00000294f0f902c0] Non-monotonous DTS in ...
Henry7720's user avatar
1 vote
0 answers
816 views

How to extract two video files from an MKV container

I have a two part video. I placed both files into an MKV container using MKVToolNix and multiplexed and produced the output file. However, the second video does not play at the end of the first. ...
Nevada SD's user avatar
-1 votes
1 answer
7k views

Converting a MKV file with DTS MA audio to AC3 5.1 (With no loss in video)

I have a linux server on which i need to do this. I have a video MKV video file with AVC video and DTS MA audio, i need to convert this to a file with AC3 5.1 Audio with no loss in video and as ...
BalaK's user avatar
  • 99