mkvtoolnix | Creating and working with Matroska files | Form library
kandi X-RAY | mkvtoolnix Summary
kandi X-RAY | mkvtoolnix Summary
Creating and working with Matroska files
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mkvtoolnix
mkvtoolnix Key Features
mkvtoolnix Examples and Code Snippets
Community Discussions
Trending Discussions on mkvtoolnix
QUESTION
I'm trying to convert a .ts file with this output to mkv:
...ANSWER
Answered 2021-May-02 at 08:14Try to run with the -ss
flag.
QUESTION
So I am currently trying to make something that uses mkvmerge to merge audio, video and an unknown amount of subtitle files. For now, those subtitle filepaths are in a list.
Here is my issue. I cannot for the life of me think of a way of putting this into subprocess run, without throwing an error. If I combine the subtitle names into a single string, mkvmerge throws an error, so each file would need to be inside "","" themselves.
So, the command without subtitles looks like this:
subprocess.run(['C:\MKVToolNix\mkvmerge.exe', '-o', f'E:\Videos\{output_filename}.mkv', 'E:\Videos\viddec.mp4', 'E:\Videos\auddec.mp4'])
So this will produce a working video.
AFAIK, a properly formatted subprocess call including two subtitles would need to look like this.
subprocess.run(['C:\MKVToolNix\mkvmerge.exe', '-o', f'E:\Videos\{output_filename}.mkv', 'E:\Videos\viddec.mp4', 'E:\Videos\auddec.mp4', 'E:\Videos\eng.srt', 'E:\Videos\nor.srt'])
Is it possible to add variables like that, as individual strings into a subprocess.run call, so that it will function properly? or is there perhaps a different method/call I cannot think of?
...ANSWER
Answered 2021-Jan-01 at 20:04You can build the list of arguments before the subprocess.run
call, as long as you need it to be, and pass that list in the call.
QUESTION
I am attempting to batch edit metadata of some video files by piping the results from ls into a function that edits the video file's name in metadata. Example:
Files:
- My Movie 1 - 1080p DTS 5.1.mkv
- My Movie 2 - 720p DTS 2.1.mkv
- My Movie 3 - 480p AAC 1.0.mkv
Desired title renames in metadata:
- My Movie 1
- My Movie 2
- My Movie 3
I am using the mkvpropedit function from MKVToolNix in PowerShell, which can be used to rename a single file's title in the following way:
...ANSWER
Answered 2020-Aug-10 at 12:52It looks like you're trying to use delay-bind script blocks ({ ... }
blocks that reference $_
as the current pipeline-input variable), which, however, are not supported in direct calls to external executables such as mkvpropedit
.
Instead, you must use a ForEach-Object
call and use expressions based on $_
to formulate your arguments:
QUESTION
EDIT2: Final code below
I need help on converting some codes as I am very new to mkvmerge, powershell and command prompt.
The CMD code is from https://github.com/Serede/mkvtoolnix-batch/blob/master/mkvtoolnix-batch.bat
for %%f in (*.mkv) do %mkvmerge% @options.json -o "mkvmerge_out/%%f" "%%f"
What I've managed so far
...ANSWER
Answered 2020-Mar-26 at 19:09$mkvmergeExe = 'F:\Desktop\@progs\mkvtoolnix\mkvmerge.exe'
$optionsFile = "$SourceFolder\options.json" # alternatively, use Join-Path
Get-ChildItem -LiteralPath $SourceFolder -File -Filter *.mkv | ForEach-Object {
$f = $_.FullName
$of = "$SourceFolder\mkvmerge_out\$($_.Name)"
& $mkvmergeExe `@$optionsFile -o $of $f
}
QUESTION
Is it possible to use FINDSTR with a variable instead of a file?
I've tried researching this but my knowledge on batch isn't good enough yet.
I've made most of my batch file work flawlessly for what I need, but I'm having trouble extracting part of a string variable into a new variable.
The original variable for example would be S02E12 - Charge!
. I would like to extract 02
to ep_seas
, 12
to ep_num
, and Charge!
to ep_name
. I have it working right now if that's the exact pattern of names, but I've come across some files that are in this pattern: S02E124 - Charge #2!
Is there a way I can dynamically get the values I need regardless of their length?
My idea was to use FINDSTR to search between the S
and the E
, then between E
and space
(or -
), then between -
and the end. I'm not sure how I would proceed with this though.
Does anyone have a solution I can look into or can someone provide an example?
...ANSWER
Answered 2019-Oct-31 at 15:30You could use this code for your task:
QUESTION
I`m editing a bunch of files with mkvmerge and I'm doing this:
Video from original-001.mkv
mux with audio from audio-001.mkv
and add subtitle from sub-001.mkv
.
I'm creating a bunch of .bat scripts and using notapad++ find and replace function to do this:
find 001 and replace for 002, save as 002.bat and move on.
Basically, there will always be a base file named 001.bat
What would be really great is this Notepad++ portion could be automated. Find all strings "001", replace with "002", save as 002.bat Find "002", replace with "003", save as 003.bat.
Up to 300.
And finally what I do is another script: Call 001.bat Call 002.bat and so on. If I file doesn't exist there's no problem.
Is this possible using batch script on windows?
EDIT to add code as the way I'm going now: Example of 001.bat
...ANSWER
Answered 2019-Feb-14 at 17:03Here you go.
Go down to "** and does stuff to it ** RIGHT HERE **".
This is where you will search and replace on the new file.
QUESTION
Ok, I'm total new at this... Basically I'm using a tool call mkvmerge to attach multiple font files(.ttf) to .mkv files. I have separated the .mkv files into folders together with the respective fonts I would like to attach.
My aim is to create a batch that creates a copy of all the .mkv files with all the added attachments and deposits them in a newly created a folder (i.e Revised) in the parent directory.
Beginning with just a single folder:
...ANSWER
Answered 2019-Feb-15 at 11:21I have decided to take a stab at this, it is intended to be run from the parent directory holding your directories, (I have assumed that those directories are all on the same level, this is not recursing through nested directories).
Please be aware that I am unable to test this.
QUESTION
I want to change tags of my all mkv files. I installed MKVToolNix. My code is:
...ANSWER
Answered 2018-Nov-17 at 15:09The issue is that one of your .mkv
files contains a space in its filename. Thus when you split the bashCommand
to create a list, you inadvertently split the filename into two pieces.
The easiest thing would be to rename the file so that it doesn't contain a space. It may also be safer to build the list manually, rather than relying upon split()
, and ensure you wrap the filename in quotes.
QUESTION
I'm using ffmpeg 3.2.7 and I have a problem converting a ts-file lossless to mkv. The source file is a dumped IPTV-stream recorded with dumprtp (from dvbstream 0.5).
ffmpeg -i Test.ts -map 0:0 -map 0:2 -vcodec copy -acodec copy -f matroska Test.mkv
The convertion is successful, but the output file is pixelated every few seconds.
When I'm converting it with MKVToolnix everything looks fine.
Does anyone has a solution for that problem? Maybe some option to sync the stream correctly?
Here's a sample output:
...ANSWER
Answered 2017-Oct-28 at 20:47I cannot reproduce your input stream playing fine using multiple players. The .ts looks better than the mkv in all players tough, i guess due to error correction infos in the .ts but in the end it does not play 100% fine. Looking at the output of ffplay there are lots of mpeg related errors which means you just do not have all video data in your stream dump to decode it correctly.
Unfortunately there is no way for you to go with direct stream copy from your fragmented .ts file into a frame accurate container without Decoding and re-encoding i fear.
QUESTION
I followed the instructions on https://kubernetes.io/docs/tasks/tools/install-kubectl/ on my Mac and installed Kubernetes CLI using brew.
...ANSWER
Answered 2018-Aug-29 at 12:16You may have installed Minikube, but that doesn't necessarily mean it's actively running. You'd need to run minikube start
to actually start the cluster on your machine. This also configures your kubeconfig file to point at the cluster it built.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mkvtoolnix
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page