View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
sneaker_ger
12th October 2012, 11:23
Technically every DirectShow player.
Joniii
12th October 2012, 11:30
Technically every DirectShow player.
I can't get xy-vsfilter to load on anything but MPC-HC, no matter what I try.
mark0077
12th October 2012, 15:08
Nev, I have some DVD's / menus I used to use while testing ffdshow updates a few years back, which I found ffdshow had alot of trouble with. Haruhiko found some of these useful when working on the menu highlighting, in terms of accuracy and pretty much got to the stage where these menus looked perfect in ffdshow. Maybe I can help in a similar way with LAV. I'll try to dig up some of those problem menus now and see how they look but heres one below which shows an issue.
I'm using this version of LAV which you posted yesterday.
http://files.1f0.de/lavf/LAVFilters-0.51.3-137-ga3923db.zip
Watching Queen Greatest Video Hits 1, theres a red border highlight when hovering over some of the menu items. In ffdshow / mpc-hc decoders it looks good, but not with LAV, see how it looks offset or something in LAV.
Let me know if I can provide you with any further details or samples even if its not obvious from these images where the issue is.
Mpc-hc internal mpeg2 (http://imageshack.us/a/img405/1884/mpcmpeg2.png)
LAV Video (http://imageshack.us/a/img443/176/lavvideo.png)
EDIT: I'm using evr-cp, and have deinterlacing turned off in LAV, both hardware and yadif, I'm wondering is LAV sending any interlaced flags to evr-cp because of this and causing this problem? Just a hunch. I have mpc-hc's decoder set to not output the interlace flag.
mark0077
12th October 2012, 15:50
Hi Nev, some more comments regarding DVD menus while testing out some DVDs
In Star Wars Episode II DVD
Going from the "Main Menu", to "Language Selection" goes like this
In "Main Menu"
Click "Language Selection"
"Language Selection" appears fine
Click "Main Menu"
Some sort of menu exit animation starts and plays for about 2 seconds fine
5-7 second Freeze / No output (No freeze on hardware player or with mpc internal decoder)
In "Main Menu"
Menu Traversal with different aspect ratios
Going from Say a sub menu thats 4:3 aspect ratio back to the main menu thats 16:9, I can see the old menu get stretched to 16:9 for maybe 0.2 of a second, before I see the main menu start. It just looks weird / unprofessional. My hardware player doesn't do it. Not sure if this is under your control or not.
nevcairiel
12th October 2012, 16:23
Watching Queen Greatest Video Hits 1, theres a red border highlight when hovering over some of the menu items. In ffdshow / mpc-hc decoders it looks good, but not with LAV, see how it looks offset or something in LAV.
That menu looks fine when i run it. I just improved the logic that calculates the size and position of the menu overlays to not do needless changes, maybe a rounding error was creeping in somewhere, try with the next build again.
In Star Wars Episode II DVD
Going from the "Main Menu", to "Language Selection" goes like this
In "Main Menu"
Click "Language Selection"
"Language Selection" appears fine
Click "Main Menu"
Some sort of menu exit animation starts and plays for about 2 seconds fine
5-7 second Freeze / No output (No freeze on hardware player or with mpc internal decoder)
In "Main Menu"
Guess i would need a copy of that disc, or at least the relevant parts (whatever those are on a DVD)
Menu Traversal with different aspect ratios
Going from Say a sub menu thats 4:3 aspect ratio back to the main menu thats 16:9, I can see the old menu get stretched to 16:9 for maybe 0.2 of a second, before I see the main menu start. It just looks weird / unprofessional. My hardware player doesn't do it. Not sure if this is under your control or not.
There may be something that can be done, but i'm not sure yet. I'll put it on my list for things to test after the release, it would be a too risky change, and i want the new version out there. :p
Pat357
12th October 2012, 16:50
I can't get xy-vsfilter to load on anything but MPC-HC, no matter what I try.
Are you using DXVA native ?
If no DXVA native :
Set in xy-filter "load when needed" and make sure the priority of xy-filter (Directvobsub) as DirectShow filter is high enough. (= merrit "Preferred").
If the player supports using external filters, configure DirectvobSub as preferred filter.
mark0077
12th October 2012, 17:51
That menu looks fine when i run it. I just improved the logic that calculates the size and position of the menu overlays to not do needless changes, maybe a rounding error was creeping in somewhere, try with the next build again.
Guess i would need a copy of that disc, or at least the relevant parts (whatever those are on a DVD)
There may be something that can be done, but i'm not sure yet. I'll put it on my list for things to test after the release, it would be a too risky change, and i want the new version out there. :p
Cheers, I'll try the Queen DVD on the next version. I reproduced the freeze going from sub menus to main menu in Star Wars III DVD funnily enough, I havn't alot of DVDs with very animated menus like these ones so havn't reproduced elsewhere yet. These DVDs have exit in / out animations between each menu traversal if that makes sense, so when I click "Main Menu" when in sub menus, there's first an animation, then the main menu loads, its between the out animation and the next menu appearing that the 5 second freeze seems to show up.
EDIT:
SVP With DVDs + LAV Video Decoder
Nev, I use SVP / Interframe via avisynth in ffdshow raw video filter and always convert all content to 60.00fps to match my TV. When used with the LAV video decoder (for DVDs only, fine for every other content), the video goes smooth for 0.5 seconds, stops for maybe 0.2 seconds, smooth again, stops again and so on. cpu usage is still really low, its not like its a performance issue, looks like a buffer is getting filled and flushed or something every so often.
With other decoders this jerkyness doesn't happen in DVDs. Not sure if your interested in trying to reproduce this. If you want the avisynth script I use, give me a shout and I'll send it on.
hoborg
12th October 2012, 18:32
Hi.
I noticed some pixelation if i seek durning DVD playback, but it is only cosmetic. But still ... ;-)
nevcairiel
12th October 2012, 19:42
SVP With DVDs + LAV Video Decoder
Nev, I use SVP / Interframe via avisynth in ffdshow raw video filter and always convert all content to 60.00fps to match my TV. When used with the LAV video decoder (for DVDs only, fine for every other content), the video goes smooth for 0.5 seconds, stops for maybe 0.2 seconds, smooth again, stops again and so on. cpu usage is still really low, its not like its a performance issue, looks like a buffer is getting filled and flushed or something every so often.
With other decoders this jerkyness doesn't happen in DVDs. Not sure if your interested in trying to reproduce this. If you want the avisynth script I use, give me a shout and I'll send it on.
I can't debug this, because this SVP POS crashes as soon as you run the player with a debugger, and has been doing that since like, forever. So anytime i try to extract any kind of information whats happening, it just crashes.
One thing i noticed is that EVR claims its rendering 120 frames per second, which obviously can't be right.
My guess is this: LAV flags all frames as interlaced, because well, they probably are. ffdshow raw just keeps those flags from the input to the output. So 25/30 frames from LAV, become 60 frames after SVP - which still have interlaced flags, and the renderer tries to deinterlace them to 120, causing broken playback.
Proof: When i set "Treat as progressive" in LAV, it suddenly is fluid.
Sounds like a bug in ffdshow or SVP to me, when dealing with interlaced content.
DVD content is generally flagged as interlaced, and in reality its telecined.
mark0077
12th October 2012, 20:01
The only time I get double / double frame rate, is if I use yadif in ffdshow AND avisynth svp. svp still thinks the input is at the original rate, it doesn't get the updated double rate from yadif. I always make sure yadif is off for that reason :)
So in ffdshow raw I have "Set interlaced flag in output media type" disabled, de-interlacing disabled. Same in mpc-hc mpeg2 decoder, I ask it not to pass on the flag, and also to use weave. So I assume the flags shouldn't be getting past decoding.
Unfortunately enabling "Treat as Progressive" in LAV hasn't helped.
Playing "The Matrix" DVD, which has always looked perfect with de-interlacing off / weave. EVR-CP says its playing Frame rate : 25 and all is fine with all decoders. Its not 50 fps so nothing is doubling its rate.
With SVP on, it says for me Frame rate: 60.001 which is as I expect, however its jerky as hell :)
I guess if it can't be debugged theres nothing that can be done. Let me know at any point if I can help anyways. Cheers.
EDIT: Actually got it working perfectly by changing the ffdshow avisynth buffer sizes. I have always used 0/15 and its never caused problems, Changing to 0/9 somehow works perfectly now. Any idea whats specific to LAV that makes 0/15, even 0/10 go crazy :D
nevcairiel
12th October 2012, 20:25
Try this version, it may solve some issues.
x86: http://files.1f0.de/lavf/LAVFilters-0.51.3-145-gdb45854.zip
x64: http://files.1f0.de/lavf/LAVFilters-0.51.3-145-gdb45854-x64.zip
Among other things it should fix (all in context of DVD):
- Pixelation when seeking
- A/V desync when seeking
- For me, it also seems to solve the SVP stuttering (not sure why exactly.... :D)
- Improved menu positioning logic
Please also test the animated menu issue you had, while its unlikely that it helps, it yet may.
mark0077
12th October 2012, 21:02
Cheers for the new version.
Tried Queen Greatest Hits I, unfortunately I can't actually get to the "Options" menu now where I saw the bad positioning of the highlighted items. When I click options it lights up as if I clicked it, it brings me nowhere though and can no longer click any other items on the main menu. Do you have this DVD? If I can help by sending on the menu part let me know.
avisynth / svp - Changing the avisynth ffdshow buffer ahead sizes seems to have an effect. Lower values stops the huge stuttering but I'm noticing it seems to actually make svp stop adding the smoothness with some values, I'm very confused. I don't have a clue how the buffer sizes would only have this effect with LAV. Usualy for me changing these buffer ahead settings makes nearly no difference. I guess the amount of SVP users is very low so no point spending much time on it. I'm not sure if its avisynth / ffdshow in general thats causing it or svp specific.
Star Wars menu lags - Sorry! It doesn't help with this one.
nevcairiel
12th October 2012, 21:26
Something in the Queen menu is broken, you have to click the options button twice. =p
I don't think its actually a bug, the menu just behaves that way. When you come back from the options menu, and the option button is still highlighted, a single click is enough, its really weird.
Probably it works if you use keyboard/remote navigation (navigating to the button activates it, pressing enter goes to the menu), but can't really do that with MPC-HC it seems.
Regarding the menu issue, my collection of DVDs is rather limited, and none show the issue. Unless i can reproduce it, i cannot fix it. Its technically not a critical issue if it just lags for a few seconds, as long as it plays properly afterwards.
Also need to leave room for improvement in the future, or i might get bored (in 100 years, when my to do list is empty)
mark0077
12th October 2012, 21:49
Hehe exactly. For me though the queen menu. The options menu doesn't respond to the second click. Not does any item after I click it once. Weird.
tetsuo55
12th October 2012, 21:56
Something in the Queen menu is broken, you have to click the options button twice. =p
I don't think its actually a bug, the menu just behaves that way. When you come back from the options menu, and the option button is still highlighted, a single click is enough, its really weird.
Probably it works if you use keyboard/remote navigation (navigating to the button activates it, pressing enter goes to the menu), but can't really do that with MPC-HC it seems.
Regarding the menu issue, my collection of DVDs is rather limited, and none show the issue. Unless i can reproduce it, i cannot fix it. Its technically not a critical issue if it just lags for a few seconds, as long as it plays properly afterwards.
Also need to leave room for improvement in the future, or i might get bored (in 100 years, when my to do list is empty)The star wars dvd's (the last version released on dvd as a full set) are said to be a kind of golden file. The menu's use a lot if nasty stuff to make a dvd player break. Supposedly only those dvd players that follow all the spec rules to the letter can play it correctly. (i think its an half arsed attempt at copy protection)
Getting just one of those discs to work properly and fluently should rule out most issues other disks have.
mark0077
13th October 2012, 01:21
I agree. The star wars DVDs pushed ffdshow And mpc a while back. They will improve lav no doubt.
wanezhiling
13th October 2012, 05:44
Theora encoded, how unusual. :)
Should be fixed for the next version.
Thanks.
PS: mpc/haali splitter +lav v, cant work..:)
Joniii
13th October 2012, 07:53
Are you using DXVA native ?
If no DXVA native :
Set in xy-filter "load when needed" and make sure the priority of xy-filter (Directvobsub) as DirectShow filter is high enough. (= merrit "Preferred").
If the player supports using external filters, configure DirectvobSub as preferred filter.
Hi,
Copy-back, tried with WMP and WMC (xy-VSFilter_3.0.0.65). It is set as "load when needed" and merit is Preferred.
ryrynz
13th October 2012, 08:26
Nev, using build db45854 (Today) I have a video with 712x480 resolution stated as 853x480 which does not stretch to fit my 1920x1080 screen (black bars on either side) Keep aspect ratio and touch window from inside are enabled in MPC.
MadVR reports target rect 159,0,1761,1080 with that build, but with d08efaf (Oct 9) this video fits my screen and MadVR reports target rect 1,0,1918,1080.
MPC's Video Decoder has this video fit my screen target also, rect 0,0,1919,1080. Previous stable release builds are not fitting my screen with this video either.
nevcairiel
13th October 2012, 08:53
Nothing changed in between those versions that has anything to do with aspect ratio things, you must be seeing things. :)
In any case, sample or it didn't happen.
In most cases the AR is just screwed up in those files, and the fact that it works with another decoder i just pure chance, other files which are screwed up in other way work in LAV then, but fail in MPC-HC, etcetc. :p
nevcairiel
13th October 2012, 10:11
PS: mpc/haali splitter +lav v, cant work..:)
Should be fixed
mindbomb
13th October 2012, 17:10
in 51.3.145, when i use the navigate to title menu option of mpc hc in this dvd, it crashes.
Here's the menu and stuff (i split it up into 2 parts):
http://www.mediafire.com/?slillwi87x3yby2
http://www.mediafire.com/?qu4kjt1edzj525a
Duffy Moon
13th October 2012, 17:24
in 51.3.145, when i use the navigate to title menu option of mpc hc in this dvd, it crashes. I'll have a sample in a second.
Same problem here. I thought it was madVR (which caused my blank screen when changing file issue).
iSunrise
13th October 2012, 18:30
I also get a crash when playing DVDs with the latest build.
Just wanted to watch Conan - The Barbarian NTSC DVD and the crash always happens right when the Title Menu appears. Itīs 100% reproducible.
Pat357
13th October 2012, 19:18
Hi,
Copy-back, tried with WMP and WMC (xy-VSFilter_3.0.0.65). It is set as "load when needed" and merit is Preferred.
I never use WMP / WMC, so I wouldn't know how to configure it for subs using xy-filter. Sorry.
nevcairiel
13th October 2012, 19:24
in 51.3.145, when i use the navigate to title menu option of mpc hc in this dvd, it crashes.
Thanks for the sample.
Can you confirm this fixes it?
x86: http://files.1f0.de/lavf/LAVFilters-0.51.3-152-gaf988e6.zip
x64: http://files.1f0.de/lavf/LAVFilters-0.51.3-152-gaf988e6-x64.zip
mindbomb
13th October 2012, 21:47
that fixed the issue of the crashing, but now when you click on subtitles, the seekbar resets, and you don't get to the subtitle menu until the seekbar gets to the end. (like it has to wait until it stops playing 30 seconds of a still image)
nevcairiel
13th October 2012, 22:02
that fixed the issue of the crashing, but now when you click on subtitles, the seekbar resets, and you don't get to the subtitle menu until the seekbar gets to the end. (like it has to wait until it stops playing 30 seconds of a still image)
Thats only an issue with DXVA, i'll see if i can fix it somehow. Might be delayed until the next version, DXVA doesn't particularly like it when only one single frame is decoded (like for these still images).
Edit: Should be fixed. Found an easy way to solve it temporarily.
Duffy Moon
13th October 2012, 22:43
DVD menu fixed here too. Thanks for the rapid update.
cyberbeing
13th October 2012, 22:59
@Joniii
If you are using the Win7DSFilterTweaker to tweak the preferred decoders, xy-VSFilter will only auto-load in WMP if you set the video codecs to "Use Merit" or "Microsoft". When "Use Merit" is set, the video decoder with the highest merit (e.g. LAV Video, FFDShow) will be used in WMP along with xy-VSFilter when subtitles exist.
If you use Win7DSFilterTweaker to force a preferred video decoder like LAV Video or FFDShow, xy-VSFilter is prevented from auto-loading in WMP.
mindbomb
13th October 2012, 23:33
Thats only an issue with DXVA, i'll see if i can fix it somehow. Might be delayed until the next version, DXVA doesn't particularly like it when only one single frame is decoded (like for these still images).
Edit: Should be fixed. Found an easy way to solve it temporarily.
I don't know if it was the same issue, I was using cuvid, and it happens with avcodec too.
Pepp
14th October 2012, 02:06
Can anyone tell me how to download the official windows vc-1 codec without going to some dodgy codec site.
Thanks
nevcairiel
14th October 2012, 07:50
I don't know if it was the same issue, I was using cuvid, and it happens with avcodec too.
I had the problem happen on your sample, after my change it didnt happen anymore, so there is that. :P
Can only fix problems i can reproduce.
wanezhiling
14th October 2012, 08:47
http://pan.baidu.com/share/link?uk=3558042035&shareid=1951&fr=3861675805&fa=3861675805
Lav fails to decode it, ffdshow and coreavc are fine.
nevcairiel
14th October 2012, 09:06
http://pan.baidu.com/share/link?uk=3558042035&shareid=1951&fr=3861675805&fa=3861675805
Lav fails to decode it, ffdshow and coreavc are fine.
Fixed
Joniii
14th October 2012, 09:27
@Joniii
If you are using the Win7DSFilterTweaker to tweak the preferred decoders, xy-VSFilter will only auto-load in WMP if you set the video codecs to "Use Merit" or "Microsoft". When "Use Merit" is set, the video decoder with the highest merit (e.g. LAV Video, FFDShow) will be used in WMP along with xy-VSFilter when subtitles exist.
If you use Win7DSFilterTweaker to force a preferred video decoder like LAV Video or FFDShow, xy-VSFilter is prevented from auto-loading in WMP.
Thank you, it worked! Finally i'm able to use LAV, it is just amazing how smooth it is, no pixelation when using skip and all my BD remuxes work, on ffdshow couple of blu-rays had problems like weird flickering blocks. Thanks for your work nev!
One thing, is there 64-bit xy-vsfilter somewhere? If not, would it be hard to compile 64-bit from 32-bit source, im a programmer and I get Visual studio from MSDN, but I have never made anything in 64-bit and only language I really know well is C#.
cyberbeing
14th October 2012, 09:56
At present, the xy-VSFilter source isn't 64-bit compatible. It's actually something our dev is working on at the moment, so if no unforeseen issues arise, the next release may support building as 64-bit.
Joniii
14th October 2012, 10:02
At present, the xy-VSFilter source isn't 64-bit compatible. It's actually something our dev is working on at the moment, so if no unforeseen issues arise, the next release may support building as 64-bit.
Great to know, although 64-bit player might not be any better than 32-bit, 64-bit codecs\filters are still usefull to those who are stuck with 64-bit players like Windows Media Center with 64-bit Windows.
VipZ
14th October 2012, 12:14
Got a vob sample where the AC3 track is miss detected as EAC3.
http://www.mediafire.com/download.php?94q08mhpheee77y
nevcairiel
14th October 2012, 14:17
Got a vob sample where the AC3 track is miss detected as EAC3.
http://www.mediafire.com/download.php?94q08mhpheee77y
And thats a problem why? :D
Seems to play fine.
VipZ
14th October 2012, 14:57
And thats a problem why? :D
Seems to play fine.
Yep if you decode it seems to work fine but when bit streaming its broken. If I play that segment via DVD navigator it works as expected.
JarrettH
14th October 2012, 17:57
All this DVD talk, what's happening :D Sounds like menu support in the next release :devil:
Warlock
14th October 2012, 19:48
Which is better to decode .flac files: lav audio or madflac?
mindbomb
14th October 2012, 20:46
quality-wise, they are the same, but lav audio handles more formats and has more options, so I think lav audio is better.
Warlock
14th October 2012, 20:54
Hmm, I see. Thanks for the advice. Mindbomb, compared with Haali, still worth using it? Or simply leave the lav splitter?
mindbomb
15th October 2012, 01:45
well, im gonna say lav splitter, but you are asking in the lav thread, so what do you expect.
dansrfe
15th October 2012, 04:20
For all practical purposes (other than eac3to I suppose) Haali isn't used anywhere and neither should it be at this point in time.
Reino
15th October 2012, 09:59
Which is better to decode .flac files: lav audio or madflac?Is there something special you require from a decoder concerning flac then? Better in what way? Decoding flac is rather trivial for all decoders.
Nev, is it possible for LAV Filters to extract metadata like MPC-HC's internal filters do?
For a properly tagged mp3 MPC-HC shows "Title" ("Track Name" for MediaInfo) and "Author" ("Performer" for MediaInfo). For a mkv-file that would be "Movie name" for MediaInfo.
nevcairiel
15th October 2012, 10:02
Nev, is it possible for LAV Filters to extract metadata like MPC-HC's internal filters do?
For a properly tagged mp3 MPC-HC shows "Title" ("Track Name" for MediaInfo) and "Author" ("Performer" for MediaInfo). For a mkv-file that would be "Movie name" for MediaInfo.
As long as ffmpeg reads those metadata tags, they can probably be exposed somehow. Its on the list of things to do in the future.
Pat357
15th October 2012, 12:56
What do you think, Nev, time for a new release ?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.