Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 17th July 2019, 09:42   #1  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 668
VSFilter & xy-VSFilter for VapourSynth

https://github.com/HomeOfVapourSynthEvolution/VSFilter
https://github.com/HomeOfVapourSynth...on/xy-VSFilter
HolyWu is offline   Reply With Quote
Old 17th July 2019, 10:28   #2  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,044
Ah finally xy-vsfilter with vs binaries ( there's also this https://github.com/Tsuki/VapourSynth-XY-VSFilter)

THX
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is online now   Reply With Quote
Old 17th July 2019, 20:37   #3  |  Link
unix
Registered User
 
Join Date: Aug 2015
Posts: 38
Thank you =)
unix is offline   Reply With Quote
Old 20th July 2019, 12:12   #4  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,905
Nice, are there any known pro/contra to use these instead of http://www.vapoursynth.com/doc/plugins/subtext.html ?
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
Old 20th July 2019, 16:28   #5  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 668
Quote:
Originally Posted by Selur View Post
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.
HolyWu is offline   Reply With Quote
Old 20th July 2019, 23:34   #6  |  Link
masterkivat
Registered User
 
Join Date: Dec 2008
Location: Brazil
Posts: 21
this may be a stupid question, but...
Quote:
NameError: name 'vsf' is not defined
Am I doing something wrong?

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

Last edited by masterkivat; 20th July 2019 at 23:57. Reason: figured it out
masterkivat is offline   Reply With Quote
Old 15th September 2019, 05:42   #7  |  Link
masterkivat
Registered User
 
Join Date: Dec 2008
Location: Brazil
Posts: 21
Returning to this topic to ask a real question: I've been doing subs which have kanjis (example - .ass script) and both VSFilter/xy-VSFilter, along with the official subtitle plugin from VapourSynth, can't decode'em...

Quote:
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?

Last edited by masterkivat; 15th September 2019 at 08:40.
masterkivat is offline   Reply With Quote
Old 15th September 2019, 08:07   #8  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 668
Quote:
Originally Posted by masterkivat View Post
Returning to this topic to ask a real question: I've been doing subs which have kanjis (example) 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?
It would be better if you had posted a link to the problematic .ass file rather than to an useless screenshot.
HolyWu is offline   Reply With Quote
Old 15th September 2019, 08:40   #9  |  Link
masterkivat
Registered User
 
Join Date: Dec 2008
Location: Brazil
Posts: 21
Quote:
Originally Posted by HolyWu View Post
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 for the script.
masterkivat is offline   Reply With Quote
Old 15th September 2019, 09:27   #10  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 727
Quote:
Originally Posted by masterkivat View Post
Returning to this topic to ask a real question: I've been doing subs which have kanjis (example - .ass script) 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?
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:
Code:
dec = core.vsf.TextSub(dec, file=r"C:\Users\USER\Desktop\01-op.ass")
- regular string with escaped backslashes
Code:
dec = core.vsf.TextSub(dec, file="C:\\Users\\USER\\Desktop\\01-op.ass")
- regular string with forward slashes
Code:
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.
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 15th September 2019, 20:09   #11  |  Link
masterkivat
Registered User
 
Join Date: Dec 2008
Location: Brazil
Posts: 21
Quote:
Originally Posted by jackoneill View Post
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!
masterkivat is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.