View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
BloodySword
23rd May 2011, 19:21
The splitter does not accept to connect to ffdshow Audio Decoder when splitting MPEG2 with LPCM or PCM in WAV-Files. Is this by design?
nevcairiel
23rd May 2011, 19:34
What about making it easier for users to control the filter's merit?
The filters merit can only be controlled with UAC elevation, so its not possible to change it from within the properties page, unless the player is launched with elevation, which isn't really something people will want to do.
I'm sorry, but i don't write software for clueless users, thats what those codec packs are for, which do the merit adjustment for them.
I'll add that low-merit compile mode at some point, if that helps codec packs makers or something.
wo0zy
23rd May 2011, 19:41
TV applications typically have their own source filter and mpegts demuxer, therefor LAV Splitter doesnt really fit into that picture to begin with.
LAV Audio might work with it, depending on the source filter. If the source unpacks the PES data, it will work, if the source directly sends the PES stream without unpacking, it will not.
FWIW, DVBViewer works fine with LAV Audio and LAV CUVID.
I'd taken that as a given and was preferring to LAV Audio. How the h**l Assassin got LAV anything into MC7's live TV chain without seriously messing it up is the mystery to me (but I've honestly never tried).:p
LAV audio in MP is working well for me with one exception but I won't bore you with that until you've finished more important features ;)
All the best,
Wo0zy
wo0zy
23rd May 2011, 19:56
Now there is a NIC that broought back a flood of early HTPC memories trying to get those Intel G33 working at 24hz (shudder). I expect to see archibael show up next!
Hehe. I'm very much still around mate and still working with Intel stuff during the day (by night I'm an ATI guy ATM but don't tell anyone :p). I think Archibeal is watching but not posting so much these days.
If only JRiver would extend DVR support to DVB-S (and improve DVR support in general) then you'd have come across me a lot more. I love it other than that and appreciate the work you've done over there.
Good to hear from you mate.
All the best,
Wo0zy
PS Sorry for OT post Nev. Won't happen again :)
assassinhtpc
23rd May 2011, 19:58
I'd taken that as a given and was preferring to LAV Audio. How the h**l Assassin got LAV anything into MC7's live TV chain without seriously messing it up is the mystery to me (but I've honestly never tried).:p
LAV audio in MP is working well for me with one exception but I won't bore you with that until you've finished more important features ;)
All the best,
Wo0zy
Like I said I am trying to help a friend.
Since I am a "clueless user" I will wait on my TV tuner card to arrive and try this out first hand.
I think its pretty limited thinking to restrict yourself to "non-clueless users" btw.
I am trying to be as nice as possible here. Don't appreciate being insulted when I am trying out something new (for me anyway) with your splitter. And I am a LAV supporter.
BloodySword
23rd May 2011, 20:01
Sorry for doubleposting, but:
The splitter does not accept to connect to ffdshow Audio Decoder when splitting MPEG2 with LPCM or PCM in WAV-Files. Is this by design?
nevcairiel
23rd May 2011, 20:04
I think its pretty limited thinking to restrict yourself to "non-clueless users" btw.
Its not like i get paid or anything, so shrug.
I do this for fun, and dealing with complaints why WMC broke is not something i find entertaining. If it works for you, great, if it doesn't - well, "i told you so" comes to mind.
All i ask of people is that they know how to install a DirectShow filter manually, and know what that means for them. If they don't, then they better stick with an automated codec installer.
PS:
If "clueless user" is an insult to you, which i didn't even address at you specifically, then i'm sorry. (i would however wonder how you survived on the interwebs until now)
assassinhtpc
23rd May 2011, 20:09
Its not like i get paid or anything, so shrug.
I do this for fun, and dealing with complaints why WMC broke is not something i find entertaining. If it works for you, great, if it doesn't - well, "i told you so" comes to mind.
All i ask of people is that they know how to install a DirectShow filter manually, and know what that means for them. If they don't, then they better stick with an automated codec installer.
PS:
If "clueless user" is an insult to you, which i didn't even address at you specifically, then i'm sorry. (i would however wonder how you survived on the interwebs until now)
I never complained. I asked how to get it working. I appreciate your work on all of this and even started the LAV thread over at AVS.
I thought my initial question was very cordial and appropriate. Sorry if I somehow angered you or brought up a sore subject.
I use WMC and it works for what I use it for. Evidently it doesn't work for how many in this thread use it.
nevcairiel
23rd May 2011, 20:17
Your question was way too general, don't expect to get those answered here.
I will nearly always ignore questions where i had to ask three follow up questions just to get in the overall area of what you wanted.
Lets take this as an example:
Any issues with live tv files?
First off, live tv is files now? :)
Secondly, what live tv? Yes, i can use it fine with DVBViewer. It also works fine with MediaPortals TV thing.
You basically supplied no information whatsoever, and you bumped your own question just a few posts later.
Thats something i'll just ignore - thats not proper forum conduct, and i'll not reward it with a response (especially because i cannot answer your question without asking 3 other questions first).
Maybe this can help you formulate better questions in the future.
PS:
AFAIK, Live TV in WMC only works with the Microsoft components, because WMC is completely locked down.
assassinhtpc
23rd May 2011, 20:21
Your question was way too general, don't expect to get those answered here.
I will nearly always ignore questions where i had to ask three follow up questions just to get in the overall area of what you wanted.
Lets take this as an example:
First off, live tv is files now? :)
Secondly, what live tv? Yes, i can use it fine with DVBViewer. It also works fine with MediaPortals TV thing.
You basically supplied no information whatsoever, and you bumped your own question just a few posts later.
Thats something i'll just ignore - thats not proper forum conduct, and i'll not reward it with a response (especially because i cannot answer your question without asking 3 other questions first).
Maybe this can help you formulate better questions in the future.
Points well taken. I will get specific information and report back. Thanks for the help and guidance.
Mercury_22
23rd May 2011, 20:39
I don't think the subtitles are fake, it detects them properly, and the subtitle PIDs are set properly. Looks just fine.
BTW, the MPC-HC splitter doesn't detect the second video stream at all on the beginning, it just finds it after a few seconds of playback. I think its either broken, or the stream starts really late in the file, i am filtering video streams without a resolution now.
Anyhow, i also increased the size of the probe buffer, which makes it detect the stream.
:thanks: for the second video stream (incidentally yes it's a PIP stream)
Now only if you could make the audio for this video stream work ... it's the DTS Express [secondary] stream
When playing the full m2ts file or the index.bdmv and I'm selecting this secondary audio (the DTS Express stream) MPC-HC stops (freeze) playing and it's continuing to play only when I select another audio (I know that on the sample it's continuing to play without sound)
P.S. I don't now if you saw my post before so (if it's of any use to you) again the disc is "The Crimson Wing: Mystery of the Flamingos" (http://bluray.highdefdigest.com/3563/crimsonwing.html)(US)
Edit if you need a bigger sample let me know
nevcairiel
23rd May 2011, 20:42
Now only if you could make the audio for this video stream work ... it's the DTS Express [secondary] stream
DTS Express is a pure HD stream, only the ArcSoft decoder would be able to play it anyway, it does not have a "core" to play with other decoders.
Its planned to support it at some point in LAV Audio (through the ArcSoft decoder), but for now its not supported. Those are only used for PIP audio, anyhow.
Mercury_22
23rd May 2011, 20:49
DTS Express is a pure HD stream, only the ArcSoft decoder would be able to play it anyway, it does not have a "core" to play with other decoders.
Its planned to support it at some point in LAV Audio (through the ArcSoft decoder), but for now its not supported. Those are only used for PIP audio, anyhow.
:eek: OK :thanks: I thought it's already supported (through the ArcSoft decoder)
I'll wait :p
Just wanted to say thanks Nev, for the work you have done on this project. V0.26 with arcsoft dts integration is amazing and has simplified my HTPC set up. I have been testing for a week now and not come up against any issues. So impressed with what you have managed to accomplish.
whurlston
23rd May 2011, 20:59
Points well taken. I will get specific information and report back. Thanks for the help and guidance.
I use the audio decoder for live/timeshifted TV. I sometimes get out of sync audio on Dolby 2.0 channels but I haven't looked into whether it's LAV or not that's causing it.
I don't see why the splitter couldn't be used but the application would have to be written to support it. My prefered software (NextPVR) always uses the MS demux.
andyvt
24th May 2011, 01:15
The filters merit can only be controlled with UAC elevation, so its not possible to change it from within the properties page, unless the player is launched with elevation, which isn't really something people will want to do.
+1 for specialization :)
http://babgvant.com/downloads/lavfiltersettings/filtersettings.png
x86 binary (http://babgvant.com/downloads/lavfiltersettings/lavfiltersettings.zip) (a reboot may be required for merit changes to take effect).
andyvt
24th May 2011, 01:20
I'll add that low-merit compile mode at some point, if that helps codec packs makers or something.
Low merits (like the one in the patch) aren't useful for codec packs or IC graph building because they will almost never join the graph automatically. Instead of escalating the merit "arms race" I prefer to tightly control the merit of filters on my system so I can influence graph building in a much more tactical way.
assassinhtpc
24th May 2011, 02:49
Another question. I'll be as specific as possible here.
I am running Win7 64 bit with an ATI 5450 card bitstreaming to a Denon AVR.
I tried to play an AVI file tonight for the wife and at first there wasn't any sound. Then it wouldn't play at all.
So I completely uninstalled LAV and re-installed it an intentionally left AVI UNchecked. Then I went into WMC (yes, I use WMC) and it played.
So I thought I had it fixed.
Then I used graph studio and selected all my bitstreaming optoins (DD and DTS only as my receiver doesn't decode HD Audio).
I then went back to WMC and the file wouldn't play at all.
Any idea how to fix this?
skingery
24th May 2011, 07:09
Another question. I'll be as specific as possible here.
I am running Win7 64 bit with an ATI 5450 card bitstreaming to a Denon AVR.
I tried to play an AVI file tonight for the wife and at first there wasn't any sound. Then it wouldn't play at all.
So I completely uninstalled LAV and re-installed it an intentionally left AVI UNchecked. Then I went into WMC (yes, I use WMC) and it played.
So I thought I had it fixed.
Then I used graph studio and selected all my bitstreaming optoins (DD and DTS only as my receiver doesn't decode HD Audio).
I then went back to WMC and the file wouldn't play at all.
Any idea how to fix this?
There is a lot going on here.
First, install Mediainfo (Google it). This will let you right-click on a file and see what it contains as far as video and audio. Just saying AVI doesn't give a good clue to what the file contains and then what would play it back.
2nd, my opinion so take it as such, don't mess around with live and recorded TV in Windows Media Center. Just let the native codecs do what they do. I like tweaking stuff as much as anyone here but I've learned to be minimalist when it comes to codecs. I let MS handle TV.
For movies that have been ripped, I use LAV splitter, LAV audio and LAV CUVID for video (since my GPU is Nvidia). I play my movies with MPC-HC so I can tell it to use LAV with out having to muck about with Merit.
A couple other resources for you:
missingremote.com
hack7mc.com
jazzysmooth
24th May 2011, 14:32
Assassin, does that file have DD or DTS audio in it? If you uncheck bitstreaming for those items does it play again?
If you run WMC in a window, play the file, then connect to remote graph with GraphStudio, does it even show LAV in the chain?
+1 for specialization :)
x86 binary (http://babgvant.com/downloads/lavfiltersettings/lavfiltersettings.zip) (a reboot may be required for merit changes to take effect).
That's a cool little app you got there, I was thinking about trying to do something that like, but i am clueless about programming :)
Any chance this could be updated to support x64 as well?
assassinhtpc
24th May 2011, 16:09
Assassin, does that file have DD or DTS audio in it? If you uncheck bitstreaming for those items does it play again?
If you run WMC in a window, play the file, then connect to remote graph with GraphStudio, does it even show LAV in the chain?
Thank you so much for trying to help.
It has Dolby 2.0. Its actually some crappy exercise video of my wife's.
I tried to uncheck bitstreaming and that didn't work.
It does show LAV in the chain and will even play prefect inside the Graph window. Just when I try to play it in WMC do I have issues.
Again, I know that many of you don't use WMC and I recognize that it isn't the greatest player to use but its pretty popular in the US HTPC market. So I am trying to learn how to make everything compatible because I think LAV is absolutely phenomenal.
I ended up using handbrake and ripping it to MKV for her which of course played flawlessly. There is just something simple that probably needs to be changed to get LAV/WMC/AVI to work together.
andyvt
24th May 2011, 16:17
Any chance this could be updated to support x64 as well?
Yes. That would be very easy.
Yes. That would be very easy.
Cool, that would be great :)
nevcairiel
24th May 2011, 19:26
LAV Filters 0.27
General
- Added debug versions which generate log files on your desktop
LAV Splitter
- Fixed a memory leak when switching streams
- Increased probe buffer size (which results in files to be properly detected in more cases)
- Fixed playback of MPEG-TS files with a odd program configuration
LAV Audio
- Improvements to the DTS decoder interface
- Support for 1.1.0.0
- Try to reverse any channel upmixing done by the decoder, outputting the audio as close to the original source as possible.
- New Channel Mapping functionality
- Output only "standard" channel layouts (Mono, Stereo, 5.1, 6.1, 7.1), filling non-existant channels with silence. Required by some HDMI receivers with "odd" source layouts. (default)
- Convert Mono to Stereo (simply double the audio channel)
- Convert 6.1 to 7.1 (Back Center gets doubled into both back channels)
Download: Installer (both x86/x64) (http://files.1f0.de/lavf/LAVFilters-0.27.exe) -- Zips: 32-bit (http://files.1f0.de/lavf/LAVFilters-0.27.zip) & 64-bit (http://files.1f0.de/lavf/LAVFilters-0.27-x64.zip)
So, quick notes about the features:
My AV Receiver isn't particularly happy if it receives multi-channel PCM which is not in a "default" configuration. For example, i was playing 5.0 content some time back, and my center vanished. I *think* it played it as 4.1, sending the center to the LFE.. So anyhow, since you cannot send the channel layout metadata over HDMI, and the receiver only has the channel count to work with, i decided to implement a feature to actually map the output onto those default layouts.
I'm not 100% if its perfect with all codecs and all files, please report if you found any issues.
To help with this, the ZIP files now also contain debug versions of the two filters, which will write a debug log to your Desktop - or so i hope. The log is cleared on every launch, so it won't grow into the extreme.
As always, have fun and take care.
SamuriHL
24th May 2011, 19:30
Thanks, Nev! Looks like fun. :)
Sebastiii
24th May 2011, 19:30
Thanks :) and thanks again :)
madshi
24th May 2011, 19:31
Wonderful, I appreciate the native audio output - thanks!
(Now you got that version out, maybe you can look at the uncompressed YCbCr videos? :))
nevcairiel
24th May 2011, 19:33
Now you got that version out, maybe you can look at the uncompressed YCbCr videos? :)
I'll work on that soon'ish, work is keeping me busy ATM, at the latest on the weekend.
wo0zy
24th May 2011, 19:45
Thanks Nev.
The mono to stereo update should fix one of my little issues :)
All the best,
Wo0zy
madshi
24th May 2011, 19:48
I'll work on that soon'ish, work is keeping me busy ATM, at the latest on the weekend.
Sounds good to me, thanks.
Gleb Egorych
24th May 2011, 20:00
Thanks, nev! :)
assassinhtpc
24th May 2011, 20:29
Thanks Nev!
Thanks, new shiny version :)
Boltron
24th May 2011, 20:50
Thanks, can't wait to test it out.
BloodySword
24th May 2011, 20:59
Hey, Nev, grat work!
I have a small suggestion. The stream switcher is not reachable for me because I use my own player.
Could you please make an optional tray icon for the stream switcher? This would be very nice!
nevcairiel
24th May 2011, 21:00
Maybe you should teach your player. :)
Some day, there might be a tray icon, but not soon.
If you use ffdshow, or madVR - they produce tray icons to switch as well.
BloodySword
24th May 2011, 21:09
That's the problem. Your splitter reports only one audio pin. How can I configure it that all streams are shown to ffdshow audio decoder?
And I have the problem that I must pipe LPCM through your audio decoder filter because ffdshow does not accept the LPCM stream from your spitter (but from every other splitter).
And how should I teach my player? It is written in VB6 but very stable. I did not do any work since many years.
kennae
24th May 2011, 21:24
Great work on the few latest versions. Everything is working perfectly on my end.
One small question, do I still need the "File Source (Async.)" in my MPC-HC's external filters list?
nevcairiel
24th May 2011, 21:25
One small question, do I still need the "File Source (Async.)" in my MPC-HC's external filters list?
Nothing changed in that regard (and probably won't change on my end, unless MPC-HC changes or you use another way to force a specific filter).
You can always just try not having it, in many cases it'll "just work"
And I have the problem that I must pipe LPCM through your audio decoder filter because ffdshow does not accept the LPCM stream from your spitter (but from every other splitter).
I just tried a VOB LPCM file, and it works just fine.
Blu-ray LPCM also work perfectly. Other formats do not have "LPCM", MKV for example just has PCM, which does not need a decoder.
andyvt
25th May 2011, 01:11
+1 for specialization :)
http://babgvant.com/downloads/lavfiltersettings/filtersettings.png
x86 binary (http://babgvant.com/downloads/lavfiltersettings/lavfiltersettings.zip) (a reboot may be required for merit changes to take effect).
x86 and x64 binaries are now available on SourceForge (https://sourceforge.net/projects/babgvant/files/LAVFilterSettings/), source (http://babgvant.svn.sourceforge.net/viewvc/babgvant/LAVFilterSetttings/) is too (not that it's very interesting :)).
BelowSky
25th May 2011, 12:43
nevcairiel, did you accidentally fix that problem regarding the usage of unregistered LAV filters in the debug versions (LAVAudio-debug.ax and LAVSplitter-debug.ax)
MPC-HC no longer crashes when playing a playlist.
However, in a very weird way, the release versions of LAV are still crashing MPC-HC (LAVSplitter.ax and LAVAudio.ax).
nevcairiel
25th May 2011, 12:48
There are no real differences between debug and release, must be some weird side-effect.
Its still a MPC-HC bug, and should be fixed there.
LordMerlin
25th May 2011, 13:00
Hello.
Arose a question, I hope that the experts gathered here will clarify the situation.
Could anyone realties of you compare this one splitter (http://avmedia.su/) with what is discussed here. Pros, cons. And if the other is too general to be super.
Thanks in advance.
nevcairiel
25th May 2011, 13:16
They violate the ffmpeg license agreement. They use ffmpeg, but there is no word of a license anywhere, nor do they provide or link to the source of ffmpeg. From a quick look at the file, it also looks like they use parts of the MPC-HC splitters, which are released under the GPL and cannot be re-used without releasing the source. More license violations.
For me, thats enogh to distrust them and never consider taking seriously.
Also, its not written by me. :p
dbone1026
25th May 2011, 13:33
For me, thats enogh to distrust them and never consider taking seriously.
Those people smiling at the top of the page are enough for me not to trust them, it looks like an ad for a dentist. Plus, we all know serious coders don't smile!
nevcairiel
25th May 2011, 13:34
Plus, we all know serious coders don't smile!
Am i bad for smiling now when i read that? :rolleyes:
Those people are weird too. Its the same shit with MPC-HCs sourceforge page, get rid of stupid happy people. :p
I wonder whatever happend to the redesigned MPC-HC page..
Aleksoid1978
25th May 2011, 14:11
LAV Splitter - bad open Blind_Fury.m2ts (http://www.multiupload.com/ZGDZFMT4Q0) - very slowly opens and then black screen, with Cyberlink Decoder - crash at open.
BelowSky
25th May 2011, 14:54
There are no real differences between debug and release, must be some weird side-effect.
Its still a MPC-HC bug, and should be fixed there.
I'll look silly nevcairiel if I reported this bug to MPC-HC team.
I've more than 10 splitters and decoders in my system, including LAV debug versions, and they all don't have this issue. It's just LAV, and the release version in particular, have this problem.
However, I will fully understand if you don't fix it. In the end you are doing it for free.
So please don't consider this post some kind of whining or complaining
boyumeow
25th May 2011, 15:08
Am i bad for smiling now when i read that? :rolleyes:
Those people are weird too. Its the same shit with MPC-HCs sourceforge page, get rid of stupid happy people. :p
I wonder whatever happend to the redesigned MPC-HC page..
Hmmm, isn't a Happy nev, is a great programmer too :p.
Especially I saw nplayer.git which could have evolute into lavideo.ax :D.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.