View Full Version : track names and unicode using MP4Box and mkvmerge
stax76
10th February 2006, 19:23
Is it possible to have track names containg unicode strings like 'русский'. I've tried ':name=русский' with MP4Box and '--track-name "0:русский"' with mkvmerge, using Haali's splitter and Zoom Player I see only '?????????' instead of 'русский'.
bond
10th February 2006, 19:32
mp4box will not correct the language code you used in your cmdl to utf-8, so you will get in the mp4 what you used. the specs require it to be in utf-8 tough
stax76
10th February 2006, 20:01
I'm totally cluless about all this. Is command lines and UTF-8 even possible? Windows has ANSII and UTF-16 functions I think, I just found a good link, I'll likely have a better idea after reading it.
http://www.microsoft.com/globaldev/getWR/steps/wrg_codepage.mspx
bond
10th February 2006, 20:19
via command prompt its possible to use utf-8 but not via batch afaik
we discussed this already in the context of tagging via cmdl. kurtnoise found a way to set a correct utf-8 tag/trackname via his gui
apart from that i think mp4box also allows to use external "trackname" files (in utf-8) iirc
stax76
10th February 2006, 20:47
via command prompt its possible to use utf-8 but not via batch afaik
we discussed this already in the context of tagging via cmdl.
Do you mean that thread were you wrote to enter chcp 65001 in the console? I've tried that with the string posted above without success. I had of course also tried Yamp which did not work either.
bond
10th February 2006, 20:52
yep thats what i meant
stax76
10th February 2006, 21:18
yep thats what i meant
That don't work with unicode strings like 'русский'.
Kurtnoise
11th February 2006, 19:22
I had of course also tried Yamp which did not work either.
what do you mean by "which did not work" ? During the playback or for parsing cmdl ? coz it works fine here...
stax76
11th February 2006, 19:36
I mean Haali + MPC does not display it using MP4 but it works using MKV. How do you see that it works?
Kurtnoise
12th February 2006, 10:16
I mean Haali + MPC does not display it using MP4 but it works using MKV. How do you see that it works?
It's because you didn't use MPC mp4 splitter...;)
By enabling MPC mp4 splitter, you can see your trackname in the properties :
http://kurtnoise.free.fr/mpc_mp4_splitter.gif
Anyway, if you prefer to use Haali's splitter, you have the right trackname in the systray icon (but not in the properties) :
http://kurtnoise.free.fr/haali_systray.png
Hope it helps...
stax76
13th February 2006, 09:52
It's because you didn't use MPC mp4 splitter...
By enabling MPC mp4 splitter, you can see your trackname in the properties :
I did no encoding transformation. It seems that what I have to do is pretty much a hack as UTF-8 is multi byte encoding which has to be passed through UTF-16 API's which is two byte. It is hard to understand why UTF-8 encoding is used while Win32 uses UTF-16. Either I miss something or it seems not possible to create such a file using the shell and it's a pain and a hack doing in from code. In the command line preview of our applications some weird strings appears because of the needed encoding transformation.
When I paste my string in Yamb in the import settings it does not display the string, though it works perfectly. Does it display on your system? What font are you using?
bond
13th February 2006, 11:41
i am not sure but it might be utf-16 is also allowed, check the specs
stax76
13th February 2006, 15:43
i am not sure but it might be utf-16 is also allowed, check the specs
Both should not be possible.
Kurtnoise
13th February 2006, 18:56
When I paste my string in Yamb in the import settings it does not display the string
Useless because strings are converted in UTF8 for import settings. If you want to see a string converted, check the cmdl preview...You can copy & paste what you see in your cmd.exe, it works.
btw, I don't understand your problem with UTF8 vs UTF16.
bond
13th February 2006, 19:17
Both should not be possible.i dont understand what you mean by that!?
anyways i checked the specs myself and there it says about the trackname field:
name is a null-terminated string in UTF-8 characters which gives a human-readable name for the track typeso utf-16 is not an option, only utf-8
robU*4
13th February 2006, 20:53
Null-terminated ? In Matroska no string needs to be null-terminated.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.