View Full Version : xy-VSFilter Project (High Performance VSFilter Compatible Subtitle Filters)
clsid
28th February 2019, 16:07
Any reason why the vertical padding option is disabled/broken?
It seems to work fine if I re-enable the relevant settings in IDirectVobSubXy.h
Of course it can b0rk accurate ASS positioning, but that is the users choice.
supercoolman
16th June 2019, 19:56
found another weird behaviour. when there are 2 external ASS subs do the following steps and XySubFilter will switch sub on its own
1. pause playback
2. make change or edit XySubFilter's current rendering subtitle
3. resume playback
4. XySubFilter automatically switch to the other subtitle
5. manually selecting the edited subtitle and XySubFilter happily use it without any error/issue
this means there was no error, mistake or issue for the edited subtitle. not sure why XySubFilter would switch the rendering subtitle
zvans18
23rd June 2019, 09:18
Is lag at typesetting just par for the course or is my XySubFilter misconfigured? It even happens with the basic stuff Crunchyroll, and therefore Horriblesubs, has been doing lately.
MPC-BE 1.5.3 x64 + madvr + LAV filters + XySubFilter
kedautinh12
13th December 2019, 01:19
Well, last release (r8942) was 06/09/18, and previous - about 2 years ago.
can you share me link download last release??
krmit
14th December 2019, 00:42
can you share me link download last release??
http://plorkyeran.com/aegisub/
kedautinh12
20th December 2019, 07:10
http://plorkyeran.com/aegisub/
:thanks:
FranceBB
26th December 2019, 18:24
Aegisub 06/09/18 - r8942
- Update to Visual Studio 2017
- Drop Windows XP support
Ah, for God's sake, is it even necessary? Can't XP really be targeted when the code is built with Visual Studio?
lvqcl
26th December 2019, 18:59
Can't XP really be targeted when the code is built with Visual Studio?
"Who knows? More importantly, who cares?" (C)
jpsdr
27th December 2019, 11:15
XP can still be targeted with VS 2017 and 2019 (in deprecated status for this last one), but, it's possible that there is some code, codec/display/etc... interface wich is not XP compatible anymore. So in that case, even if you build targeting XP, it will not make your program XP compatible.
StainlessS
27th December 2019, 12:31
FranceBB, just consider the plugin dead.
kedautinh12
4th January 2020, 10:33
http://plorkyeran.com/aegisub/
i see in last releases, function Automation > Apply Karaoke Template was errored
zerowalker
9th January 2020, 21:20
How do the VS and XY differ, and how do they compare to MPC-HC internal?
In my simple tests the VS seems unstable for some reason and can crash, but it seems to work when XY messes up,
in one case XY shows the wrong subtitle when you jump in the video, it will show the previous (i think) for one subtitle, then when the next one comes it's in sync again.
MPC-HC has issue when jumping where it sometimes doesn't show any subtitles for awhile (i think it's in combination with madvr).
huhn
10th January 2020, 21:20
xy VSfilter renders the subs on the video so the quality can only be as good as the resolution of the video and they are usually sub sampled.
XY subfilter uses a custom API created by madshi these subtitles can be moved independent from the video be rendered at any resolution or color correct you name it.
the ISR in mpc-hc is vs filter based it is rendered on an extra surface just like xy subfilter but missed much of the features if you are using a 3D LUT for color correction it is not applied to the subtitles. it pretty similar to xy VSfilter still slower but not much.
Shark007
15th January 2020, 15:01
The following link contains updated and mostly stable versions of XyVSFilter and XySubFilter in both 32 and 64bit iterations.
Filters (https://www.free-codecs.com/xy-vsfilter_download.htm)
updated on Apr 22th. 2021
zerowalker
17th January 2020, 05:58
xy VSfilter renders the subs on the video so the quality can only be as good as the resolution of the video and they are usually sub sampled.
XY subfilter uses a custom API created by madshi these subtitles can be moved independent from the video be rendered at any resolution or color correct you name it.
the ISR in mpc-hc is vs filter based it is rendered on an extra surface just like xy subfilter but missed much of the features if you are using a 3D LUT for color correction it is not applied to the subtitles. it pretty similar to xy VSfilter still slower but not much.
Ah, odd but mpc-hc seemed faster for me than xy-subfilter in heavy cases, i got framedrops with the latter and took awhile to figure out why.
I haven't touched any settings that i know of either when it comes to the subfilters.
huhn
18th January 2020, 04:44
it's supposed to be faster and i even multiply time reported cases where the ISR couldn't compete.
kedautinh12
21st January 2020, 02:04
The following archive contains updated and mostly stable versions of XyVSFilter and XySubFilter in both 32 and 64bit iterations.
Filters (https://www.mediafire.com/file/nxhwiukpiphx3zg/Filters.7z/file)
can you share me link offical updated of it?
Shark007
21st January 2020, 12:38
can you share me link offical updated of it?
No, I cannot share anything official. I just downloaded them from a publicly available distribution.
I can tell you that the author is a regular reader here and is aware that I posted these filters.
If he wants to share the patches that were applied, thats up to him.
kedautinh12
23rd January 2020, 04:39
No, I cannot share anything official. I just downloaded them from a publicly available distribution.
I can tell you that the author is a regular reader here and is aware that I posted these filters.
If he wants to share the patches that were applied, thats up to him.
I found it, it in folder of k-lite codec pack 😂😂😂😂😂
ryrynz
23rd January 2020, 06:08
Shark007 and the K-lite codec pack? Ya don't say.. :D
doffen
8th June 2020, 21:40
How do you update XySubFilter?
Is it enough to replace the .dll?
Do I need to re-register it afterwards?
Do I need to unregister the old one first?
ryrynz
11th June 2020, 12:00
Is it enough to replace the .dll?
Yes :)
Please Help - Performance XySubFilter.
I have dropped frames with 4K@60Hz and XySubFilter enabled (20-30 Frames/sec dropped)
with ISR(integrated subtitle renderer) i have no dropped frames (mpc-hc and mpc-be).
with XySubFilter the video is playing without droped frames until the first subtitle appears, and after that i have droped frames.
Please Help - Performance XySubFilter.
I have dropped frames with 4K@60Hz and XySubFilter enabled (20-30 Frames/sec dropped)
with ISR(integrated subtitle renderer) i have no dropped frames (mpc-hc and mpc-be).
with XySubFilter the video is playing without droped frames until the first subtitle appears, and after that i have droped frames.
onur, you can try using this build of XySubFilter which uses libass as a backend for ASS/SSA subtitles rendering: link (http://s000.tinyupload.com/?file_id=39439453638784783103).
I've built it based on the code found here:
https://github.com/jesec/xy-VSFilter/tree/cr-libass
The initial spike on rendering subs the first time, as well as subsequent ones are much lower than with the GDI based fonts rendering.
I've only uploaded the 64 bit binaries. Let me know if you need the 32 bit ones.
onur
15th July 2020, 12:39
@KoD
i had to install - Microsoft Visual C++ Redistributable 2015-2019
https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads
But Your Filter has the same Problem.
the problem are not subsequent subs.
after first sub is displayed madvdr is dropping frames - doesn't matter if there are frames or not.
procedure:
Fim starts without dropped frames.
15 seconds later first sub is displayed, now frames get dropped (i could live with that).
Now frames are dropped permanent, even when there are no subs to display.
even when i seek back to start pos i have dropped frames.
i think, MadVR is rendering subs even when nothing is to display (Mixing empty Image).
I can send you a sample file(80MB) with WeTransfer if you want (mail adress with private message).
thanks, onur
huhn
15th July 2020, 22:43
as soon as madVR displays a sub it needs more time to renderer frames. that's why it like to drop frames the first time a sub is show to me this si a bug because it know this for a long time that it has to render the subs soon.
and even if subs are not renderd the shader that take the processing power are still run you can easily see this in the advanced render stats.
but i you didn't check the rendertimes there is no way to proof if this is the same problem.
onur
16th July 2020, 11:55
@huhn
integrated sub filter in mpc-be, mpc-hc have no problems.
when sub has to be rendered it gets rendered, without sub there is no perfomance waste.
XySubFilter or MadVR has a performance waste in that situation - which should be easy to fix.
Stop Rendereing subs when no sub is shown.
clsid
16th July 2020, 14:36
Use the internal sub renderer. There is no reason to use XySubFilter. The performance benefit it used to have long ago is mostly non-existent nowadays.
onur
16th July 2020, 20:31
@clsid, by the way, thanks for keeping mpc-hc alive.
Unfortunately my player has no internal sub renderer. i only test with mpc-hc/mph-be.
and i think i am in the right forum to post problems with XySubFilter.
Is there nobody who can say, yes thats true, XySubFilter or MadVR is wasting performance when there is no subtitle to display.
I am glad that people post answers, but most of them are pointless.
if there is somebody to test, i can send(wetransfer to email) sample file (80MB 4K 59Hz HDR file).
thanks, onur
nussman
16th July 2020, 21:56
@huhn already said „yes thats true“, but its pointless without active development.
If its „easy to fix“ then just do it?
huhn
18th July 2020, 02:17
if i understand it correctly madVR is the issue here.
but we haven't even confirmed if that's the issue here.
the subtitle overhead is around 2 ms or something like that GPU performance doesn't seem to matter here.
onur
19th July 2020, 19:26
@huhn
the subtitle overhead makes a big difference in 4K.
@nussman - MadVR is closed source.
i looked at the XySubFilter Source - and i thing it cannot be fixed in XySubFilter.
huhn
19th July 2020, 19:50
subtitle rendering in it self is a major problem for xy subfilter at uhd but that'S not related to the performance issue with not rendering subtitle and still loosing performance.
onur
19th July 2020, 22:41
@huhn
XySubFilter is setting subtitle to null correctly.
i think the problem is in MadVR - starting a Surface to mix all the Subtitles without recognizing that they got all empty.
TheGameMaster
17th August 2020, 19:14
I don't know what happened, but External subs are not loading using XySubfilter. It works for embedded subs, but not external ones. I am using MPC-BE with LAV, MadVr, and ffdshow tryouts. I've tried installing the "stable" versions of these as well as the newest updated versions, and on different machines. I have XySubfilter set as the subfilter in MPC-BE, and have it loading in External filters (along with the others), and disabled all the filters built into MPC-BE. So I am not sure why it won't load external subs. I check the directory setting, etc. I'm at a loss. I have to switch between XySubfilter to the internal MPC-BE filter in order to watch something with external subs. Any ideas?
huhn
17th August 2020, 19:31
my first idea would be to disable ffdshow.
TheGameMaster
17th August 2020, 20:32
I only use ffdshow tryouts for audio decoding and post-processing. It has nothing to do with video. Lav audio has opus, alac, and tak that ffdshow does not have. I disable the rest in lav audio. Lav audio, if using opus for example, will then send the output pcm to ffdshow processor before being send to "anyfilter" which goes to directshow windows atmos for home theater. ffdshow decoder will send raw formats directly to the receiver, except those that can't be decoded on the receiver (AAC primarily), which then are sent to "anyfilter" by default, which converts to pcm and goes over the ffdshow processor. You can set it to go to "DirectShow" instead of "anyfilter" and bypass ffdshow processor and send it to windows atoms for home theater directly. That is how I had it set. When I switched it back to "anyfilter", the subs came back. Weird. Not sure why that is, since it has nothing to do with video. I must have something to do with how the directshow filters stack?
clsid
17th August 2020, 23:40
You may need to add XySubFilterAutoLoader to the external filters list in MPC-BE and increase its merit.
amayra
18th August 2020, 11:13
why this is not dead yet ?
clsid
18th August 2020, 21:45
Because apparently there are lots of online tutorials written by dumb people that recommend it :(
huhn
19th August 2020, 00:24
you know a better alternative?
ryrynz
19th August 2020, 04:41
Probably not. Also aren't internal subtitle renderers for HC/BE & clones mostly based off this anyway? [emoji23]
huhn
19th August 2020, 06:49
they both are based on vsfilter but performance differences become less and less over the years but there are very simple things where xy subfilter is simple unchallenged at AFAIK that's the "that's the new subtitle interface" and things you can only do with it like calibration.
ryrynz
19th August 2020, 10:02
Doesn't seem to dumb to be recommended it, especially if used with MadVR. I think the only real issue is its not supported or in active development. Maybe another project clsid can keep alive? [emoji23]
clsid
19th August 2020, 10:21
The XY stuff is based on ISR/VSFilter, not the other way around. The new interface is just a way to mimic the main benefit of ISR compared to VSFilter, which is processing subs separately instead of having a filter in between the video decoder and renderer. That means no issues with DXVA, and no limitations regarding rendering resolution.
These modified filters used to be faster than ISR many years ago, but that difference is insignificant nowadays due to improvements in ISR.
@huhn, what do you mean with calibration? The matrix/level options? If you have any examples where ISR needs adjustment, then maybe similar options can be added for that.
@ryrynz, I saw several people lately who had performance issues with XySubFilter and madVR, that disappeared when switching to ISR. So the assumption that madVR likes XySubFilter better is wrong.
huhn
19th August 2020, 15:34
i'm talking 3D LUTs gamma correction and such these are only properly doable with the new interface AFAIK.
ISR and XY subfilter performance issue come mostly from the rendering resolution by default ISR isn't doing 4K but xy subfilter is and vsfilter is terrible for high resolution.
clsid
19th August 2020, 16:13
That is also doable with ISR.
ISR can render at 4k resolution. It defaults to the displayed video size. It also has an option to maximize the texture size to a specified resolution if desired for performance reasons.
MPC-HC ISR might even get an option to use libass for rendering. Code for that is nearly ready.
huhn
19th August 2020, 16:42
trust me you don't want to render ass subtitles at 4K pretty much ever.
even libass has serious issues with it. it was not a complain that ISR isn't rendering at 4K by default is a great feature and i would actually say render at a "low" resolution just to prevent issues is a good thing 1080p should be fine.
i'm personally switching between xy subfilter and assfilter mod. and as long as the ISR isn't using the new subtitle interface i can't switch i would be better of with xy vsfilter. i'm soon going to switch to bt 2020 gamut mapping 3D LUT calibration. without color corrected subtitles the image will be unusable.
just for tone mapping you will need the new interface. it's not an issue yet but HDR "will" show up with ASS subs and the new interface can handle this already.
gfxnow
3rd November 2020, 10:38
as long as the ISR isn't using the new subtitle interface i can't switch i would be better of with xy vsfilter.
Based on clsid's post below, isn't the "new interface" basically the ISR way of doing subtitles?
The new interface is just a way to mimic the main benefit of ISR compared to VSFilter, which is processing subs separately instead of having a filter in between the video decoder and renderer. That means no issues with DXVA, and no limitations regarding rendering resolution.
huhn
3rd November 2020, 18:14
generally yes but not for the case of 3D LUT calibration.
madVR needs to be charge of the subtitles or it can't touch them.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.