Log in

View Full Version : xy-VSFilter Project (High Performance VSFilter Compatible Subtitle Filters)


Pages : 1 2 3 4 [5] 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

TheShadowRunner
13th August 2013, 20:50
Okay, so you just want to be able to set a constant (relative) font size under Styles for SRT subtitles, so you do not need to change it on videos of different resolution? Someone requested a function like this for SRT subtitles earlier in the thread, and we are considering it.
It was me, thanks for considering it!

cyberbeing
13th August 2013, 21:10
It would probably help if you added an entry to our issue tracker (http://code.google.com/p/xy-vsfilter/issues/entry) we don't forgot about it. Our developer never checks this Doom9 thread, so any issues or feature requests left here and not on our GoogleCode project page risk being forgotten about or neglected in terms of allocated development time.

Iorek
14th August 2013, 03:56
Hello, I'm getting seemingly random MadVR crashes with PotPlayer + madVR + XySubFilter. The crash report seems to indicate that it's a conflict with XySubFilter.

Crash report #1: http://pastebin.com/Ssy2a04C
Crash report #2: http://pastebin.com/xAwrDnMm

I've setup my player using this guide: http://bit.ly/kGMJTO

I can't replicate any of the crashes... it's 100% random. It's happened on different files at different times and doesn't repeat.

cyberbeing
14th August 2013, 04:43
@Iorek

madVR crash reports aren't very useful without the Debug Symbols present. Download the XySubFilter Debug Symbols (http://xy-vsfilter.googlecode.com/files/XySubFilter_3.1.0.546_Debug_Symbols.7z) and place the PDB in the same directory as XySubFilter.dll . After you do that, please post your next madVR crash report here.

Currently, the only crash with Beta which we are aware of is Issue #153 (http://code.google.com/p/xy-vsfilter/issues/detail?id=153), which only occurred at certain window sizes because of a bug in our combine bitmap function. Were you using windowed playback when these crashes occurred? Otherwise, any details you can provide about settings, subtitle format, fullscreen/windowed, play or pause, if it was soon after opening a new file, embedded or external subs, XySubFilter only installed or xy-VSFilter as well, filters shown under the PotPlayer filters context menu, and so on when crash occurred would be useful.

Iorek
14th August 2013, 12:53
@Iorek

madVR crash reports aren't very useful without the Debug Symbols present. Download the XySubFilter Debug Symbols (http://xy-vsfilter.googlecode.com/files/XySubFilter_3.1.0.546_Debug_Symbols.7z) and place the PDB in the same directory as XySubFilter.dll . After you do that, please post your next madVR crash report here.

Currently, the only crash with Beta which we are aware of is Issue #153 (http://code.google.com/p/xy-vsfilter/issues/detail?id=153), which only occurred at certain window sizes because of a bug in our combine bitmap function. Were you using windowed playback when these crashes occurred? Otherwise, any details you can provide about settings, subtitle format, fullscreen/windowed, play or pause, if it was soon after opening a new file, embedded or external subs, XySubFilter only installed or xy-VSFilter as well, filters shown under the PotPlayer filters context menu, and so on when crash occurred would be useful.

Thanks for the info. No, PotPlayer was fullscreen @ 1080p when the crashes occur. I've placed the .pdb file and will provide as much info as possible along with the crash report the next time it happens. Thanks!

sk4zzy
14th August 2013, 13:37
Hello guys, I have been using the xysub for over a week now, and the first thing I miss from the old sub renderer is the subtitle sync with the hotkeys during playback (F1,F2) and last, and most importantly for my usage scenario, a little setting that made all the difference - Default Style subtitle placement below the video frame (in the black bar).
That was possible with VobSub and the internal MPC-HC font default styles, but with the current state of XySub that option (http://i6.minus.com/ifj5s27xIBRZe.jpg) was left out.
Does anyone know an alternative to solving this problem?

cyberbeing
14th August 2013, 14:36
subtitle sync with the hotkeys during playback (F1,F2) and last

See my post from the other day.
MPC-BE nightly builds (http://sourceforge.net/projects/mpcbe/files/MPC-BE/Nightly%20Builds%20%28from%20svn%20trunk%29/) from the past couple weeks support using the default F1/F2 hotkeys with XySubFilter.

Otherwise, you'd need to ask your media player of choice to support this via the IDirectVobSub interface.

and most importantly for my usage scenario, a little setting that made all the difference - Default Style subtitle placement below the video frame (in the black bar).
That was possible with VobSub and the internal MPC-HC font default styles, but with the current state of XySub that option (http://i6.minus.com/ifj5s27xIBRZe.jpg) was left out.
Does anyone know an alternative to solving this problem?

This is not a XySubFilter (Subtitle Provider) limitation, but rather a madVR (Subtitle Consumer) limitation. madVR (Subtitle Consumer) does not yet support black bar rendering below the video frame when using the new subtitle interface. Last time I asked madshi, it sounded like it would require a quite a bit of work because of technical issues specific to madVR rendering, so I'm unsure when he'll get around to it. I suspect that once MPC-HC finishes their Subtitle Consumer for XySubFilter it will support this. All we can do is wait.

sk4zzy
14th August 2013, 14:56
Thanks a lot for your answers cyberbeing.

mandarinka
15th August 2013, 23:26
BTW, do you intend to implement black bars rendering even for ASS subs?

(Those usually have given positioning, but perhaps it could be done for dialogue subtitles that only use implicit placement (\an2) and as such it can probably be assumed that they can be moved to the black area. Subtitles with explicit alignment would need to stay matched with the actual image area though...)

cyberbeing
16th August 2013, 00:45
BTW, do you intend to implement black bars rendering even for ASS subs?

Yes, we already implemented black bar rendering support for ASS subtitles a few weeks ago. Basic details of this initial implementation are below, but no way to test it without a Subtitle Consumer which supports black bar rendering:

Finished initial implementation of ASS black bar support, but no way to test it yet. The moving would be operated every subtitle line. I've defined a "hard positioning level" range of 0 to 2 for each ASS tag. Subtitle lines would not be moved if it contains a ASS tag which has a "hard positioning level" higher than certain threshold. That threshold would default to 0. It can be -1 which means move if only there's no ASS commands.

This is the ASS tag hard positioning level table:

1c NONE;
2c NONE;
3c NONE;
4c NONE;
1a NONE;
2a NONE;
3a NONE;
4a NONE;
alpha NONE;
an NONE;
a NONE;
blur NONE;
bord NONE;
be NONE;
b NONE;

clip HARD;
iclip HARD;

c NONE;
fade NONE;
fad NONE;

fax SOFT;
fay SOFT;

fe NONE;
fn NONE;

frx SOFT;
fry SOFT;
frz SOFT;
fr SOFT;
fscx SOFT;
fscy SOFT;
fsc SOFT;
fsp SOFT;
fs SOFT;

i NONE;

kt SOFT;
kf SOFT;
K SOFT;
ko SOFT;
k SOFT;

move HARD;
org HARD;
pbo HARD;
pos HARD;
p HARD;

q NONE;
r NONE;
shad NONE;
s NONE;
t NONE;
u NONE;
xbord NONE;
xshad NONE;
ybord NONE;
yshad NONE;

mandarinka
17th August 2013, 11:03
Ah. Thanks for the info.

Iorek
18th August 2013, 20:27
Thanks for the info. No, PotPlayer was fullscreen @ 1080p when the crashes occur. I've placed the .pdb file and will provide as much info as possible along with the crash report the next time it happens. Thanks!

I've discovered a repeatable crash. It happens in this file (http://www.nyaa.se/?page=view&tid=407791) at 03:34 when the screen zooms in on the tablet. I'm assuming this is a result of the translated text higher in the picture. Now that I think about it, it's possible that some or all of my crashes occured under similar circumstances.

Anyway here is the crash report: http://pastebin.com/HKUvyLNL

One thing worth noting is that this only happens when the video is fullscreen (Happens both with or without MadVR's exclusive fullscreen option). Filters in use are: LAV Splitter Source, LAV Video Decoder, Madshi Video Renderer, XySubFilter, LAV Audio Decoder, and DirectSound Audio Renderer. Subtitle type is embedded Text/ASS.

The video also crashes in the same spot when using DirectVobSub, but there's no crash report. Does this mean it's a problem elsewhere?

Thanks.

cyberbeing
19th August 2013, 17:45
Since that crash report points to:
malloc.c.malloc (XySubFilter.dll)

And all your logs show:
allocated memory : 1.45 GB
largest free block : 10.76 MB

It seems this is likely an out-of-memory crash from reaching the 32-bit 2GB process limitation in PotPlayer. Unlike MPC-HC & MPC-BE, it doesn't appear that PotPlayer has LargeAddressAware enabled.


MPC-HC:
allocated memory : 1.63 GB
largest free block : 1.64 GB
No crash, but performs poorly.


PotPlayerMini edited to enable LargeAddressAware:
allocated memory : 1.43 GB
largest free block : 1.95 GB
PotPlayer (LAA enabled) + XySubFilter actually seems to perform considerably better than with MPC-HC on this sample.

Until we look into it, it's hard to say if this say if the sudden +1GB RAM usage by XySubFilter @1080p is working-as-intended or not for that typesetting effect. It is a problem if we are running out of memory though.

ryrynz
20th August 2013, 07:24
Just wondering if anyone else has experienced subtitles staying stuck on the screen? I was using xySubfilter with MadVR.

michkrol
20th August 2013, 21:26
Just wondering if anyone else has experienced subtitles staying stuck on the screen? I was using xySubfilter with MadVR.

Not happening here.

A sample file and more info, like your system specs (CPU, GPU), operating system, player, whether you're playing it full-screen or windowed, using software or hardware decoding (DXVA-native/-copyback / CUVID / QuickSync) might be useful for investigating this.

ryrynz
21st August 2013, 00:06
Not happening here.

A sample file and more info, like your system specs (CPU, GPU), operating system, player, whether you're playing it full-screen or windowed, using software or hardware decoding (DXVA-native/-copyback / CUVID / QuickSync) might be useful for investigating this.

I know. I'm not investigating it, too time consuming. I'm just asking the question.

agustin9
22nd August 2013, 03:53
I'm experiencing high dpc latency when madvr is in Fullscreen Exclusive Mode. Anyone else having this problem?

EDIT: Sorry, I'm not sure it's because of this filter

cyberbeing
22nd August 2013, 05:10
AMD/ATI cards in general have been known to have DPC latency issues with madVR depending on settings. If you have an NVIDIA card, no idea. Try setting both the madVR GPU Queue & Fullscreen Exclusive "Present frames in advance" to 6. This isn't an XySubFilter issue though, so if this doesn't resolve your DPC issue, you should move further discussion to the madVR thread (http://forum.doom9.org/showthread.php?t=146228).

agustin9
22nd August 2013, 05:19
No, you're right, this is and amd/ati issue. Higher queues make higher the latency for me. I guess the subtitle queue in madvr using the filter makes the problem worse. Thanks for the quick response.

octal9
20th September 2013, 14:28
thanks for all your great work on xysubfilter! love being able to edit fonts/styles/etc. on the fly to make subs look however i want and the subtitles are beyond flawless image-wise - i have a very old/slow pc and the rendering speed is nearly (if not just as) fast as xy-vs.....i was wondering if it is possible to add additional fonts to the sub filter? would love to see this feature if it is not currently available, and if it is, how would i do it?

michkrol
20th September 2013, 21:28
...i was wondering if it is possible to add additional fonts to the sub filter? would love to see this feature if it is not currently available, and if it is, how would i do it?

You can use all the fonts installed in your system.
In summary: get any TrueType Font (*.ttf), right-click it, select install, you're done. Keep in mind having to many (hundreds?) of fonts installed can and will slow down your system and some programs (word processors, etc).

You can attach fonts to video files in Matroska (*.mkv) format, to use them with given video on other systems without installing additional fonts. To do this use MKVToolnix. You can also extract fonts from such files using MKVExtractGUI-2.
Other apps can do this too, but those two are proven and available for free.

octal9
21st September 2013, 10:08
thanks kindly to michkrol - works like a charm!

BatmanInTheBatCave
1st October 2013, 13:18
Is it possible or planned for XySubFilter to work with the MPC-HC subtitle downloader?

the_weirdo
1st October 2013, 15:34
Is it possible or planned for XySubFilter to work with the MPC-HC subtitle downloader?

Because XySubFilter has already worked fine with MPC-BE subtitle downloader, I think you should ask MPC-HC developers about supporting that feature in their player too.

bugmen0t
1st October 2013, 19:58
how to screenshot with subtitle using XySubFilter?

it's only work on xy-VSfilter

sneaker_ger
1st October 2013, 20:05
Unless you're working with a screen capture program the consumer (e.g. madVR/MPC-HC combo) is responsible for that:
http://forum.doom9.org/showpost.php?p=1638448&postcount=19730

bugmen0t
1st October 2013, 20:38
the 2nd option working here, but i'm little bit anxious with "(note that this is a lower-quality option similar in appearance to VSFilter.dll RGB output)" :rolleyes:

btw, thanks for reply

Tornado15550
11th October 2013, 18:58
The MPC-HC Dev Team has released a test build (https://github.com/mpc-hc/mpc-hc/pull/114) of MPC-HC that adds support for XySubFilter to the VMR-9 and EVR-CP video renderers, so that you can use it without installing MadVR. Feel free to test it out and provide feedback!

LDD9O
15th October 2013, 23:09
Will VS/Sub filter ever support "Subresync" (View > Subresync or Ctrl+6)?

the_weirdo
20th October 2013, 16:04
Can XySubFilter change to automatically deal with ASS subtitles of anamorphic videos? Because as you may aware of, there're subtitles that try to adapt to MPC-HC ISR behaviour while other subtitles are designed based on the way VSFilter rendering subtitles on anamorphic videos. I know I can switch Renderer Layout Options to appropriate method for each kind of subtitles, but it's a litle inconvenient so I hope there's a way to do that automatically.

THX-UltraII
28th October 2013, 12:59
Hi guys,

I m using external .srt subtitles for all my content because I can move external subtitles (embedded subtitles cannot be moved).

However, it the subtitle options in MPC-BE does not have what I am looking for. What I want/need are keyboard shortcuts that takes care of moving subtitles UP and another keyboard shortcut that moves the external subtitles DOWN. Even if this WOULD work in MPC-BE, there still seems to be a bug: when you change the subtitle postion in the menu of MPC-BE you have to refresh the subtitles before it actaully moves UP or DOWN.

In a recent topic I started (http://forum.doom9.org/showthread.php?t=169585) someone told me that PotPlayer has what I am looking for but I m using some exclusive MPC-BE features so would like to keep using that one.

I also got a reply that I could ask here to see of VSFilter can do what I want. Can someone tell me if VSFilter has got what I m looking for? What would be even greater is that I can make 3 or 4 pre-set 'custom subtitle positions'. If I can make shotcuts for these custom predifined positions I could assign these to my Logitech Harmony Remote. But simply moving them up and down keyboard shortcuts would be a good thing to start with.

THX-UltraII
5th November 2013, 08:45
No ideas anyone?

octal9
10th November 2013, 12:15
recently switched over to windows 7 64-bit from windows xp 32-bit - one of the things i like best about xysubfilter is the ability to edit font style, size, etc. on the fly - however, now that i switched os, every time i try to apply font changes, mpc-be or mpc-hc freezes and i have to force quit the program.........any ideas how to solve this?

MistahBonzai
11th November 2013, 05:55
I almost never utilize subtitles however I had a chunk of spare time and decided to set them up. The first issue I encountered was MPC-HC/XySubFilter hang when attempting to select fonts. Only way out was the task manager. Windows 7/64-bit. All MPC-hc components are 32-bit.

Edit: Looks like I resolved the issue by resetting >LAV Spliter >Subtitle Selection Mode>default.

octal9
11th November 2013, 18:35
I almost never utilize subtitles however I had a chunk of spare time and decided to set them up. The first issue I encountered was MPC-HC/XySubFilter hang when attempting to select fonts. Only way out was the task manager. Windows 7/64-bit. All MPC-hc components are 32-bit.

Edit: Looks like I resolved the issue by resetting >LAV Spliter >Subtitle Selection Mode>default.tried this, but lav splitter was already set to default..........anyone else have any ideas? i be at the end of my rope (i'm missin' my pretty subs)! lastly, y'all are geniuses - lovely work!!!

MistahBonzai
11th November 2013, 23:06
tried this, but lav splitter was already set to default..........anyone else have any ideas? i be at the end of my rope (i'm missin' my pretty subs)! lastly, y'all are geniuses - lovely work!!!

Here's how my submenus pertaining to subtitle set-up look (see attached desktop.zip file). I had a momentary hang (see #5) but as soon as I closed out all the screen shots in my graphics editor I was able to close the "style" submenu normally.

Whoops..200kb size limit :mad: Maybe I could mail the zip archive to you (5.67MB - 7 tiff files sized at 1280x720). If not then simply ask how I've set specific subtitle options and I could take screen shot crops (they should be less than 200kb ea.) or try to tell ya:D

Edit: for the sake of completeness ;) Octal9 discovered (and I've verfied) that full screen in MadVR will lock the player session (MPC-HC) when Filters > XySubFilter > Properties > Style > Font is selected. Task Manager > MPC-HC.exe > Stop Process will close the locked session.

vinnytx
14th November 2013, 11:38
Hi, Greetings to al forum members

I have a problem with XySubFilter
When I install XySubFilter PowerDVD 12 doesn't show subtitles anymore

octal9
14th November 2013, 13:03
solved my problem regarding substyle changes causing mpc/potplayer freeze (with a workable work-around) (with thanks due to MistahBonzai) - seems if i pause player, exit fullscreen and then do any sub edits, the player doesn't freeze (again, using windows 7 64-bit, main players being latest beta/nightly of mpc-be or potplayer) - after doing edits, i go back to fullscreen mode and continue watching......would be nice if this bug could be figured out and fixed (although xysubfilter is still miles beyond and above any other sub renderer, even in the current beta state).........

Warlock
29th November 2013, 15:06
Guys, what is the most current version of xysubfilter? I am currently using version 3.1.0.640, have some newer version than this?

the_weirdo
29th November 2013, 15:52
Guys, what is the most current version of xysubfilter? I am currently using version 3.1.0.640, have some newer version than this?

The latest official version of XySubFilter is 3.1.0.546 (beta). You can check here (https://code.google.com/p/xy-vsfilter/wiki/Downloads?tm=2).

There has been a lot changes in the codebase from that version, but XySubFilter developers have not released new build yet. (They have been inactive for a while. Hopefully they'll resume the developement of this great subtitle renderer soon).

ikarad
18th January 2014, 22:27
This project is dead?

cyberbeing
19th January 2014, 08:52
The project is still alive, it's just been stalled the past few months when we failed to find an easy & stable solution for preventing out-of-memory crashes. Our latest XySubFilter GIT build from a few months ago added a mechanism for limiting RAM usage, but while most of the time this functioned as expected, with certain memory intensive scripts the limiting mechanism would cause crashes. There is an inherent problem with memory management in all versions of VSFilter which needs be resolved. Ultimately what needs to be done is figuring out a way to reduce memory usage and improve performance with massive objects similar to Libass (which rarely uses more than 50-100MB RAM on such scripts), rather than just limit it and/or prevent crashes.

With XySubFilter scaling these memory issues are exacerbated compared to VSFilter.dll. We decided to hold off releasing a XySubFilter stable build until we figured out of a proper solution to the issue. We'd like to see scaling of heavy scripts in XySubFilter remain viable up to at least 4K UHD without running into memory and/or performance issues. Since this will likely require a major re-factor or re-write of the VSFilter core, the project got stalled since the developer was too busy for it at that time.

Work on xy-VSFilter project may slowly start back up soon, as the developer mentioned he wouldn't be as busy starting next month.

Soukyuu
19th January 2014, 12:27
Ultimately what needs to be done is figuring out a way to reduce memory usage and improve performance with massive objects similar to Libass (which rarely uses more than 50-100MB RAM on such scripts), rather than just limit it and/or prevent crashes.Might be a silly question, but what stops you from ...copying the way libass does it?

cyberbeing
19th January 2014, 14:51
Things are rarely that simple.

Soukyuu
19th January 2014, 19:23
Well it's true that your algorithm is probably different, but shouldn't the concept at least be partially transferable?
The main reason I was asking though was in case it's a license issue or something along those lines.

cyberbeing
19th January 2014, 20:54
At this point, I'm more curious to see if Libass starts running into the same memory issues once they stop using glyph-by-glyph bitmap rendering along with astiob's 8x8 VSFilter-like supersampling commit added on top. The question is still up in the air as to what exactly causes the occasional large discrepancies between VSFilter and Libass memory consumption.

mandarinka
20th January 2014, 22:03
Could you perhaps make another testing/alpha "release" of XySubFilter (even if just provisional) from current codebase, if it is not too much trouble?

The last available binary (unless I missed something) has that bug with non-functioning reloading of subtitle files that were changed. It can be surprisingly annoying bug when you quality check/edit scripts for fansubs :) Otherwise the Subfilter flavour is pretty nice, it has befriended me quickly.

SecurityBunny
1st February 2014, 01:45
Could you perhaps make another testing/alpha "release" of XySubFilter (even if just provisional) from current codebase, if it is not too much trouble?


I'd also like to see a new test build if time permits to compile one. Been following the github repo diligently. Many of the changes and fixes very much interest me, including the blur_be_fixes branch. I'd very much like to be able to test and use a newer build.

cyberbeing
1st February 2014, 04:36
The developer only became active a couple days ago, and there is a bit of a backlog at the moment. New builds of both xy-VSFilter (VSFilter.dll) and XySubFilter are planned. Code maintenance and some bugfixes will likely come first. Then we need to once and for all finalize the external subtitle autoloading behavior for XySubFilter. xy-VSFilter on the other hand is rather bugged in XySubFilter branches at the moment, so we need to figure out what to do about that.

That blur_be_fixes branch was spurred by recent conversions our dev had with astiob @Libass (https://github.com/libass/libass/issues/9#issuecomment-33290889) about differences between our \blur & \be implementation behaves compared to how the one in VSFilter 2.39 behaved. I wouldn't recommend touching that branch at the moment, since it has at least one confirmed subtitle corruption bug.

JEEB
4th February 2014, 15:31
I hope that after the VSFilter part has become possible to build on the current code base (the XySubFilter-related branch), you will look at some of the changes (https://github.com/cccp/xy-VSFilter/commits/blitzkrieg) that me and Lord have brewed up on the CCCP side, such as the colormatrix reading :) .