Log in

View Full Version : VSFilter & xy-VSFilter for VapourSynth


HolyWu
17th July 2019, 08:42
https://github.com/HomeOfVapourSynthEvolution/VSFilter
https://github.com/HomeOfVapourSynthEvolution/xy-VSFilter

ChaosKing
17th July 2019, 09:28
Ah finally xy-vsfilter with vs binaries ( there's also this https://github.com/Tsuki/VapourSynth-XY-VSFilter)

THX :)

unix
17th July 2019, 19:37
Thank you =)

Selur
20th July 2019, 11:12
Nice, are there any known pro/contra to use these instead of http://www.vapoursynth.com/doc/plugins/subtext.html ?

HolyWu
20th July 2019, 15:28
Nice, are there any known pro/contra to use these instead of http://www.vapoursynth.com/doc/plugins/subtext.html ?

I have no idea. I barely know that the representation of typesetting may differ between libass and vsfilter. Some fansubbers seem to prefer the representation of vsfilter than libass.

masterkivat
20th July 2019, 22:34
this may be a stupid question, but...
NameError: name 'vsf' is not defined
Am I doing something wrong? :confused::helpful:

EDIT: hmmm I find out why wasn't working, forgot to put "core" before the main string -___-

masterkivat
15th September 2019, 04:42
Returning to this topic to ask a real question: I've been doing subs which have kanjis (example (https://puu.sh/Ehl2u/a2dc0ab041.png) - .ass script (https://puu.sh/Ehodb/ad552406a3.ass)) and both VSFilter/xy-VSFilter, along with the official subtitle plugin from VapourSynth, can't decode'em...

Failed to evaluate the script:
Python exception: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape (C:/Users/GuSTaVauM/Desktop/test_vpy.py, line 14)

Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1943, in vapoursynth.vpy_evaluateScript
File "C:/Users/USER/Desktop/test_vpy.py", line 14
dec = core.vsf.TextSub(dec, file="C:\Users\USER\Desktop\01-op.ass")
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
...am I doing something wrong or it can't really "decode" kanjis? :confused:

HolyWu
15th September 2019, 07:07
Returning to this topic to ask a real question: I've been doing subs which have kanjis (example (https://puu.sh/Ehl2u/a2dc0ab041.png)) and both VSFilter/xy-VSFilter, along with the official subtitle plugin from VapourSynth, can't decode'em...

...am I doing something wrong or it can't really "decode" kanjis? :confused:

It would be better if you had posted a link to the problematic .ass file rather than to an useless screenshot.

masterkivat
15th September 2019, 07:40
It would be better if you had posted a link to the problematic .ass file rather than to an useless screenshot.
I edited the post, but here's the link (https://puu.sh/Ehodb/ad552406a3.ass) for the script.

jackoneill
15th September 2019, 08:27
Returning to this topic to ask a real question: I've been doing subs which have kanjis (example (https://puu.sh/Ehl2u/a2dc0ab041.png) - .ass script (https://puu.sh/Ehodb/ad552406a3.ass)) and both VSFilter/xy-VSFilter, along with the official subtitle plugin from VapourSynth, can't decode'em...


...am I doing something wrong or it can't really "decode" kanjis? :confused:

That problem is in your Python script. You need to use one of these:

- raw string where the backslash character is just another character with no special meaning:

dec = core.vsf.TextSub(dec, file=r"C:\Users\USER\Desktop\01-op.ass")


- regular string with escaped backslashes

dec = core.vsf.TextSub(dec, file="C:\\Users\\USER\\Desktop\\01-op.ass")


- regular string with forward slashes

dec = core.vsf.TextSub(dec, file="C:/Users/USER/Desktop/01-op.ass")


Because in regular strings the backslash is used to insert special characters like \n (new line), etc. and apparently Unicode stuff with \U.

masterkivat
15th September 2019, 19:09
That problem is in your Python script. You need to use one of these:

...

Because in regular strings the backslash is used to insert special characters like \n (new line), etc. and apparently Unicode stuff with \U.
...damn, it worked now. I'll keep those strings in mind, thank you very much! :thanks: