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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 17th July 2019, 08:42   #1  |  Link
HolyWu
Registered User
 
Join Date: Aug 2006
Location: Taiwan
Posts: 392
VSFilter & xy-VSFilter for VapourSynth

https://github.com/HomeOfVapourSynthEvolution/VSFilter
https://github.com/HomeOfVapourSynth...on/xy-VSFilter
HolyWu is offline  
Old 17th July 2019, 09:28   #2  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
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
ChaosKing is offline  
Old 17th July 2019, 19:37   #3  |  Link
unix
Registered User
 
Join Date: Aug 2015
Posts: 47
Thank you =)
unix is offline  
Old 20th July 2019, 11:12   #4  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
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
Selur is offline  
Old 20th July 2019, 15:28   #5  |  Link
HolyWu
Registered User
 
Join Date: Aug 2006
Location: Taiwan
Posts: 392
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  
Old 20th July 2019, 22:34   #6  |  Link
masterkivat
変身!
 
masterkivat's Avatar
 
Join Date: Dec 2008
Location: Brazil
Posts: 38
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 22:57. Reason: figured it out
masterkivat is offline  
Old 15th September 2019, 04:42   #7  |  Link
masterkivat
変身!
 
masterkivat's Avatar
 
Join Date: Dec 2008
Location: Brazil
Posts: 38
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 07:40.
masterkivat is offline  
Old 15th September 2019, 07:07   #8  |  Link
HolyWu
Registered User
 
Join Date: Aug 2006
Location: Taiwan
Posts: 392
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  
Old 15th September 2019, 07:40   #9  |  Link
masterkivat
変身!
 
masterkivat's Avatar
 
Join Date: Dec 2008
Location: Brazil
Posts: 38
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  
Old 15th September 2019, 08:27   #10  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
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  
Old 15th September 2019, 19:09   #11  |  Link
masterkivat
変身!
 
masterkivat's Avatar
 
Join Date: Dec 2008
Location: Brazil
Posts: 38
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  
Closed Thread

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 20:00.


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