using mkvtoolnix/mkvmerge utility for metadata, adding thumbnail support subs and and other information embedding in mkv #25687

Closed
opened 2026-02-21 12:39:50 -05:00 by deekerman · 6 comments
Owner

Originally created by @chauhansarthakiitd on GitHub (Jan 14, 2023).

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2021.12.17
  • I've searched the bugtracker for similar feature requests including closed ones

Description

here's the thing ffmpeg is very slow with mkv but with MKVToolNIX or mkvmerge it is fast they already have cli and documents for integration. we can add video thumbnail support for mkv files and add the option of making them do the metadata and sub merging since ffmpeg is very slow on this front. all the user has to do is download the dependency and choco already has mkvtoolnix
what do you think?

Originally created by @chauhansarthakiitd on GitHub (Jan 14, 2023). - [x] I'm reporting a feature request - [x] I've verified that I'm running youtube-dl version **2021.12.17** - [x] I've searched the bugtracker for similar feature requests including closed ones ## Description here's the thing ffmpeg is very slow with mkv but with MKVToolNIX or mkvmerge it is fast they already have cli and documents for integration. we can add video thumbnail support for mkv files and add the option of making them do the metadata and sub merging since ffmpeg is very slow on this front. all the user has to do is download the dependency and choco already has mkvtoolnix what do you think?
deekerman 2026-02-21 12:39:50 -05:00
  • closed this issue
  • added the
    request
    label
Author
Owner

@dirkf commented on GitHub (Jan 15, 2023):

If you wish, make a wrapper for your preferred tool(s) that accepts ffmpeg command line syntax and invokes the tool(s).

https://video.stackexchange.com/a/35957 describes how a thumbnail can be embedded in MKV using ffmpeg, but I don't think we do that. Open a new issue if that's your problem.

Regarding speed, duplicate of #31470.

@dirkf commented on GitHub (Jan 15, 2023): If you wish, make a wrapper for your preferred tool(s) that accepts _ffmpeg_ command line syntax and invokes the tool(s). https://video.stackexchange.com/a/35957 describes how a thumbnail can be embedded in MKV using _ffmpeg_, but I don't think we do that. Open a new issue if that's your problem. Regarding speed, duplicate of #31470.
Author
Owner

@chauhansarthakiitd commented on GitHub (Jan 16, 2023):

well you need to be a youtube-dl args expert to be able to pull this off
only the devs can do this
can you at least show me an example?

@chauhansarthakiitd commented on GitHub (Jan 16, 2023): well you need to be a youtube-dl args expert to be able to pull this off only the devs can do this can you at least show me an example?
Author
Owner

@dirkf commented on GitHub (Jan 17, 2023):

Just call your script "ffmpeg" and tell yt-dl where to find it using --ffmpeg-location .... You'll need a script called "ffprobe" too. Details will vary according to the script shell involved.

However I would suggest that you follow up the request in #31470 for a verbose log of the "slow" behaviour first.

... I don't think we do that. ...

No, and yt-dlp does do so.

@dirkf commented on GitHub (Jan 17, 2023): Just call your script "ffmpeg" and tell yt-dl where to find it using `--ffmpeg-location ...`. You'll need a script called "ffprobe" too. Details will vary according to the script shell involved. However I would suggest that you follow up the request in #31470 for a verbose log of the "slow" behaviour first. > ... I don't think we do that. ... No, and yt-dlp does do so.
Author
Owner

@dirkf commented on GitHub (Jan 28, 2023):

MKV embedding continued in #31454.

@dirkf commented on GitHub (Jan 28, 2023): MKV embedding continued in #31454.
Author
Owner

@pukkandan commented on GitHub (Jan 28, 2023):

Related https://github.com/yt-dlp/yt-dlp/issues/126, https://github.com/yt-dlp/yt-dlp/issues/1879

@pukkandan commented on GitHub (Jan 28, 2023): Related https://github.com/yt-dlp/yt-dlp/issues/126, https://github.com/yt-dlp/yt-dlp/issues/1879
Author
Owner

@dirkf commented on GitHub (Jan 28, 2023):

Is there some way that the multiple ffmpeg operations can be encoded as a filter graph and passed to a single ffmpeg invocation?

Related: yt-dlp/yt-dlp#126

@dirkf commented on GitHub (Jan 28, 2023): Is there some way that the multiple _ffmpeg_ operations can be encoded as a filter graph and passed to a single _ffmpeg_ invocation? Related: yt-dlp/yt-dlp#126
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#25687
No description provided.