PDA

View Full Version : mkvpropedit and non-standard characters


GuilhermeAraujo
4th February 2010, 00:10
I made this little batch to edit my videos' proprieties:
@echo off
FOR /f "tokens=*" %%G IN ('dir /b') DO (
mkvpropedit.exe "%%G" --edit track:v1 --set name="%%~nG"
mkvpropedit.exe "%%G" --edit track:a1 --set name="Main: AC3 5.1 @ 640 kbps"
mkvpropedit.exe "%%G" --edit track:a2 --set name="Commentary: "AC3 2.0 @ 192 kbps"
mkvpropedit.exe "%%G" --edit track:s1 --set name="English" --set language="eng"
mkvpropedit.exe "%%G" --edit track:s2 --set name="Português" --set language="por"
echo.
)
pause

However, the last line, to name the subtitle as "Português" does not work. It'll name "PortugÛs" instead.
How can I make the program use the right character?

GuilhermeAraujo
5th February 2010, 15:32
Anyone?

jmartinr
5th February 2010, 17:36
"chcp 1252" maybe?

GuilhermeAraujo
5th February 2010, 19:15
Perfect. Now the prompt characters are screwed, but it does exactly what I need. :P
Thanks!

Midzuki
6th February 2010, 01:31
I'm still dreaming of the day when there will be

"no such thing as an 8-bit character set". :devil:

GuilhermeAraujo
7th February 2010, 15:29
One last question, what is the command to set the second subtitle as default?

sneaker_ger
7th February 2010, 16:00
mkvpropedit "file.mkv" --edit track:s1 --set flag-default=0 --edit track:s2 --set flag-default=1

GuilhermeAraujo
7th February 2010, 16:15
Thanks!
Update: just a little correction: --set flag-default="1"

sneaker_ger
7th February 2010, 16:30
Ah, of course. Sorry.

/edit: You don't need the quotation marks, though.