View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
RobertinoM
29th April 2011, 18:00
if I check the filters in Graphstudio for a VC-1 Bluray like Inception I get still after the installation of LAV 0.24 this picture
playing e.g. Bluscenes Spaces which is also VC-1 I get the other one... with LAV Splitter ????
Where am I wrong???
Regards Robertino
SamuriHL
29th April 2011, 18:01
I compiled my own from the latest MPC-HC source tree. Its included in the latest MPC-HC standalone filters, found here: http://xhmikosr.1f0.de/index.php?folder=bXBjLWhj - its VSFilter.dll
For compiling it, just open filters_2010.sln in the mpc-hc source tree.
Oh, sweet. That gets built anyway when I build MPC-HC. Thanks! I'm finally off all my meetings for work so I can give it a shot now. Gonna build the latest of everything now.
SamuriHL
29th April 2011, 19:18
Huh. Well, good news/bad news I guess. Bad news. I can't get subs to show up using the DirectVobSub filter. Not in MC16, anyway, which is now my player of choice. So, that sucks. :) However, good news. ffdshow now works with district 9 forced subs. Soooo, yea. I guess I'm all set for now. Personally, though, I'd prefer to figure out why DirectVobSub isn't working. I should try it with a different renderer than madVR and see if that makes a difference. I know madshi had to add special code to MPC-HC to make it work, so, I don't know if that's something MC16 would need to do, as well? Beats me. I'll mess around with it some more. In any case, I can use ffdshow for now. I'm trying really hard to remove ffdshow as a dependency though. Once you get bitstreaming implemented it was my hope to just nuke ffdshow. I have nothing against it at all, but, like jmone, I take the simplify approach to things and would rather do as much as possible with as little as possible. So having DirectVobSub work would be nice. Meh.
nevcairiel
29th April 2011, 19:20
DirectVobSub directly paints the subs onto the video image, somewhat like ffdshow in raw mode, so renderer support is not required. (But like i said earlier, it does not support NV12, so using it with LAV CUVID is currently not possible)
I think MPC-HC has some custom code that always loads DirectVobSub, i can try with MC16 later, and possibly adjust the DirectVobSub mediatypes.
nevcairiel
29th April 2011, 19:28
Ok i tested it with Avatar again, and i get subs to show up in MC16 with DirectVobSub.
There was a weird thing however. The forced subs looked perfectly fine, however, the normal subs were being displayed in the top left corner. I was like, wtf!
The weirdest thing is that this doesnt happen in MPC-HC when using DirectVobSub instead of the internal renderer.
SamuriHL
29th April 2011, 19:31
Do you have any special settings in DirectVobSub? Cause I can't get it to work at all. Even with regular subs. I'm using the DirectVobSub (autoload) filter. Is this the right one? And I'm doing this on my main HTPC right now which is AMD, so, I'm not trying to get it to work with CUVID. I'm not even using HAM mode at the moment.
nevcairiel
29th April 2011, 19:32
The autoload filter is meant to autoload, you need to add the other one to the list. See my FAQ in the second post. :P
SamuriHL
29th April 2011, 19:34
If only it were obvious or something. :D
Q: DirectVobSub will not load with LAVFSplitter
A: Make sure to use the "DirectVobSub" filter when adding it to the preferred filters list, and NOT "DirectVobSub (auto-loading version)". The latter will NOT work.
Oh....right. Son of a! :D
SamuriHL
29th April 2011, 19:35
SIGH. Still not working though. :( I'm talking just on regular, normal sub playing. I get no subs showing up at all. Just kill me.
nevcairiel
29th April 2011, 19:35
Weird, now i get the placement problem in MPC-HC as well .. why didn't i before..?
SIGH. Still not working though. :( I'm talking just on regular, normal sub playing. I get no subs showing up at all. Just kill me.
Does it show up in the filter graph? Is your video decoder outputting YV12?
SamuriHL
29th April 2011, 19:36
Um, woops. :D At least you're getting them to show up. I can't figure out why the hell they don't show for me.
nevcairiel
29th April 2011, 19:40
The positioning problem ruins the idea of using DirectVobSub anyhow, so if ffdshow works for you in applying the subs, well its all good i suppose.
I rather prefer the MPC-HC renderer though, the colors are not all washed out. :)
Maybe we'll have one day a new filter to replace all of these.
Edit: 1111 posts!
SamuriHL
29th April 2011, 19:41
I'd prefer to use DirectVobSub, as well. :( But, so far, I can't get them to show up at all. DirectVobSub doesn't show up in the loaded DirectShow filters. How is that possible?
nevcairiel
29th April 2011, 19:46
All i did in MC16 was configure AVCHD (apparently thats what m2ts falls under) for following:
Source: LAV Splitter Source
Other Filters: LAV Audio, ffdshow video (subs turned off, just for decoding), DirectVobSub
Renderer: madVR
LAV Splitter is currently set to select full subtitles, and the filtering is off.
ffdshow is configured to output both NV12 and YV12.
And it just works.
SamuriHL
29th April 2011, 19:48
They have a blu-ray section now. That's where I'm trying to get it to work. I've tried the Cyberlink Video decoder in both software and HAM mode and CoreAVC in software mode. No luck on either.
nevcairiel
29th April 2011, 19:50
Same settings for Blu-ray, it just works. Do a graph print out and post it. (context menu during playback -> DirectShow filters -> copy info to clipboard (or so))
I'm using 16.0.76 btw.
SamuriHL
29th April 2011, 19:54
I'm using 75. You're right though, it works with ffdshow video decoder. But not, apparently, Cyberlink or CoreAVC??? What the??? And yes, I see the placement issue, as well, when using ffdshow. I even tried to override placement in DirectVobShow settings. Nada.
nevcairiel
29th April 2011, 19:56
Works for me with CoreAVC. /me shrugs
But anyhow, its not really usable anyway due to the positioning problem. I don't really feel like hacking too much in the code, its rather ugly. For non-MPC-HC i guess i have to recommend ffdshow.
SamuriHL
29th April 2011, 19:58
Oh WEIRD! I put CoreAVC back and it works now?? Man, I give up! :) Any ideas what's going on with the placement thing? :)
Ah nevermind on the placement thing then. :)
nevcairiel
29th April 2011, 20:07
I think i know why its screwing up. The forced subs in Avatar are basically one big 1920x1080 frame, so they are fine starting in the top corner. The "normal" subs however are actually smaller and placed somewhere properly - this seems to not work. I can track it down, i think.
sneaker_ger
29th April 2011, 20:09
I think i know why its screwing up. The forced subs in Avatar are basically one big 1920x1080 frame, so they are fine starting in the top corner. The "normal" subs however are actually smaller and placed somewhere properly - this seems to not work. I can track it down, i think.
Are you talking about PGS?
Things can get even more ugly, as there cannot only be a single small sub, but also several pictures across the screen.
SamuriHL
29th April 2011, 20:13
I really wish I knew why I can't get directvobsub to work with the Cyberlink video decoder. I just now fixed HAM mode to get rid of the damn green bar at the bottom of my videos, so, I'm back to being able to use HAM mode again. Now if I could just get DirectVobSub to work I'd be happy.
jmone
29th April 2011, 21:44
I noticed that the previous subtitle filtering was not properly implemented, when looking at the stream of data packages going out. I think i have corrected this, it does seem to work fine in ffdshow now, but i again only tested on one disc.
http://files.1f0.de/lavf/LAVFilters-0.24-11-g746ae26.zip
PS: DirectVobSub worked just fine for PGS for me.
PPS: That build leaks some memory when watching PGS subs .. i already corrected it, but i cba to upload a new build right now. Its nothing extreme, over the whole movie maybe a few megs..
Initial test using D9 - This version works perfectly with FFDSHOW on forced subs! Well dont and thanks. For completness I'll test on other setups/discs and also post my resutls on DirectVobSub Later.
Thanks again for the quick fix!
SamuriHL
29th April 2011, 21:48
What video decoder are you using, jmone? DirectVobSub works in MC16 with pretty much any decoder except Cyberlink. (sigh). However, the placement is wrong.
jmone
29th April 2011, 21:57
FFDSHOW - with H.264/AVC using ffmpeg-mt
What version of DirectVobSub are you testing with? Is it this one http://sourceforge.net/projects/guliverkli2/files/DirectShow%20Filters/DirectVobSub%202.39/
SamuriHL
29th April 2011, 21:58
No. See earlier in the thread. It's the one from the MPC stand alone filters. vsfilter.dll.
nevcairiel
29th April 2011, 22:09
I fixed the positioning bug with DirectVobSub and PGS. I tried for about an hour to fix the underlying problem that caused the bug, but i failed. Stupid DirectVobSub .. so i only fixed PGS instead.
One thing i noticed during testing, DirectVobSub can be _extremely_ slow, especially with alot of subs going on. But i guess thats not to be avoided with software blting the image on the video...
PS:
MPC-HC 3056 for the fix, btw.
SamuriHL
29th April 2011, 22:11
Thanks, Nev. I'll build it now and see if it makes any difference. I suspect for now I'm stuck with ffdshow's raw video filter. If I try to add just the subtitle filter it crashes MC16. :rolleyes: This is why I badly want a stand alone sub filter.
nevcairiel
29th April 2011, 22:14
Here is a build of VSFilter/DirectVobSub r3056, with all the fixes i did today
http://files.1f0.de/VSFilter-r3056.zip
jmone
29th April 2011, 22:23
Here is a build of VSFilter/DirectVobSub r3056, with all the fixes i did today
http://files.1f0.de/VSFilter-r3056.zip
Quick test = Looks fine to me - worked on Forced Subs and when I turned on Full Subs I did not see any issues with Positioning (using FFDSHOW for the decoder still).
nevcairiel
29th April 2011, 22:26
and when I turned on Full Subs I did not see any issues with Positioning (using FFDSHOW for the decoder still).
Thats because i fixed it. :p
SamuriHL
29th April 2011, 22:26
So, if you're going to need ffdshow for the decoder, there's no real benefit to using DirectVobSub, yea? :D I'm able to get it to work with ffdshow video decoder, as well, but, if I'm going to use that I might as well just use ffdshow subtitles. Trying with ArcSoft video decoder and it doesn't work with that, either. DirectVobSub shows up in the filter list, but, no subs. sigh.
Andy o
29th April 2011, 22:29
Never mind. Thanks Nev.
nevcairiel
29th April 2011, 22:29
It doesn't even show up in the filter list with Cyberlink for me. No idea wtf is that.
SamuriHL
29th April 2011, 22:31
Yea, that's what I'm saying, Nev. Pretty screwed up and sucks cause that's my favorite decoder for my AMD machines. :(
nevcairiel
29th April 2011, 22:43
I don't even get subs in MPC-HC with VSFilter and the Cyberlink decoder (but VSFilter is in the graph). There is also another stupid thing, the Cyberlink decoder starts outputting YUY2 (4:2:2) when it connects to DirectVobSub in MPC-HC, which makes the image go all washed out - and of course stops using madVR.
I just call it broken.
SamuriHL
29th April 2011, 22:46
Hurray! My life officially sucks then. :D Unless of course someone develops the equivalent of CUVID for AMD's API thingie. I don't see that happening any time soon. Clearly it can be done since Cyberlink has HAM mode. But, yea, um, this blows. For my main HTPC, it's not so bad since I can technically use any decoder I want. My laptop, not so much. I'm stuck with HAM mode since this thing isn't fast enough for software decoding. The bedroom machine is using CUVID. I guess I should resign myself to always having ffdshow installed. sigh.
jmone
29th April 2011, 23:19
It must be terrible! Working BD, forced subs ... I don't know how you can survive :) Ill check later to see if the ffdshow sub filters works ok. Any specific filter chain do you want me to check? (I dont have cyberlink though)
Mercury_22
29th April 2011, 23:21
@Nev Any chance you can add / Enable Thumbnails for mkv files in WMC / WMP library / Explorer :cool:
clsid
30th April 2011, 00:06
@Nev Any chance you can add / Enable Thumbnails for mkv files in WMC / WMP library / Explorer :cool:Thumbnails aren't extracted by a source filter, but by a shell extension for Explorer.
Here is a reg tweak to use the MS shell extension:Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.mkv\ShellEx\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}]
@="{c5a40261-cd64-4ccf-84cb-c394da41d590}"
A reliable open source shell extension would of course be a nice future project ;)
jmone
30th April 2011, 05:01
SamuriHL - Testing FFDSHOW SUB Filter by trying various options. I too can get it to crash the filter chain. It must be one of the FFDSHOW settings as now the full FFSHOW Filter Crashes as well. I had to load my settings from a preset and it is all good again. I'm now recording TV so no more playing for now with filters that make your player crash!
jmone
30th April 2011, 05:19
Nev - you are going to love this on the Subs! While it works as expected for Blu-rays, I've now got the EXACT OPPOSITE of the disappearing subs issue with DVD content (ripped to files by eps)! I'm now getting displayed the full and non-eng subs (Arabic text) being displayed but NOT the Forced ENG subs. At some point all subs stop displaying. According to MediaInfo the subs streams are:
Text #1
ID : 189 (0xBD)-34 (0x22)
Format : RLE
Format/Info : Run-length encoding
Muxing mode : DVD-Video
Delay relative to video : 2s 840ms
Text #2
ID : 189 (0xBD)-35 (0x23)
Format : RLE
Format/Info : Run-length encoding
Muxing mode : DVD-Video
Delay relative to video : 2s 840ms
My LAV Filter Settings are:
Audio: eng
Subtitles: eng
Only Forced Subs + checked Only with matching language
checked Delivery only Forced Subtitles under Blu-ray.
Filter Graph info is as follows:
Filter Graph Info:
Filter 'J. River Audio Renderer'
CLSID: {A4002F8E-510F-442C-8AD3-F9C7B23FB394}
Host:
Input Pin 'In'
Connected to pin 'XForm Out' of filter 'LAV Audio Decoder'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx
Filter 'Enhanced Video Renderer'
CLSID: {FA10746C-9B63-4B6C-BC49-FC300EA5F256}
Host: c:\windows\syswow64\evr.dll
Input Pin 'EVR Input0'
Connected to pin 'Out' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'EVR Input1'
Filter 'ffdshow Video Decoder'
CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
Host: c:\program files (x86)\ffdshow\ffdshow.ax
Input Pin 'In'
Connected to pin 'Video' of filter 'LAV Splitter'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_MPEG2_VIDEO, Format type FORMAT_MPEG2_VIDEO
Output Pin 'Out'
Connected to pin 'EVR Input0' of filter 'Enhanced Video Renderer'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'In Text'
Connected to pin 'Subtitle' of filter 'LAV Splitter'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {F7239E31-9599-4E43-8DD5-FBAF75CF37F1}, Format type Unknown GUID Name: {F7239E31-9599-4E43-8DD5-FBAF75CF37F1}
Input Pin 'In Text 2'
Filter 'LAV Audio Decoder'
CLSID: {E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
Host: c:\users\mum and dad\downloads\filters\lavfilters\lavaudio.ax
Input Pin 'XForm In'
Connected to pin 'Audio' of filter 'LAV Splitter'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_DOLBY_AC3, Format type FORMAT_WaveFormatEx
Output Pin 'XForm Out'
Connected to pin 'In' of filter 'J. River Audio Renderer'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx
Filter 'LAV Splitter'
CLSID: {171252A0-8820-4AFE-9DF8-5C92B2D66B04}
Host: c:\users\mum and dad\downloads\filters\lavfilters\lavsplitter.ax
Input Pin 'Input'
Connected to pin 'Output' of filter 'File Source (Async.)'
Major type MEDIATYPE_Stream Sub type MEDIASUBTYPE_MPEG2_PROGRAM, Format type TIME_FORMAT_NONE
Output Pin 'Video'
Connected to pin 'In' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_MPEG2_VIDEO, Format type FORMAT_MPEG2_VIDEO
Output Pin 'Audio'
Connected to pin 'XForm In' of filter 'LAV Audio Decoder'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_DOLBY_AC3, Format type FORMAT_WaveFormatEx
Output Pin 'Subtitle'
Connected to pin 'In Text' of filter 'ffdshow Video Decoder'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {F7239E31-9599-4E43-8DD5-FBAF75CF37F1}, Format type Unknown GUID Name: {F7239E31-9599-4E43-8DD5-FBAF75CF37F1}
Filter 'File Source (Async.)'
CLSID: {E436EBB5-524F-11CE-9F53-0020AF0BA770}
Host: c:\windows\syswow64\quartz.dll
Output Pin 'Output'
Connected to pin 'Input' of filter 'LAV Splitter'
Major type MEDIATYPE_Stream Sub type MEDIASUBTYPE_MPEG2_PROGRAM, Format type TIME_FORMAT_NONE
SamuriHL
30th April 2011, 05:56
It must be terrible! Working BD, forced subs ... I don't know how you can survive :) Ill check later to see if the ffdshow sub filters works ok. Any specific filter chain do you want me to check? (I dont have cyberlink though)
I know. I'm spoiled. :D Nev, madshi and others have done a TREMENDOUS job!!!
Here's a heads up for you guys. Just got back from Fast 5. It has some of the most ****ed up subtitles I've ever seen in a movie!! They literally MOVE while you're trying to read the damn things! And their wipe effects to clear them from the screen are WHACKED. Can't wait for that movie to come out on BD. It will be one of our gold standard titles to test with for sure.
SamuriHL
30th April 2011, 05:57
SamuriHL - Testing FFDSHOW SUB Filter by trying various options. I too can get it to crash the filter chain. It must be one of the FFDSHOW settings as now the full FFSHOW Filter Crashes as well. I had to load my settings from a preset and it is all good again. I'm now recording TV so no more playing for now with filters that make your player crash!
If you can track that down I would be *MOST* grateful!
nevcairiel
30th April 2011, 06:48
I've now got the EXACT OPPOSITE of the disappearing subs issue with DVD content (ripped to files by eps)! I'm now getting displayed the full and non-eng subs (Arabic text) being displayed but NOT the Forced ENG subs. At some point all subs stop displaying.
The new code does in no way influence any subs that are not PGS. DVD VobSubs work just like they did before.
Plus, with your settings, it should not activate any sub stream anyway.
jmone
30th April 2011, 07:05
I only played these files today to test a madVR thing (PAL Speeddown) so it may have been there for awhile.
Andy o
30th April 2011, 07:14
Here's a heads up for you guys. Just got back from Fast 5. It has some of the most ****ed up subtitles I've ever seen in a movie!! They literally MOVE while you're trying to read the damn things! And their wipe effects to clear them from the screen are WHACKED. Can't wait for that movie to come out on BD. It will be one of our gold standard titles to test with for sure.
Most likely they will be burned-in if they have to move or are too fancy. The one I had trouble with with ffdshow, that's the worst example I've seen is this one (http://forum.doom9.org/showthread.php?p=1482925#post1482925). It's the blu-ray of Eden of the East. My hope for using DirectVobSub was that it could render those OK, I'll be trying soon. It was a rental, so I deleted all the files.
I've had similar trouble, but not as bad, with other anime titles (Freedom), where there seem to be at some point two captions with different timings, that are supposed to overlay, but MPC-HC sub renderer showed only one at a time, resulting in subs getting too little time. I don't remember if I tried those with ffdshow.
nevcairiel
30th April 2011, 07:16
DirectVobSub uses the same renderer as MPC-HC itself, so if it didn't work in there, it won't work with directvobsub.
Andy o
30th April 2011, 07:21
Uh, that sucks. DVobSub's development is also stalled? I read at the MPC-HC (or ffdshow?) thread something like nobody was working on the sub renderer anymore.
jmone
30th April 2011, 08:15
The new code does in no way influence any subs that are not PGS. DVD VobSubs work just like they did before.
Plus, with your settings, it should not activate any sub stream anyway.
OK - I must say I now also hate subtitles! Anyway - I checked several files (instead of BD Stucture) and find that there are various issues with Non PGS subs (the PGS subs played fine):
- RLE Subs (reported as VobSub by LAV): In addition to the Example given in my earlier post, odd behaviour on other files include with full subs on the eng subs will stop after XXmins (2min on one file, 10 sec on another). Must say they are ugly subs and I only knew they existed thanks to them automatically appearing!
- VobSubs: I have some test MKV files made from D9 where the PGS subs where converted to VobSub (BDsup2sub) - on these the forced subs stop displaying after a short while.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.