AkarinVS / L-SMASH-Works

Works based on L-SMASH project; This repo focuses on the common portion and the VapourSynth plugin. AviSynth users please use https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works. ffmpeg 5.0+ please use ffmpeg-4.5 branch.
47 stars 11 forks source link

Support for unicode filepaths #13

Closed Ryuukishi closed 2 years ago

Ryuukishi commented 2 years ago

Trying to open a file with Japanese characters in its filepath returns vapoursynth.Error: lsmas: failed to open file. Unicode filenames should be supported by VS and ffms2 opens it fine without any problems.

AkarinVS commented 2 years ago

Are you using utf-8 to encode your vpy script? lsmas should handle utf-8 paths just fine (but not local multibyte encodings)

(Just verified that lsmas.LWLibavSource can open a file with Japanese characters in the name on Windows.)

Ryuukishi commented 2 years ago

Yeah, I have no idea why it isn't working. I tested it on another machine and it ran fine. Sorry for the trouble.