Unicode – AvisyNTh does not support UTF-8 source files

I use avisynth to separate the video from the audio.
When I use it

x = "m.mkv "
ffvideosource(x)

It works fine, but when I change my video file name to UTF-8 and my script:

x = "م.mkv"
ffvideosource(x)

I received the following error:
Unable to open hash avisynth

I found one The link (UTF-8 source files are not supported) tells that UTF-8 file names cannot work in avisynth. To solve the problem, it says:

specify the parameter utf8=true when calling ffvideosource, save the script as UTF-8 without BOM and then see if that works.

However, I cannot solve the problem. When I open the script in Notepad and When saving in utf-8 format, I receive the following error:

UTF-8 Source files are not supported, re-save script with ANSI encoding

How to solve the problem, how to run the script with UTF-8 file name?

A very common problem when using UTF-8 in AviSynth.

Follow these steps:

1) Check the plugins folder. The following three files should exist: ffms2.dll, ffmsindex.exe and FFMS2.avsi. If you have no ANSI problem, I miss you There is no FFMS2.avsi in the plug-in folder; in this case, please download the latest version of the form here.

2) Then make an AVS file with Notepad. For example, I do:

p>

x = "C:/Users/Nemat/Desktop/StackOverFlow/نعمت.mkv"
ffmpegsource2(x,utf8=true)

Please Note that I used ffmpegsource2() here.

3) In the Encoding menu of Notepadd, select UTF-8 encoding without BOM.

4) Save the file.

3) p>

5) Check whether there is a video file in the target directory.

6) Double-click the AVS file.

7) Enjoy it!

I use avisynth to separate the video from the audio.
When I use it

x = "m.mkv"
ffvideosource(x)

It works fine, but when I change my video file name to UTF-8 and my script:

x = "م.mkv"
ffvideosource(x)

I received the following error:
Unable to open hash avisynth

I found a link (UTF-8 source files are not supported) telling that UTF-8 file names cannot work in avisynth. To solve the problem, it says:

specify the parameter utf8=true when calling ffvideosource, save the script as UTF-8 without BOM and then see if that works.

However, I cannot solve the problem. When I am in Notepad When opening the script in UTF-8 and saving it in utf-8 format, I receive the following error:

UTF-8 Source files are not supported, re-save script with ANSI encoding

How to solve the problem, how to run the script with UTF-8 file name?

A very common problem when using UTF-8 in AviSynth.

Follow these steps:

< p>1) Check the plugins folder. The following three files should exist: ffms2.dll, ffmsindex.exe and FFMS2.avsi. If you have no ANSI problem, I think your plugin folder does not have FFMS2.avsi; here In this case, please download the latest version of the form here.

2) Then use Notepad to make an AVS file. For example, I do this:

 x = "C:/Users/Nemat/Desktop/StackOverFlow/نعمت.mkv"
ffmpegsource2(x,utf8=true)

Please note that I used ffmpegsource2() here.

3) In the Encoding menu of Notepadd, select UTF-8 encoding without BOM.

4) Save the file.

5) Check whether the target directory is There is a video file.

6) Double-click the AVS file.

7) Enjoy it!

Leave a Comment

Your email address will not be published.