View Full Version : xy-VSFilter Project (High Performance VSFilter Compatible Subtitle Filters)
clsid
3rd November 2020, 18:29
ISR could be made compatible with that as well in future. Or madVR could adjust the colors of the subs itself. Or blend them before it applies LUT.
huhn
3rd November 2020, 18:55
what's wrong with the new interface it works with EVR, mpcVR and madVR?
the new interface has support for HDR subs too(at least on a technical level).
gfxnow
11th November 2020, 07:18
what's wrong with the new interface it works with EVR, mpcVR and madVR?
the new interface has support for HDR subs too(at least on a technical level).
ISR could be made compatible with that as well in future.
:thanks:
🤝🏻
pinterf
6th March 2021, 00:31
Dear all,
I made a new build, took the rc5 branch which was finally vs2019 friendly. I was so happy upon that that I put some effort into implementing new color spaces in the core. (after having my Avisynth filter work again on this new codebase)
https://github.com/pinterf/xy-VSFilter/releases/tag/3.2.0.804
Tested only from Avisynth TextSub filter, as my primary goal was this. Supports native YV16, YV24, and 10 and 16 bit 4:2:2 formats (internally P210 and P216). What ever it does outside Avisynth, I don't know.
Warlock
6th March 2021, 14:01
Dear all,
I made a new build, took the rc5 branch which was finally vs2019 friendly. I was so happy upon that that I put some effort into implementing new color spaces in the core. (after having my Avisynth filter work again on this new codebase)
https://github.com/pinterf/xy-VSFilter/releases/tag/3.2.0.804
Tested only from Avisynth TextSub filter, as my primary goal was this. Supports native YV16, YV24, and 10 and 16 bit 4:2:2 formats (internally P210 and P216). What ever it does outside Avisynth, I don't know.
:thanks:
Sunspark
3rd April 2021, 20:56
Does the possibility exist that a checkbox could be implemented to disallow transparency?
I.e. if one likes all the other pre-defined subtitle fonts, colors, etc. in the file, just not the transparency which shows on subtitle borders, etc.
The benefit of this would be to visually make everything nice and crisp, and potentially might even improve performance slightly as it wouldn't have to blend anything since at that point it would just be an overlay.
kedautinh12
13th April 2021, 00:35
New ver of xy-VSFilter
https://github.com/pinterf/xy-VSFilter
gfxnow
22nd April 2021, 12:05
New ver of xy-VSFilter
https://github.com/pinterf/xy-VSFilter
Is there an official doom9 thread for this new fork of xy by pinterf
GMJCZP
23rd May 2021, 16:02
Hi, I have used the .bat file to install it but I can't use it with Wmp on w7 x86, what should I do?
clsid
24th May 2021, 15:41
Best thing to do is use MPC-HC instead of the terrible WMP.
To use (xy-)VSFilter with WMP you need to do two things:
1) Use Codec Tweak Tool to adjust preferred DirectShow decoders in Windows. The required setting for VSFilter is "Use merit". Anything else will not work.
2a) You need to disable Media Foundation to force WMP to use DirectShow. On Windows 7 that is needed for .mp4/.mov. On Windows 10 it is also needed for .mkv.
2b) Instead of disabling MF, you can also rename your files to an uncommon extension (such as .video). This will bypass the MF codecs. This method is actually preferred, because disabling MF can cause problems with apps/games that need it.
Long story short: don't use WMP.
GMJCZP
24th May 2021, 22:15
Thanks for the bad news :(
It's curious that in the past i used directvobsub in w xp and Now in W7 with a new program I can't easily
GMJCZP
3rd June 2021, 14:20
I was testing VSFilter 3.2.0.806 as a plugin for Avs+ and I noticed that an "é" (third line of subtitles) is showing it to me as an Asian character, if I use version 3.0.0.306 it does show up correctly, here I leave the file of Subtitle :
Here (http://www.filedropper.com/pruebassa)
And this is the script:
textsub("PruebaSSA.ssa")
v0lt
16th July 2021, 14:54
Is it possible to modify the XySubFilter code (c++17) to avoid using boost?
I found the following dependencies:
boost::scoped_ptr
boost::shared_ptr
boost::flyweights
boost::shared_array
boost::dynamic_pointer_cast
Is it possible to modify the XySubFilter code (c++17) to avoid using boost?
I found the following dependencies:
boost::scoped_ptr
boost::shared_ptr
boost::flyweights
boost::shared_array
boost::dynamic_pointer_cast
As far as I know, there is no substitute for flyweight in C++ 's standard library.
nokicheru
17th July 2021, 11:36
Hi! Recently, i've found some mkv files with .ass subtitles that clearly don't work as intended with xySubFilter in MPC-BE and madvr (i've also tried playing them using EVR, no changes). When playing them, I experience huge framedrops, and I can see on the OSD of madVR, that the subtitle queue and all other rendering queues momentarily go to 0 when some new lines come on screen. This mostly happens with scripts with many effects and when a new line comes on to the screen and the problem is isolated to very few files. I have tried playing those files with mpv (which uses libass, i believe) and they worked just fine, no framedrops. I have also tried reinstalling xySubfilter, resetting its' settings and installing the new build recently posted here (https://github.com/pinterf/xy-VSFilter), sadly with no success. Does anyone have any suggestions?
huhn
17th July 2021, 11:50
you can try the option "more" -> "render to original video size" if you are on UHD or QHD.
in general vsfilter has started to fall behind in terms of high res rendering performance.
nokicheru
17th July 2021, 15:46
you can try the option "more" -> "render to original video size" if you are on UHD or QHD.
in general vsfilter has started to fall behind in terms of high res rendering performance.
I actually tried that too, but it weirdly seemed to make almost no difference.
It really seems as if the problem isn't the rendering of the subtitles, but the parsing of some specific effects. I might try to tinker with the subtitle files and try to find if there's any specific effects that mess with xySubfilter.
If anyone wants to try it themselves, I've attached a sample subtitle file that causes the problems that I've described (They start at around second 43). Maybe some of you guys can replicate the problem and figure something out. Would appreciate the help!
clsid
17th July 2021, 17:57
Please use an external file host. It can take a long time before attachments are approved.
Slow rendering can also be due to a font that is used. A couple months ago I discovered that issue for a font called "Splatter". As a fix in MPC-HC internal subtitle renderer, I now use Arial as a replacement when that specific font is used in a style.
The splatter font is the only one so far that is known to me to cause this issue.
nokicheru
17th July 2021, 18:08
Please use an external file host. It can take a long time before attachments are approved.
Slow rendering can also be due to a font that is used. A couple months ago I discovered that issue for a font called "Splatter". As a fix in MPC-HC internal subtitle renderer, I now use Arial as a replacement when that specific font is used in a style.
The splatter font is the only one so far that is known to me to cause this issue.
Thanks for the tip! Here are the files: https://files.catbox.moe/qy6ijn.zip
ikarad
20th July 2021, 21:20
I have found a bug with subtitles.
https://nsa40.casimages.com/img/2021/07/20/mini_21072010344594289.jpg (https://www.casimages.com/i/21072010344594289.jpg.html)
At the left, sub renderer by vlc.
At the right, same problem with mpc-hc sub renderer and xysubfilter
clsid
20th July 2021, 22:51
The bug is in the subtitle itself. It uses a font that does not contain that music note character, nor has a compatible fallback font.
These renderers do not support replacing missing glyphs and it also can not be added easily.
Liisachan
21st July 2021, 03:35
If that's how it is, it's the typesetter's fault. Unfortunately, something like that is not so uncommon...
A quick (possibly ugly) workaround for an XySubFilter user may be "Force Default" in the Main tab of XySubFilter. A pre-set Default font, Arial, does support U+266B ♫. If MPC-HC + Internal sub renderer, then Right-click > Subtitle Tracks > Enable Default. Either way, you may have to tweak the Default style (like font size, or font name if you don't like Arial). Common Windows fonts that support this code point include: Arial & Times New Roman.
A real solution is, editing the subtitle data and changing ♫ to {\fnLucida Console}♫{\fn}, for example. There is another solution using {\p}, directly drawing the glyph; but that's rather complicated and not really softsub-friendly, while more flexible (you can draw any symbols, not even in Unicode).
Liisachan
9th August 2021, 13:40
Even if you enable "Force Default" in the Properties, \r-based user-side styles from SSA/ASS can't be overridden.
Tested: XySubFilter 3.2.0.806 (git) xy-VSFilter.
MPC-BE + Internal subtitle renderer can do this overriding perfectly.
mpc-hc-test.mkv (http://faireal.net/aaa/mpc-hc-test.mkv) (sample, 90KB)
Nabukodonosor
1st October 2021, 23:00
I can't make it work for me for the life of me. I've been using the 2.41.322 with the exe installer and that version works fine. I can select it in MPC-HC and MPC-BE. Also have it in the list in the External filters. But when I use this .bat installer nothing happens, like it's not installed. It even says **not installed** in the Subtitle renderer seletion. What am I duing wrong?!
lvqcl
2nd October 2021, 08:23
From Readme.txt:
Right-click Install_XySubFilter.bat and select "Run as administrator"
Did you do that or simply double clicked the .bat file?
Also, if you use 32-bit player then you need to install 32-bit filter; if you use 64-bit player then you need to install 64-bit filter.
Nabukodonosor
2nd October 2021, 10:18
Right click and Run as admin. I use 64-bit player.
lvqcl
2nd October 2021, 10:29
And what exactly filter do you try to install and use?
Nabukodonosor
2nd October 2021, 11:31
What do you mean? vsFilter.
lvqcl
2nd October 2021, 22:59
version, bitness, where exactly to download,...
alright then, keep your secrets.
Nabukodonosor
3rd October 2021, 11:35
Dude, I've already told you, 64bit, the latest version. Downloaded from the link in the first post of this thread.
nateify
20th November 2021, 19:55
Hello, I have an Avisynth question for VSFilter, I am wondering if it is possible to mask VOBSUB on top of a transparent RGBA clip. I have a very specific use case for it which is to transcode to RGBA cineform from Virtualdub. See this script which works for text based subtitles:
V=LWLibavVideoSource("00000 - 2 - h264, 1080p24.mkv")
MaskSub("subs.ass",V.width,V.height,V.framerate,V.framecount)
FlipVertical()
If I load it in Virtualdub with transparency set to checkerboard, I can verify the alpha works as intended, and the eventual encoded clip is imported into Adobe Premiere Pro where the alpha is also interpreted correctly:
https://i.imgur.com/Jv4Z8Lb.png
However masksub does not work with VOBSUB picture based subs. I thought to simply use the VobSub filter on top of an RGB32 BlankClip however the resulting clip is completely transparent to Vdub, and the resulting encode has no opaque subs in Premiere Pro either. I don't think this is a Vdub bug as I can encoded the AVS file with FFmpeg with Avisynth support and it also ends up being a transparent clip.
V=LWLibavVideoSource("00000 - 2 - h264, 1080p24.mkv")
B=BlankClip(V,pixel_type="RGB32")
VobSub(B,"00000 - 2 - h264, 1080p24_Track04._PGS_exp.sub")
https://i.imgur.com/idRG9vW.png
Is it possible to overlay VOBSUB over a transparent RGB32/RGBA clip to get the same result as MaskSub in Avisynth+ 3.7?
kedautinh12
16th November 2022, 15:00
xy-VSFilter v3.2.0.808
https://github.com/pinterf/xy-VSFilter/releases
Blight
10th January 2024, 16:43
Looks like Ferenc Pintér ported a few fixes:
xy-VSFilter v3.2.0.809
https://github.com/pinterf/xy-VSFilter/releases
gfxnow
11th January 2024, 07:04
Looks like Ferenc Pintér ported a few fixes:
xy-VSFilter v3.2.0.809
https://github.com/pinterf/xy-VSFilter/releases
Thanks, didn't know development still lived on. Love it when the community revives a beloved project.
Is the pinterf fork where we can expect fixes/improvements to live on, ŕ la clsid/MPC-HC?
ashlar42
14th January 2024, 02:01
Looks like Ferenc Pintér ported a few fixes:
xy-VSFilter v3.2.0.809
https://github.com/pinterf/xy-VSFilter/releases
Do these new version save settings under Computer\HKEY_CURRENT_USER\SOFTWARE\Gabest\XySubFilter or somewhere else?
Reason I ask is that I would like to have two different versions of xysubfilter with different settings installed and this might come in handy.
If there is a trick to do the same anyway, I'm all ears.
(I want to have different colors and transparencies for SDR and HDR subtitles... using assfiltermod works but that does not handle PGS subs, which from time to time can be used if I can't find SRTs)
EDIT: tried installing but it saves settings in the usual Gabest location in the registry. So the question becomes, is there any way to change this, in order to have two different xysubfilter installs with separate settings? I suspect the only way is to recompile and I'm far from having a building environment set up on my machines. Apart from not knowing where to edit stuff (although I suspect there shouldn't be too much to edit).
EDIT 2: I know of no other way to have subtitles not blindingly bright in HDR content. If I set them ok for HDR, they are scarcely visible in SDR. I still use Kodi DSPlayer, that needs an external filter for subs.
Blight
21st January 2024, 14:46
Follow up to my post about a new version:
This branch's version of DirectVobSub has a bug that causes stability issues when trying to release some of the interfaces when used with EVR as the video renderer (no issue with the xySubFilter version for MadVR).
gfxnow:
I'm not sure, I was using a xySubFilter v3.2.806 in Zoom Player which was having issues when using EVR (wouldn't connect), I then upgraded to v3.2.809 and it has the bug I just wrote about.
I wrote the maintainer of this Git to see if he's willing to look into it.
huhn
21st January 2024, 21:59
mpc-hc has libass support now in the ISR. the option is hiden under: option subtitles -> default style.
and that should be the way forward for subtitles.
even through it looks like it is currently utterly broken.
edit: don't use a sub picture buffer and it seem to be fine.
amayra
22nd January 2024, 13:28
i remember there fork that use libass as render
gfxnow
23rd January 2024, 08:33
mpc-hc has libass support now in the ISR. the option is hiden under: option subtitles -> default style.
and that should be the way forward for subtitles.
Yes but xySubFilter with MadVR is more than just libass.
pinterf
23rd January 2024, 10:52
Follow up to my post about a new version:
This branch's version of DirectVobSub has a bug that causes stability issues when trying to release some of the interfaces when used with EVR as the video renderer (no issue with the xySubFilter version for MadVR).
gfxnow:
I'm not sure, I was using a xySubFilter v3.2.806 in Zoom Player which was having issues when using EVR (wouldn't connect), I then upgraded to v3.2.809 and it has the bug I just wrote about.
I wrote the maintainer of this Git to see if he's willing to look into it.
I made a fixed test build, 3.2.0.810. If it works for you I'll release it. Thanks. This bug - if this was the bug - existed since 3.2.0.804.
https://drive.google.com/uc?export=download&id=1N5o7vrakFuXDp5LDoKnGFyZWrcW3bB5T
Blight
23rd January 2024, 18:03
I made a fixed test build, 3.2.0.810. If it works for you I'll release it. Thanks. This bug - if this was the bug - existed since 3.2.0.804.
https://drive.google.com/uc?export=download&id=1N5o7vrakFuXDp5LDoKnGFyZWrcW3bB5T
I can confirm this update fixes the random instability issue.
pinterf
23rd January 2024, 20:25
Thanks for testing it. So I released 3.2.0.810.
https://github.com/pinterf/xy-VSFilter/releases
sparkD
16th August 2024, 09:13
I have a simple walkthrough to move external ASS subtitle to black bar (using MPC+Madvr+XySubFilter):
# Settings in MPC
Set Option -> Playback -> Output -> Subtitle Renderer -> XySubfilter
# Settings in MadVR
- Processing -> zoom control -> Move subtitle: to bottom
- If black bars change pick one zoom factor: doesn't lose any image content
- Keep bars visiable : ..forever
# Settings in XySubFilter
More:
Renderer Layout Options: Use AR Adjusted Video Size
Allow video renderer to reposition simple SSA/ASS subtitles (for ass subtitles)
Celio1080p
26th April 2025, 01:30
Hey there guys. Can anyone help me, please?
Ahem.
I have a Ryzen 7 5800X3D
32 GB of RAM.
RTX 3070.
Windows 11 Pro.
Anyway, I'm watching the blu-ray of an anime called Tsurezure Children, and on episode 03..
At 09:23 of the episode, the episode shows many subtittles at same time.. and my video stutters.
How to fix it?
I tried disabling madVR, didn't work.
The problem only was solved when I disabled xyVSFilter. Why?
There is anyway to fix it.. or my PC is too weak to use this filter?
My main player is MPC-BE x64
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.