-->>Setup and usage<<--          
Archived posts
Xanashi Wrote: This is the output you'll get when the script can't find a track of that name.

For example, if your file contained an additional cover.jpg, that attachment
would be removed, but the script would still tell you that no attachment
named cover.png matched the spec, because the file only contained a
.jpg cover, not a .png cover.

If you had thrown in a file that didn't contain any cover to begin with,
the script would give you two warnings instead, i.e.:

Warning: No attachment matched the spec 'name:cover.jpg'
Warning: No attachment matched the spec 'name:cover.png'

Could you please try dropping one of the files, that doesn't work with the script, into mkvmerge,
and check what attachments that file contains, via the 'Attachments' tab.

The file is showing "cover.png," and that's it. When I used the tool on this again (haven't touched this file's cover art for months), it altered the thumbnail but it didn't change to the cover art I placed, it just made the thumbnail self-generate from the video itself, as a regular thumbnail would do. If I try to change it again with the same image, nothing happens.

Also... The cover art I was trying to mux it with was a .jpg, and not the .png the 'Attached Files' list is showing in Merge for the file. :/
I went back and tried the same with a .png instead of a jpeg, and still not working.

Here's the output of the script, btw:

Code:
The file is being analyzed.
Warning: No attachment matched the spec 'name:cover.jpg'.
The changes are written to the file.
Done.
The file is being analyzed.
The changes are written to the file.
Done.
The file is being analyzed.
The changes are written to the file.
Done.
Cover Added Successfully!
Press any key to continue . . .

And, here's the script I'm using:

Code:
@echo off

for %%i in (%*) do (
if /I %%~xi==.mkv SET mkvfile=%%~i
if /I %%~xi==.jpg SET coverfile=%%~i & SET coverExt=%%~xi
if /I %%~xi==.png SET coverfile=%%~i & SET coverExt=%%~xi
if /I %%~xi==.ico SET coverfile=%%~i & SET coverExt=%%~xi
)

IF "%mkvfile%"   == "" goto :filemissing
IF "%coverfile%" == "" goto :filemissing

mkvpropedit.exe "%mkvfile%" --delete-attachment name:cover.jpg
mkvpropedit.exe "%mkvfile%" --delete-attachment name:cover.png
mkvpropedit.exe "%mkvfile%" --attachment-name cover%coverExt% --add-attachment "%coverfile%"

Echo Cover Added Successfully!


Pause & goto :eof

:filemissing
Echo One or both files are missing or in a wrong format. & pause & goto :eof

exit

Though, I did insert this before the "Pause & goto :eof" :

Code:
ping 1.1.1.1 -n 1 -w 150

exit

But I remove this line of code when testing (not that it would matter)
This thread is locked.

Please start a new thread in the main Icaros forum.




Users browsing this thread: 3 Guest(s)