I was searching google and forum and I can't find a response in my case.
I have some MKV files, and the 32 track don't have a CODEC ID value in none of these files, the file plays fine in HC-mpc and Potplayer, but I can't open this file in Multiplixer of mkvtoolnix, it says error code 2 and don't load the file.
Looking into the mkv info I notice that codec id is missing, but editing manually this value to S_TEXT/ASS in Header Editor it allows mkvtoolnix load the files in Multiplixer.
My question is, there is a way to use mkvmerge.exe from command line to make a batch file and set this value in all mkv files?
Or maybe delete/exclude this track?
I try these commands without success:
(1) mkvmerge.exe -o "test.mkv" -s !32 --compression -1:none "_test.mkv"
(2) mkvmerge.exe -o "test.mkv" --track-tags !32 --compression -1:none "_test.mkv"
Without editing in "Header Editor", mkvmerge.exe exits with error "matroska_reader: Codec Id is missing".
+ Reply to Thread
Results 1 to 5 of 5
-
Last edited by Lokotito; 27th Jan 2020 at 15:27.
-
mkvpropedit "file.mkv" --edit track:32 --set codec-id=S_TEXT/ASS
I wonder if it's worth asking the author to change mkvmerge's behavior. Seems a bit odd to completely reject a file only because a single CODECID is missing. -
Work like a charm, thank you sneaker.
If any one is interested, I drop this track (and reorder audio) with this command using ffmpeg:
ffmpeg -i "test.mkv" -ignore_unknown -map 0:v:0 -map 0:a:1 -map 0:a:0 -map 0:s -map -0:s:27 -map -0:s:28 -c copy "_test.mkv"Last edited by Lokotito; 28th Jan 2020 at 08:45.
-
I ask if this is a issue/bug in the forum of mkvtoolnix, but the response was negative, in resume this field is mandatory and the file is broken, even if a couple of media players open the file normal. Sad and disappointing answer.
-
After a couple of replies / messages in the mkvtoolnix forum, the developers agreed to implement allow reading these type of files without CidecID and "exclude" them in the mkvmerge interface.
Similar Threads
-
.mkv files - edit subs
By puternut in forum SubtitleReplies: 4Last Post: 17th Mar 2022, 17:21 -
Edit video files in HEVC h.265 codec 60fps & to save in original format
By Wilson Lee in forum EditingReplies: 2Last Post: 27th Nov 2018, 04:24 -
How to edit an iso and add more files and recompile
By vitamine in forum ComputerReplies: 3Last Post: 9th Oct 2018, 21:37 -
How to add thumbnail image displayed for MKV files?
By gringott in forum EditingReplies: 4Last Post: 19th Feb 2017, 21:02 -
Is there a codec that will allow the playing of mkv files in Windows 10?
By RBCC in forum Software PlayingReplies: 2Last Post: 16th Apr 2016, 14:47