View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
jmone
12th February 2011, 11:52
OK - thanks, I'll keep an eye out and if I notice a pattern I'll let you know
v0lt
12th February 2011, 22:58
small cosmetic bug
http://img69.imageshack.us/img69/6100/lavaudiocosmeticbag.th.png (http://img69.imageshack.us/i/lavaudiocosmeticbag.png/)
nevcairiel
12th February 2011, 23:12
Well when the codec name is too long for the field, then the codec name is too long for the field. :P
I like aligned fields, and Sample Rate is just a long term. There are a few pixels so that i can move it slightly to the left, but not much.
jmone
13th February 2011, 00:38
It also happens on some real BD discs. I found one in my collection after checking maybe 10 discs. There might be more, i stopped looking then. Didn't see a relation between codecs or anything.
Had a bit more of a ferret around. For me it is probably as high as 20 or 30% with this issue (over about 10disks). At first I thought it was all with a playlength above 2hrs, but I've found execptions to this both ways. I've tried muxing, remuxing, cross muxing and found that of the three (from 10) I have issue with
1) remuxing the one under 2hrs to M2TS fixed the issue
2) remuxing an over 2hrs one to M2TS made no difference
3) remuxing an over 2hrs one to TS or MKV fixes the issue (but then of course you can not use it as a part of the Blu-ray structure. I did try remuxing the working TS back to M2TS and the issue reappeared. I tried renaming the TS to M2TS but TMT5 whould not play the structure then).
Mmmmm....I give up on this one (for now)
Thanks
Nathan
As an aside..... this testing is all part of working out the pros and cons of how I want to store and play my collection from the server (MKV, M2TS, Blu-ray ISO, Blu-ray Structure)...and the balance of the bugs / limitations of the various components (filters, playback progs etc). Part of the thinking is working out what splitter to use for what type. Like most we probably started off with Haali then found some bugs, and started looking for alternatives.
Unfortunatly as the "seeking bug" on "some" M2TS files is outside your control to fix (eg an ffmpeg issue), it kind of rules LAV Splitter out as a reliable option for this file type.
nevcairiel
13th February 2011, 09:48
I will be working on BluRay support soon, which should fix those issues for m2ts in BluRay structures as libbluray handles those then, and not ffmpeg alone anymore. I can't give any solid ETA though, as it all depends on my free time.
jmone
13th February 2011, 10:45
Mate - your work on all of this is terrific. Let me know if you want anything tested.
SamuriHL
13th February 2011, 13:28
Has libbluray come that far along where it's ready to be implemented? Neat. I can't wait to see how that works!
nevcairiel
13th February 2011, 13:40
At first it'll support seamless playback of multi part m2ts and title/playlist selection, probably through the stream switcher at first. I'll create a new title selection interface and hook it into the navigation sub menu in mpc-hc eventually.
SamuriHL
13th February 2011, 14:04
That'll be pretty sweet. Can't wait.
jmone
13th February 2011, 19:41
So we will have a direct show based navigatin filter for Blu that we can load into any of the direct show players?
SamuriHL
13th February 2011, 19:48
That's the stated goal of libbluray, yes. I knew MPC-HC was going to integrate it at some point, but, it's good to see that Nev is looking into it. This is very good news.
jmone
13th February 2011, 19:52
This is just terrific and changes the whole storage setup for me!
SamuriHL
13th February 2011, 19:56
It doesn't change my backup strategy, but, it'd turn MPC-HC into a viable player for playing rented discs. THAT is awesome.
nevcairiel
13th February 2011, 20:15
I dont mind putting my disc in and watching it like that. Somehow it just feels better to me like that then watching a file dump.
In any case, yes it should be supported by every player. However for proper navigation support, and at a much later stage menu support, the player will have to support it.
SamuriHL
13th February 2011, 20:20
So the libbluray library doesn't give all that support for free? Interesting. Well, at least you're going to be able to make use of it. That'll be a great first step.
nevcairiel
13th February 2011, 20:30
I am not sure what you mean with "for free".
But the player of course needs some way to show what content is available and offer an interface to navigate to it, switch angles and whatnot.
Same for menus. I can provide an image of the menu, but the player needs to take care of forwarding key clicks and mouse clicks (although i havent seen mouse support in any commercial BD app, maybe its not possible with the info we have, maybe its just forbidden by the spec)
There are also some special events, like the graph needs to rebuild when the title was changed. New audio/video streams etc. All this needs to work with the player.
SamuriHL
13th February 2011, 20:32
Ah, I see. I was thinking libbluray would give that to the player. (That's what I meant by "for free"...meaning the player wouldn't have to do anything in order to use it). Clearly I was mistaken. That's going to be quite a bit of work for MPC-HC to implement. I know tetsuo55 said that would be done at some point but given how few devs there are to implement such a big feature, I'm guessing that will be a while before we see all of that implemented.
nevcairiel
13th February 2011, 20:34
Since mpc-hc is my player of choice, i'll implement this in the player as the features are being developed in lav splitter.
SamuriHL
13th February 2011, 20:37
Well that would be awesome! Maybe I'll have to get an MPC-HC build environment set up so I can assist. :)
jmone
13th February 2011, 20:59
In any case, yes it should be supported by every player. However for proper navigation support, and at a much later stage menu support, the player will have to support it.
Ive asked the devs at J River MC to reach out to you on this (note they have been working with madshi at the other end of the graph and have been modding their code to suit)
nevcairiel
13th February 2011, 21:01
Like i said, its far from being done, and it might be a while. But i appreciate any support, and player support is always great. :)
SamuriHL
13th February 2011, 21:05
Don't worry...it'll probably take me "a while" to get everything set up. I had ffdshow set up to build at one point but I don't even think I have that saved anywhere at this point. I learned this week that my C++ skills are.....um, "rusty"...after blowing a paper test on an interview. sigh. So, this would be beneficial for many reasons. :)
nevcairiel
14th February 2011, 07:47
Heh, neither MPC-HC nor ffdshow are projects that one should use to learn or even dust off C++, its basically a big catalogue of how not to do things.
SamuriHL
14th February 2011, 14:36
Yea, I remember when I was looking at the ffdshow code when Albain was implementing bitstreaming. It's a bit of a mess, no doubt. The sad part is, I'm actually really good at C++ and Java and blew the tests because they were given to me on paper. Who codes on paper??? I need a freaking living, breathing system in front of me in order to do my best work. BLAH! :D In any case, I really should get my stuff setup and start contributing when I have time.
Zero1
14th February 2011, 17:42
I can't seem to get it to install whatever I do. UAC is turned off, and I still ran cmd as administrator, dragged the batch into the window and hit enter. I even went and put all the files in syswow64 (trying to install the 32bit) and still no go. 0.14 32bit. (Win7)
http://img217.imageshack.us/img217/3683/reeg.png
Anyone have any ideas?
nevcairiel
14th February 2011, 17:48
Sounds like you're missing the VS2010 runtime. Check the first post for links.
I should supply an installer.
Kurtnoise
14th February 2011, 20:19
Feel free to start with my own nsis scripts...
-> script for x86 machines (http://pastie.org/1563882) (must be in the root folder)
-> script for x64 machines (http://pastie.org/1563883) (must be in the root folder)
>> LAVF DSPack x86 (http://www.mediafire.com/?v691bdsv1dgvrtt) | LAVF DSPack x64 (http://www.mediafire.com/?ww319bx9i9d3xsk)
BelowSky
14th February 2011, 22:03
Sounds like you're missing the VS2010 runtime. Check the first post for links.
I should supply an installer.
And I think you should consider statically linking the VS10 runtime. Anyways, it was made for those bureaucratic companies like Nero and CyberLink and others who was afraid of being accused of being part of MS software vulnerabilities.
B.S. IMHO, MPC-HC and FFDShow are using InnoSetup, it is very frequently updated, have many built in features and checks. Not to mention its unmatched GUI. I think LAV Filters should go with that route.
NSIS is too complex for such a simple software.
Zero1
15th February 2011, 00:42
Success. Thanks for the tip guys (I really should have read the first post, but it's the first time I've encountered something like this when registering .ax files).
ALS doesn't seem to work with Haali's splitter; I presume an update would be needed from Haali? After that I uninstalled Haali and installed the supplied splitter. Works perfect in MPC, but WMP gives me some useless generic error message that tells me nothing about the error. I also loaded the file in graphedit and it said it couldn't build a graph. Any ideas?
In an ideal world I'd like to use these audio decoders but use my current splitters (Haali).
Also how far off are features like decoding RLSLMS. Is that something you are working on, or is this simply the code from jruggle packaged into an ax? I presume jruggle's project is stalled since I've not seen anything since August or so.
nevcairiel
15th February 2011, 07:51
The thing is that my own splitter has a more direct communication to my audio decoder, thats why they will always work with any format you throw at them. For other splitters it requires a bit more effort
As long as Haali identifies ALS properly, i can probably configure the audio decoder to accept it. I'll have to test with Haali how it identifies and exposes the ALS audio track.
For WMP, it could be possible that its trying to use the Media Foundation MP4 demuxer (I'm assuming you have it in MP4 containers). In that case, it won't be that easy to convince it to use DirectShow. But i'll see about testing that as well.
And this is the ALS decoder thats supplied in ffmpeg. If that does not support RLSLMS, then we're out of luck.
Zero1
15th February 2011, 14:43
Hi. I did disable media foundation stuff for MP4 using the tool here:
http://forum.doom9.org/showthread.php?t=146910
That said, if the ALS decoder project has stalled, then I will probably just use FLAC. Without RLSLMS there isn't much point in using ALS imo (simply the greater compression ratio for myself personally).
I'll keep an eye on this thread for any progress though, and wish you the best. It really would be ace if ALS support could finally take off.
mindbomb
15th February 2011, 23:06
ffprobe correctly reports 01:30:15.81 for the main Commando .m2ts
so doesn't this mean there is no ffmpeg bug?
Hypernova
16th February 2011, 08:12
Just tried this. So far so good. The only thing I want to report is the batch file for uninstalling doesn't work since the file names is incorrect. I guess it was left unchanged since the old .ax name.
nevcairiel
18th February 2011, 09:45
Anyone happen to have some files with non-standard speaker configurations?
Anything thats not Mono/Stereo/5.1/7.1?
I actually have some 5.0 AC3 files, and they don't play properly with my hardware. I'm not sure if the NVIDIA HDMI Driver is doing it wrong, or my receiver interpreting the data wrong, but it interprets it as 4.1 (so the Center channel gets routed to the LFE - results in no voices). I'm trying to work on some small fixes (like adding an empty LFE channel to expand it to proper 5.1), but i need some more samples in different speaker layouts to make sure i don't break anything else.
Note that my 5.0 files don't play properly with MPC audio decoder or ffdshow either, unless i set the mixer in ffdshow to 7.1 (5.1 doesn't help).
So, anyone happen to have 4.0, 4.1, 6.1, 7.0 samples? (or possibly 2.1, 3.1, 3.0, not sure if those exist anywhere in real files)
adam777
18th February 2011, 14:44
nevcairiel, sadly I have not time, but you might want to have a look at http://people.bath.ac.uk/masrwd/mctools.html, seems to be able to create whatever multichannel file you need.
VipZ
19th February 2011, 13:05
So, anyone happen to have 4.0, 4.1, 6.1, 7.0 samples? (or possibly 2.1, 3.1, 3.0, not sure if those exist anywhere in real files)
If I am not mistaken, some of the early Stargate SG-1 DVD's have 2.1, 3.1 or 3.0. I will take a look on them bit later for you, and post samples if found.
nevcairiel
19th February 2011, 15:35
Hm i have a DVD box set of those as well. I'll try and see if they are any special.
Ger
19th February 2011, 16:54
I just skimmed through some archived avi/ac3 versions of those using the handy MediaInfo tooltip, and provided they match the original DVD there are both 3.0 and 3.1 tracks in seasons 2, 3 and 4. The first two episodes in season 3 have 3.0 and 3.1 tracks respectively here.
While 2.0 and 5.1 sounds fine, I can't hear any dialogue in my headphones with 3.0 or 3.1, only background music etc. Both sound fine with MPC-HC AC3 decoder with downmixing to stereo enabled.
If you can't find the DVDs I can upload one of each, but it will take a while.
nevcairiel
19th February 2011, 16:59
Sounds like the same issue i had with my 5.0. I know where the DVDs are, just have to see if they are the same version.
VipZ
19th February 2011, 17:33
I have made a 3.1 sample, I couldn't find a 3.0, if you could point me to the correct ep, I can make a quick sample, this was taken from Stargate SG1 Season 2 EP1 (UK Boxset) http://www.mediafire.com/?zcj2lzamt18b6l4
My Season 3+ are all 5.1 as far as my random testing goes.
On other bugs, There are still stuttering issues with OGM files with subtitles, and rarely MP4 files don't play (video frozen but audio plays), let me know if you want samples. Not sure if VOB's are supported as when trying to check for the 3.0/3.1 streams I found it stutters badly.
Ger
19th February 2011, 18:01
This probably won't help you then since there must be different versions around, but anyway:
I don't have any 3.0 eps in season 2. The first four season 2 eps are 3.1 and all others 2.0 here.
These are the only ones I could find in 3.0:
S03E01 Into The Fire
S04E13 The Curse
S04E14 The Serpent's Venom
S04E15 Chain Reaction
S04E16 2010
nevcairiel
19th February 2011, 20:40
The 3.1 sample is great, thanks. A 3.0 sample would be nice, i checked my DVDs, but they are all either 2.0 or 5.1, must be another edition.
I'll probably offer an option to expand those "odd" formats into 5.1. Either with silence, or with a copy of the front channels for the surround (possibly with a factor to make them a bit quieter).
I do want to offer a Low-Pass to fill a non-existant LFE channel, but implementing a FIR filter for the low-pass will be postponed a bit.
I'll also think about full matrix operations to allow stereo downmixing.
AC3, DTS and TrueHD offer native Stereo Downmixing. All other formats need custom matrix processing to get the channels merged. I'll work on that soon.
Ger
19th February 2011, 21:39
A 3.0 sample would be nice, i checked my DVDs, but they are all either 2.0 or 5.1, must be another edition.
See PM for sample.
FWIW, the MPC-HC AC3 decoder sounds good with voices no matter what speaker config I set in the decoder. 3.0, 3.1, 5.1 2.0 etc. I can hear volume differences, but the voices are always there.
nevcairiel
19th February 2011, 21:40
My 5.0 sample did not work properly with any decoder, which was rather weird. Oh well.
mindbomb
21st February 2011, 04:50
I'll also think about full matrix operations to allow stereo downmixing.
AC3, DTS and TrueHD offer native Stereo Downmixing. All other formats need custom matrix processing to get the channels merged. I'll work on that soon.
awesome.
do you think you might also add a 5.1 downmix for flac and truehd?
Hypernova
21st February 2011, 10:17
I'm having trouble with mkv files with softsub and xvid. It seems like the correct font won't load. The color and style seems file, but instead of specified fontface, the default was used. Haali and MPC-HC internal spilter works correctly.
An example is any of Jumonji-Giri's release of Canvas2. I'm not sure how much I can say before I violate forum rules..
nevcairiel
21st February 2011, 10:18
The files are supposed to ship their own font inside the .mkv i assume? Thats currently not supported yet, but its on my list.
Hypernova
21st February 2011, 10:23
The files are supposed to ship their own font inside the .mkv i assume? Thats currently not supported yet, but its on my list.
You're right. Sorry I didn't check the issue tracker before posted. Thanks for the very quick reply!
adam777
21st February 2011, 23:10
Hi nevcairiel,
I'm using the splitter and audio decoder without any problems in MPC-HC for quite some time, so thanks :thanks:
Now, I wanted to use the audio decoder in a DVB-T application as it seems to be able to decode the HE-AACv2 format correctly (i.e. decode as stereo), judging by an MPEG-TS dump I recorded and played in MPC-HC (the file contains multiple programs in one file (broadcasted over same frequency), so it doesn't seem to be the cause).
Problem is, the application seems to load only the audio decoder, not the splitter (I can see only LAVAudio.ax used by the application in Process Explorer).
It results in no audio, could the problem be related to something else (live stream etc.)?
I've already contacted the application author (http://pvr.sichbo.ca/), but is there something that can be done on your side to resolve the problem?
2 things are worth noting.
- While I'm not sure which splitter is being used (could not utilize remote graph connection, but I can probably list .ax files in Process Explorer), the video decoder is the built in Microsoft H.264 decoder and it plays nice with both monogram AAC decoder (http://blog.monogram.sk/janos/2009/03/08/monogram-aac-decoder-0960/) and Libfaad2 wrapper filter (http://www.dvbviewer.tv/forum/topic/23347-libfaad2-wrapper-filter/).
- I tried increasing the merit of the splitter, but it didn't seem to help (or I messed it up somehow :)).
Thanks, Adam.
nevcairiel
22nd February 2011, 07:49
DVB apps have their own source filters/splitters. LAV Splitter only works with file based media, or potentially network streaming (some day), but not DVB-T tuner cards.
You say the audio decoder loads, does the audio play properly? If so, whats the problem? :)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.