View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
SamuriHL
25th March 2011, 18:28
That's not very useful for what we want, no. You've said you're working on a version of madVR that can work with DXVA, right? So that would mean that all the stuff you do would be on the GPU. But what kind of limitations would that place on you? Would you be constrained by all the things that AMD and nVidia do wrong in DXVA, thus making madVR not as effective as doing software decoding and bypassing all that?
noee
25th March 2011, 18:40
With ATI, there's no fast method to transfer the decoded frames back to System RAM...
Is this architectural or a driver limitation?
madshi
25th March 2011, 18:42
You've said you're working on a version of madVR that can work with DXVA, right?
No, I didn't.
So that would mean that all the stuff you do would be on the GPU. But what kind of limitations would that place on you? Would you be constrained by all the things that AMD and nVidia do wrong in DXVA, thus making madVR not as effective as doing software decoding and bypassing all that?
If I ever implement DXVA support then it will be without quality compromises. Well, except for bugs in the hardware decoders, that will be out of my hands in any case.
madshi
25th March 2011, 18:44
Is this architectural or a driver limitation?
A driver limitation, IMHO. But confirmed by about 40 ATI madNV12Test results I received.
SamuriHL
25th March 2011, 19:00
No, I didn't.
My mistake. Sorry about that.
If I ever implement DXVA support then it will be without quality compromises. Well, except for bugs in the hardware decoders, that will be out of my hands in any case.
That would be some insane magic going on then. :) Even Nev's implementation for nVidia cards is going to be limited by the hardware decoder, so, that part's ok. Although, I care less about DXVA support with madVR if I can get Nev's decoder working on that machine. I'd hate to upgrade that machine just for video decoding as it does most everything I need except for madVR. DXVA would be one way to get it working. Nev's is better since I have an nVidia card in that machine anyway. On my quad core I have an AMD but it's fast enough to handle all software decoding that I've thrown at it. DXVA would just be nice for those that have slower machines that want to take advantage of madVR if they can't use Nev's decoder. (I.E. non nVidia users I guess)
pankov
25th March 2011, 20:16
One big plus on DXVA decoding/rendering is that it can take advantage of the Vector Adaptive Deinterlacing present on both ATI and NVidia.
I just hope that Nev's implementation will support deinterlacing and still work with madVR.
All this talk about nVidia and their advantages in decoding / copying frames back to System RAM forces me to consider changing my video card.
I'd appreciate if you guys ... especially madshi ... share your opinion about AMD/ATI 5750 vs. GeForce GTS 450.
On one side the NVidia card has all the decoding goodies (CUVID) and problems with custom resolutions/timings and black levels and on the other the AMD has support for PowerStrip and working black levels settings but no UVD access.
So which one do you prefer?
nevcairiel
25th March 2011, 20:21
NVIDIA doesn't call it "Vector Adaptive", but yes, you can use Adaptive Deinterlacing with my decoder, it will basically do the deinterlacing while its still in the GPU, directly after decoding, then copy the progressive frame back to system RAM and send it to madVR.
Personally, i don't have any issues with black levels or custom resolutions. The only "problem" i have is that i can't get any better then 23.9766 (target would be 23.9760), but ReClock solves that issue.
I have a GTS 450 in my HTPC.
Also, i'm nearly done now, just fixing some problems in the media type negotiation between the codec and the renderer .. who thought negotiating the stride/pitch would be so complicated to handle.
SamuriHL
25th March 2011, 20:25
Yea, I need to try 23.976 again and see if that solves the very small stuttering I was noticing last night when playing with some of the MKV's I have with DXVA. (I was testing out the Cyberlink decoder's DXVA in MPC-HC...worked well but, as noted, the small stuttering). I set it to 24Hz, though. I should try 23.976 and see if that fixes it. If not, I may have to reinstall ReClock and only use it in MPC-HC.
madshi
25th March 2011, 20:37
I'd appreciate if you guys ... especially madshi ... share your opinion about AMD/ATI 5750 vs. GeForce GTS 450.
On one side the NVidia card has all the decoding goodies (CUVID) and problems with custom resolutions/timings and black levels and on the other the AMD has support for PowerStrip and working black levels settings but no UVD access.
So which one do you prefer?
I can't really say much about it right now. Both NVidia and ATI have their advantages and disadvantages. I might be able to work around some or all of them, or maybe not. Ask me again when madVR has reached v1.0.
who thought negotiating the stride/pitch would be so complicated to handle.
Tell me about it. From the view of the renderer it's just as much a pain as from your view. Every decoder wants to have it differently. I had to make madVR behave somewhat weird to make it work with all decoders. If you have any questions just let me know.
jmone
25th March 2011, 21:59
Hi nevcairiel, are you still looking at a BD release in .20?
mindbomb
25th March 2011, 22:27
my brother discovered a problem file with lav splitter (although, it could be a bug with mpc hc.)
Using the mpc internal subtitle renderer, and lav splitter, the player couldnt play back the subtitles of an .mp4 file with apparently vobsub subs.
Now I was under the impression that you couldn't mux those type of subs into an mp4 to begin with, so i dont know what to make of this.
The splitter was seeing them properly though.
nevcairiel
25th March 2011, 23:12
Hi nevcairiel, are you still looking at a BD release in .20?
Sure, just no idea when it'll be out.
BatKnight
25th March 2011, 23:38
Sure, just no idea when it'll be out.
What about the CUVID implementation? Are you planning on releasing it after the 0.20 or before?
Nuno
nevcairiel
25th March 2011, 23:40
Please redirect all CUVID discussion to the appropriate thread: http://forum.doom9.org/showthread.php?t=160290
adam777
26th March 2011, 00:19
A driver limitation, IMHO. But confirmed by about 40 ATI madNV12Test results I received.
madshi, not to spam this thread too much, but would you mind confirming it with ATI?
I would have done it myself, except I have no idea regarding the technical stuff...
http://developer.amd.com/support/KnowledgeBase/pages/HelpdeskTicketForm.aspx?Category=2&SubCategory=8
madshi
26th March 2011, 08:24
madshi, not to spam this thread too much, but would you mind confirming it with ATI?
No use. Getting a reply from ATI dev support is like winning a lottery. Seems to me if they like the topic they might reply (with long delays, though). If they don't, they simply won't reply at all.
adam777
26th March 2011, 10:58
No use. Getting a reply from ATI dev support is like winning a lottery. Seems to me if they like the topic they might reply (with long delays, though). If they don't, they simply won't reply at all.
:thanks:
Mercury_22
26th March 2011, 17:38
Is Windows SDK v7.1 really necessary for those with VS2010SP1 to compile LAV filters ? (since the problem with VS2010 SP1 & Windows SDK v7.1)
nevcairiel
26th March 2011, 17:42
Is Windows SDK v7.1 really necessary for those with VS2010SP1 to compile LAV filters ? (since the problem with VS2010 SP1 & Windows SDK v7.1)
7.0a should work just fine as well.
That reminds me, i should probably get SP1 at some point.
SamuriHL
26th March 2011, 17:44
7.0a should work just fine as well.
That reminds me, i should probably get SP1 at some point.
Yes, yes you should. :) I need get my dev env setup still. I haven't had time yet. Would like to be able to pitch in here and there.
mindbomb
27th March 2011, 06:16
This 200mb sample is out of sync when played with lav audio decoder:
http://www.megaupload.com/?d=HFYOGAB5
It has flac audio, and I was using lav splitter as well.
also, did you take a look at the really large sample i sent you?
fastplayer
27th March 2011, 09:52
Playing around with LAVAudio and I can't figure out how to properly setup the channel mapping to downmix 5.1 to stereo... :o
With this setup I hear no voices: FL->1, FR->2, FC->1,2, LF->1,2. Obviously, I'm doing something fundamentally wrong...
Edit: Front Center needs to be mapped to channel 3 otherwise it never gets outputted.
nevcairiel
27th March 2011, 10:47
You're playing in the code?
The channel mapping tables do not support mixing, if one number is encountered twice, the previous channel is being overwritten.
fastplayer
27th March 2011, 11:00
You're playing in the code?
The channel mapping tables do not support mixing, if one number is encountered twice, the previous channel is being overwritten.
Sorry for the confusion! I was talking about MPC's audio switcher.
I realized that I don't need to enable custom mapping at all. It sounds the same either way.
Carpo
27th March 2011, 13:05
nevcairiel - is there any chance you could add thumbnail extraction to your splitter? Seeing as haali removed it from his, and i do not like to have to use DivX to do the thumbs, if possible i would like to stay away from MF altogether.
Under linux there is a program called ffmpegthumbnailer, that i used to make the thumbs for all my videos, looks like it could be used on windows too.
There is one mkv i did that causes exporer.exe to have fits when it tries to make a thumbnail for it, yet under Linux it was fine.
Would be a nice feature, but i understand if you would prefer not to add it.
BatKnight
27th March 2011, 13:07
This 200mb sample is out of sync when played with lav audio decoder:
http://www.megaupload.com/?d=HFYOGAB5
It has flac audio, and I was using lav splitter as well.
also, did you take a look at the really large sample i sent you?
I've noticed the same thing. It only happens with LAV Audio and FLAC tracks.
Nuno
mindbomb
27th March 2011, 15:07
Sorry for the confusion! I was talking about MPC's audio switcher.
I realized that I don't need to enable custom mapping at all. It sounds the same either way.
if you using directsound as your audio renderer, it will automatically downmix things to whatever windows is configured for.
diizzy
28th March 2011, 00:14
I've mentioned some of this earlier without response so I'll give it a try again.
Is it intentional that LPCM tracks doesn't connect to either ffdshow and/or MPC-HCs filter (VOBs)?
I also have a few MKVs that loads but doesn't play/show any frame at all (MPC-HC), are compressed headers etc fully supported?
It would also be nice if you could set file types to handle instead of all or nothing since a few features are lacking for at least Matroska such as embedded fonts and compatibilty issues.
I highly appreciate the work going into this project.
Thunderbolt8
28th March 2011, 09:55
does DTS mean HD audio like DTS-HD MA works as well?
and are 2in1 .mkv movie version supported? (those which are originally seamless branching BDs and now work with chapters when being remuxed)
nevcairiel
28th March 2011, 09:57
does DTS mean HD audio like DTS-HD MA works as well?
In the Splitter it works just fine, in the audio decoder only the DTS Core will be decoded, not the HD extensions.
and are 2in1 .mkv movie version supported? (those which are originally seamless branching BDs and now work with chapters when being remuxed)
Not yet, no.
BatKnight
28th March 2011, 18:05
@nevcairiel
Since you are working on the splitter, would you please look into the sync problems of LAV Audio when playing movies with FLAC tracks?
I do a lot of remuxes to FLAC and have a lot of movies with this problem.
Thanks
Nuno
nevcairiel
28th March 2011, 18:23
I don't see the relation between working on the splitter and fixing audio decoder bugs, but okay!
In any case, there are several good FLAC decoders around, and you can configure formats now in LAV Audio .. i'm not exactly sure when i'm going to have time to look into it. I recommend madFlac
BatKnight
28th March 2011, 18:54
I don't see the relation between working on the splitter and fixing audio decoder bugs, but okay!
In any case, there are several good FLAC decoders around, and you can configure formats now in LAV Audio .. i'm not exactly sure when i'm going to have time to look into it. I recommend madFlac
I'm sorry.
I just thought that since LAV Audio is part of the LAV Splitter, that you could look into it.
And yes, madFLAC is a great decoder, and this bug is not urgent. Just a reminder.
Do you have a a bug tracker I could fill for this LAV Audio issue?
Nuno
neoufo51
29th March 2011, 01:46
Just out of curiousity, what's keeping this splitter from being added to MPC-HC right now?
jmone
29th March 2011, 09:42
Hi nevcairiel, thinking outloud with the BD splitter, I understand we will at some point be able to select a playlist (from the mpls) but is there any meta data available to say what each playlist is? Eg. Is there any data in the mpls that will let you display that a particular playlist is say the Std or Extended play etc?
nevcairiel
29th March 2011, 09:45
Hi nevcairiel, thinking outloud with the BD splitter, I understand we will at some point be able to select a playlist (from the mpls) but is there any meta data available to say what each playlist is? Eg. Is there any data in the mpls that will let you display that a particular playlist is say the Std or Extended play etc?
No.
You can get the length, though, which should give you some hints.
They do not contain such data because it usually relys on menus to navigate.
jmone
29th March 2011, 09:59
True - makes "alternative endings" a tough guess however (but we can not have everything!)
jmone
29th March 2011, 10:00
mmmm does the order in the mpls give any clues - eg is the "first" of the longer playlists the "std" one, the second the "alternative ending" etc or is this a very long bow to draw do you think?
nevcairiel
29th March 2011, 10:33
I don't think you can really rely on that.
jmone
29th March 2011, 11:03
I guess we will test and see all in good time
bjd
29th March 2011, 11:58
I don't think you can really rely on that.
You can't - take the seamless branching titles from Pixar with different language variations for the titles such as Wall-E and ToyStory 3. It is almost pot luck whether you get German, French or English :confused:
Kotik
29th March 2011, 13:06
Hello there,
Nev are you planning in adding bit-streaming in the future?
Thanx in advance.
fastplayer
29th March 2011, 13:10
Hello there,
Nev are you planning in adding bit-streaming in the future?
Thanx in advance.
http://forum.doom9.org/showthread.php?p=1425964#post1425964
SamuriHL
29th March 2011, 13:43
Seamless branching is a crapshoot. Basically there's no way to identify what playlist is what. The length is even deceiving at times. The only way to do it properly is with menu support, and for that I suspect you're going to need libbluray integration which I have no idea where that stands. Just basic mpls playback will be great for now so that we don't have to rely on mpc-hc's internal stuff.
nevcairiel
29th March 2011, 13:52
I've been told menu support is "ok-ish", but getting it working in DirectShow is still a crapload of work.
SamuriHL
29th March 2011, 14:14
Not surprising. Bd-j couldn't have been easy to implement, either.
nevcairiel
29th March 2011, 14:37
I'm not sure about BD-J support, i've only seen some infos about HDMV menus. But anyway, thats a topic for another day really.
Just a quick status report on the BD support:
- Languages are being passed on to the stream selector (one disc i had showed only a language for one stream, testing/debugging needed)
- Chapters are exported for selection
- Seamless playback works (at least on the one disc i developed it on, more testing required)
Issues right now:
- Seeking causes some frames to be dropped (takes maybe 1s for playback to stabilize) - but not really a blocker
- Title switching still gives me a headache
SamuriHL
29th March 2011, 15:09
Very nice. When you're ready for testers i'll be ready. :-)
Mercury_22
29th March 2011, 18:37
When trying to compile latest LAV I get "...\libbluray.vcxproj" could not be found.
P.S. I'm downloading the zip source :) and the libbluray folder it's empty
nevcairiel
29th March 2011, 18:38
You need to grab it manually (also, need to grab my modified version):
http://git.1f0.de/gitweb?p=libbluray.git;a=summary
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.