Log in

View Full Version : Avisynth Megui - Accept Å Ä Ö


zerowalker
1st July 2014, 20:15
How can i make it accept filenames (Avisource) with Å Ä Ö in it.

I should be possible, as it works in AvsPmod for me without problems, but in Megui and my Media Player it's not able to use them.

Groucho2004
1st July 2014, 21:25
How can i make it accept filenames (Avisource) with Å Ä Ö in it.

I should be possible, as it works in AvsPmod for me without problems, but in Megui and my Media Player it's not able to use them.
You should post this in the megui bug thread since this is not a Avisynth issue.

zerowalker
2nd July 2014, 08:45
Thought it might have to do with how Avisynth handles the Å Ä Ö, but will do just that.

Groucho2004
2nd July 2014, 09:08
Thought it might have to do with how Avisynth handles the Å Ä Ö, but will do just that.
Avisynth handles these characters just fine, be it in the file name or in the script itself.
However, these characters are part of the Windows code page 1252. If your OS is set to another locale (for example CP1250, Eastern European), it most likely won't work.

Kurtnoise
2nd July 2014, 09:47
How can i make it accept filenames (Avisource) with Å Ä Ö in it.

I should be possible, as it works in AvsPmod for me without problems, but in Megui and my Media Player it's not able to use them.
Please, describe what you do through MeGui...

zerowalker
14th July 2014, 18:31
Oh missed some stuff here.

My OS is currently set to English i guess?
I want to have the english language in Windows, even though it's not my main one, but it's rather confusing to have that here.
Location is set to my country though if that matters.

Please, describe what you do through MeGui...

Drag drop the Script, then Auto Encode.

If i remember correctly now, it automatically detects it fine, so the Video and Audio is detected without issues.
But when i am pressing Auto Encode and trying to Queue it, it says something about not being able to find the file "&%¤" at the Å Ä Ö places.

Trying now to get it working with avs264mod, seems to be the same issue there though. It can find the script file (which is the same name as the Avi file), but it can't read the AviSource, so i am confused.

Also pointed it out to Megui in the Bug Tracker, doesn't seem to have any interest at all though.

Update:

Okay my memory played tricks on me, It failed when just detecting it, it sees the file, but fails when reading the script "Avisource(...öåä)".

Same with ZoomPlayer, possibly MPC-HC as well (doesn't render file).

AvsPmod is fine.

Groucho2004
14th July 2014, 21:34
it says something about not being able to find the file "&%¤" at the Å Ä Ö places.
What encoding did you use to save the file? Zip up the script and post it.

zerowalker
14th July 2014, 23:56
What encoding did you use to save the file? Zip up the script and post it.

x264, but it doesn't matter in Megui though.
Or did you mean avs264mod?

I tried 1 pass with stats for doing 2 pass, and just normal bitrate (vbr 1 pass).


Nothing to zip really, it's just:

Avisource("ÖÅÄ.avi")

Doesn't matter as long as any of these characters are in (I think stuff like á é doesn't work either).

Try yourself, just make an Avi with ÖÅÄ as name, and try getting it to work, it it does work then something is wrong at my side.

zerowalker
15th July 2014, 00:07
What encoding did you use to save the file? Zip up the script and post it.

x264, but it doesn't matter in Megui though.
Or did you mean avs264mod?

I tried 1 pass with stats for doing 2 pass, and just normal bitrate (vbr 1 pass).


Nothing to zip really, it's just:

Avisource("ÖÅÄ.avi")

Doesn't matter as long as any of these characters are in (I think stuff like á é doesn't work either).

Try yourself, just make an Avi with ÖÅÄ as name, and try getting it to work, it it does work then something is wrong at my side.

Groucho2004
15th July 2014, 01:15
x264, but it doesn't matter in Megui though.
Or did you mean avs264mod?

I tried 1 pass with stats for doing 2 pass, and just normal bitrate (vbr 1 pass).


Nothing to zip really, it's just:

Avisource("ÖÅÄ.avi")

Doesn't matter as long as any of these characters are in (I think stuff like á é doesn't work either).

Try yourself, just make an Avi with ÖÅÄ as name, and try getting it to work, it it does work then something is wrong at my side.
Oh dear.
By encoding I meant the character set you used to save the script. If you for example use notepad, it would save it as UTF-8 by default which is the wrong encoding.

So, let's try that again - zip (or rar or 7z) the file and upload it somewhere.

zerowalker
15th July 2014, 01:25
Oh, you should have said text encoding;P

But very well, to be honest, no idea, as in this case it was generated through a .Bat file to just write "Avisource("filename.avi"), with the char 65001 activated.

If i open the files in Notepad++, it says UTF-8 without BOM.

So it's probably standard UTF-8, ANSI isn't able to produce those characters.

https://www.sendspace.com/file/77etrn

From my understanding, MeGUI is decoding it as ANSI, as it shows the name, and encoding it to ANSI shows the same results.

Groucho2004
15th July 2014, 01:41
If i open the files in Notepad++, it says UTF-8 without BOM.
Indeed it is, and that's the problem.

ANSI isn't able to produce those characters.
Where did you get that information? The characters you have trouble with are perfectly handled by the Windows Ansi code page 1252.

Convert the script to Ansi and it will work.

zerowalker
15th July 2014, 01:59
Where did you get that information? The characters you have trouble with are perfectly handled by the Windows Ansi code page 1252.

Convert the script to Ansi and it will work.

Ah, we walked past each other.

I meant, telling the decoder "It's ANSI" makes it fail to produce them.

Converting Does work, and it actually let's Megui get it as well as far as i can see:)!!

This is splendid, learned something new!

I am also able to use the Batch to produce text/scripts using ANSI that way with "chcp 1252".

Great, thanks:)