View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
robpdotcom
7th June 2011, 03:02
regarding subs, what is the default flag for at the muxing stage in mkvmerge? does it only refer to the default subtitle track or also defines whether the subs should be automatically activated or disabled at the start?
or is the latter purely a matter of the splitter settings (LAVsplitter here)?
If LAVSplitter is set to load "Full Subtitles", it will load the default subtitle track, or the first track if none are flagged as default. If it is set to load "Only Forced Subtitles", it will only load subtitle tracks flagged as forced.
Thunderbolt8
7th June 2011, 03:40
so its not possible to make a choice whether a track shouldnt be loaded automatically right from the start at the muxing stage? its only either all tracks are loaded automatically or all forced tracks are loaded or none at all?
robpdotcom
7th June 2011, 04:26
If you want a subtitle track to be shown automatically, set the forced flag as "yes" in mmg. If you don't want it to be shown automatically, set it as "no".
Then, just make sure you have LAVSplitter set to only load forced subs. You can still load them manually.
someone`
7th June 2011, 15:04
AR bug :
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Format settings, GOP : M=3, N=8
Codec ID : V_MPEG4/ISO/AVC
Duration : 23mn 41s
Bit rate : 1 292 Kbps
Nominal bit rate : 1 627 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 3:2
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Haali 16:9
LAV 3:2
glorp
7th June 2011, 15:47
If LAVSplitter is set to load "Full Subtitles", it will load the default subtitle track, or the first track if none are flagged as default. If it is set to load "Only Forced Subtitles", it will only load subtitle tracks flagged as forced.
I really wish there were also an option like:
"Don't load subtitles if matching language found"
and then that option would take preference over all the others. That way all subs could be turned off automatically by the splitter if a matching preferred langauge track exists but enable them if no matching language is present and then follow the other rules for sub language selection. Haali can do this by it's options that allow you to preferentially select audio,sub pairs (which also includes allowing wildcards in the matches along with the keyword "off") but I can't find a similar way to do that with LAV. Or is there a way to accomplish this with the options that exist that I haven't realized?
Thunderbolt8
7th June 2011, 17:42
If you want a subtitle track to be shown automatically, set the forced flag as "yes" in mmg. If you don't want it to be shown automatically, set it as "no".
Then, just make sure you have LAVSplitter set to only load forced subs. You can still load them manually.but what if there are forced subs inside that .sup track? would they be shown then? (which I wouldnt want as long as I dont want to load the track automatically in general).
what would be helpful is some kind of table of results for mkvmerge flags + LAVfilter settings.
e.g. mkvmerge default no, forced no + LAVfilter: show full titles=?
mkvmerge default no, forced yes + LAVfilter: only forced subs=?
.
.
.
and this for all combinations and options there are in mkvmerge and LAVfilter, because it looks to me, as rather noobish user in that area, theres no way to see which option seems to take priority over the other one.
nevcairiel
7th June 2011, 17:52
The "Default" flag has no influence IF a subtitle is chosen, it just influences WHICH. If there are two of the same language, one is default, then that one will be used.
If you enable "Show full subtitles" and have "Only with matching language" NOT checked, there will always be a substream activated, based on your language choices, or if no language matches, just the first stream.
If you enable "Show full subtitles" and have "Only with matching language" checked, there will always be a sub stream activated IF it matches one of your preferred languages, if there is no match, then there wont be subs.
The same goes for "Only show forced subs", except that it additionally ONLY works on sub streams with the forced flag, streams without that flag are never used.
glorp
7th June 2011, 18:03
I really wish there were also an option like:
"Don't load subtitles if matching language found"
I should have written the option as:
"Don't load subtitles if matching audio language found"
Is there a way to accomplish this short of remuxing every file to set the forced flag on subs that one wants displayed automatically while not showing any subs if a suitable audio language exists?
robpdotcom
7th June 2011, 18:09
Is there a way to accomplish this short of remuxing every file to set the forced flag on subs that one wants displayed automatically while not showing any subs if a suitable audio language exists?
I can't comment on the matching language part, but...
You do not need to remux to set a track as forced - just use mmg's header editor, which takes just a few seconds to do.
nevcairiel
7th June 2011, 18:21
I might add such an option in the future.
ney2x
7th June 2011, 18:30
Got this from madflac thread. A wishlist :)
Or just use LAV Audio decoder, it can decode pretty much everything.
Even though it's based on ffmpeg, which is (or was) limited to 16 bit in ffdshow for flac, I think nevcariel fixed that issue.
However, for guaranteed compatibility, it would be nice if madshi and nevcariel would access madflac in LAV Audio directly, the way he has with the Arcsoft DTS decoder.
Then we would have one complete audio decoder for everything. And stream switching, even for different audio types, should just work.
nevcairiel
7th June 2011, 18:31
Will not happen.
glorp
7th June 2011, 18:54
You do not need to remux to set a track as forced - just use mmg's header editor, which takes just a few seconds to do.
Good point that I hadn't considered but I really wanted to avoid having to force a specific sub permanently as much as avoid all the remuxing time. Thanks though.
I might add such an option in the future.
Thanks. I appreciate the consideration. The way Haali implements that one option for setting (audio,sub) pairs preferences and also allows for matches with wildcards and keywords in it gives a lot of flexibility in selecting subs on/off automatically. I find I rarely need to change flags on anything when I use that option correctly and always get correct subs w/o having choose or enable them.
yesgrey
8th June 2011, 01:48
Windows' mixer works just fine in 7.
Yeah, Windows 7 here. The mixer should downmix even before audio gets to the device's driver.
Are you using reclock? Maybe not...
I'm using reclock in WASAPI mode to bypass windows mixer, hence why the down mixing might not have any effect...
Superb
8th June 2011, 02:11
Are you using reclock? Maybe not...
I'm using reclock in WASAPI mode to bypass windows mixer, hence why the down mixing might not have any effect...Not using ReClock nor any other WASAPI-capable filter.
So the mixer in Windows 7 is working... you just choose to bypass it (=not use it). I guess you do need mixing capabilities in LAV Audio for that...
In the meantime (until such feature will be coded), one could probably be using ffdshow audio decoder to mix LAV Audio's output (enable ffdshow for uncompressed audio) and feed it to ReClock, no?
SamuriHL
8th June 2011, 02:13
Not using ReClock nor any other WASAPI-capable filter.
So the mixer in Windows 7 is working... you just choose to bypass it (=not use it). I guess you do need mixing capabilities in LAV Audio for that...
In the meantime (until such feature will be coded), one could probably be using ffdshow audio decoder to mix LAV Audio's output (enable ffdshow for uncompressed audio) and feed it to ReClock, no?
Yup. Just add the ffdshow audio processor to the chain. Works fine. I use it on my laptop.
Andy o
8th June 2011, 03:13
Are you using reclock? Maybe not...
I'm using reclock in WASAPI mode to bypass windows mixer, hence why the down mixing might not have any effect...
That might be it, although then it could be the drivers, cause the drivers are telling ReClock that they accept 5.1 channels.
But, why use WASAPI exclusive in this situation, especially when you're using ReClock?
ontherocks
8th June 2011, 07:12
My question was missed some days ago:
I'd like to bitstream DTS-HD, but not DTS. Is it possible ? Will it be possible ? Or it is not recommended ?
Its not possible, and I have no concrete plans to make it possible. I'll let someone else explain that using the TMT decoder is actually super easy.
When I play any DTS-HD file with MPC-HC & LAV, I am able to bitstream DTS-HD to my receiver. Is it not supposed to do so?
nevcairiel
8th June 2011, 07:14
You misunderstood the original question. He wanted to enable bitstreaming for DTS-HD, but NOT for DTS, but the configuration doesn't allow this. Its not about the actual bit streaming capability.
Monamona
8th June 2011, 16:23
For mp4, LAV splitter seems not to handle EDTS correctly like previous Haali.
Thus, movie which contains several b-frames (by x264.exe) cannot be seeked accurately or may have desynchronization.
ney2x
8th June 2011, 16:53
Can you give us a hint on your next release? Does it include up/down-mixing option in LAV Audio. Is there a plan for LAV Audio Renderer? Does LAV Filters have an icon :D
Honestly, I'm so excited! :X
nevcairiel
8th June 2011, 16:55
The next release won't include many user visible enhancements, only some playback improvements to MPEG-TS and alot of under-the-hoods things.
Honestly, development will be slowing down a bit for the next month or so, there is vacation coming up. :p
ontherocks
8th June 2011, 17:46
Facing some problems with DD-THD bitstreaming. The receiver seems to keep on looking for audio stream. HDMI light and DD light keeps on blinking with no audio. DTS-HD/DTS-HDMA works fine.
DD-THD files obtained from http://www.demo-world.eu/trailers/high-definition-trailers.php
Receiver HT-R380
Any ideas on this? It happens only with LAV.
nevcairiel
8th June 2011, 17:52
Sounds like you're using a splitter that does not split AC3 out of the TrueHD before sending it. Use LAV Splitter, and it should work.
yesgrey
8th June 2011, 17:52
In the meantime (until such feature will be coded), one could probably be using ffdshow audio decoder to mix LAV Audio's output
That's what I'm doing.
But, why use WASAPI exclusive in this situation, especially when you're using ReClock?
Because I don't want another resampling step in the chain...;)
ontherocks
8th June 2011, 18:40
Sounds like you're using a splitter that does not split AC3 out of the TrueHD before sending it. Use LAV Splitter, and it should work.
I have installed both the decoder as well as splitter.
http://img197.imageshack.us/img197/4924/capture08062011230512.png
http://img534.imageshack.us/img534/6183/capture08062011230620.png
http://img690.imageshack.us/img690/3692/capture08062011230640.png
http://img809.imageshack.us/img809/8800/capture08062011230754.png
Mercury_22
8th June 2011, 18:45
I have installed both the decoder as well as splitter.
http://img197.imageshack.us/img197/4924/capture08062011230512.png
http://img534.imageshack.us/img534/6183/capture08062011230620.png
http://img690.imageshack.us/img690/3692/capture08062011230640.png
http://img809.imageshack.us/img809/8800/capture08062011230754.png
Have uncheck MPC-HC's mpeg splitter cause even if you add LAV to external filters you still need to disable the internal mpeg splitter to be able to use an external (LAV) splitter ?
e-t172
8th June 2011, 18:45
But, why use WASAPI exclusive in this situation, especially when you're using ReClock?
Because I don't want another resampling step in the chain...;)
If the sampling rate of what you're playing is the same as the sampling rate set in the Windows Audio properties for your audio device, then no resampling will take place after Reclock.
Andy o
8th June 2011, 19:43
^To add a bit, you might even wanna resample with ReClock, for smooth video playback, and just set the output at the same rate as the Windows mixer. You won't have to change any settings depending on content sample rate. Nothing will be resampled by the Windows mixer.
yesgrey
8th June 2011, 19:47
XP's kmixer resampled even when the sample rate was the same, hence why I thought that the same might happen in Win7... If it's not, then that should be OK.
Thanks.
n3w813
8th June 2011, 20:12
The next release won't include many user visible enhancements, only some playback improvements to MPEG-TS and alot of under-the-hoods things.
Honestly, development will be slowing down a bit for the next month or so, there is vacation coming up. :p
Will audio delay be in the next release? (crossing fingers) :)
Nevilne
8th June 2011, 21:33
XP's kmixer resampled even when the sample rate was the same, hence why I thought that the same might happen in Win7... If it's not, then that should be OK.
Thanks.
This has me confused, is it better not to resample with reclock on xp then?
yesgrey
8th June 2011, 21:39
This has me confused, is it better not to resample with reclock on xp then?
If you want reclock to perform its magic you have to let it resample. However, if you want to bypass kmixer you need to use Kernel Streaming, or then your sound would be resampled once again...
sneaker_ger
8th June 2011, 23:39
I really wish there were also an option like:
"Don't load subtitles if matching language found"
and then that option would take preference over all the others. That way all subs could be turned off automatically by the splitter if a matching preferred langauge track exists but enable them if no matching language is present and then follow the other rules for sub language selection. Haali can do this by it's options that allow you to preferentially select audio,sub pairs (which also includes allowing wildcards in the matches along with the keyword "off") but I can't find a similar way to do that with LAV. Or is there a way to accomplish this with the options that exist that I haven't realized?
I can only second this request, the option in Haali's splitter is a very good solution.
Sebastiii
9th June 2011, 06:37
Hi Nevcairiel,
I have somes questions, i have see 2 cases :
1) In last few build, i can't on when id do right click on ffdshow icon going to "LAV Splitter Source" properties, it's working for LAV Audio or LAV Splitter or all other directshow filter.
Maybe it's related to the change about name of splitter ? and i assume it's the same on madvr icon.
2) I try to implement the selection of BD subs with Mediaportal BDHandler plugin (I do the selection on matching the stream language name) and i get something strange :
I have tested on 3 BD : Avatar, 127H and Micheal Clayton.
2.1) In graphstudio on LAV Splitter Filter (righ click) :
I get in the list "Forced Subtitles (auto)" with french so here all seems correct :
But when i analyse LCID of the forced new stream, on Avatar and 127H LCID is detected as English 1033 and Micheal Clayton as French 1036.
On my test when LCID is detected as 1033 (English) for forced sub (but display with french in subtitle list on LAV Splitter), the forced subtitle in AVATAR is correctly display as french.
Is it possible to add correct LCID to match the language :) ?
Ps : setting in LAV Splitter was : fre for subtitle and "enable auto forced subtitle stream" ticked
Thanks for help :)
Seb.
Sebastiii
9th June 2011, 08:53
See previous post, i hope it's more clear than previous one.
Snowknight26
9th June 2011, 17:59
Switching from an LPCM track to a TrueHD track in LAV Splitter causes the file to stop being played if MPC-HC's internal LPCM decoder is used (works with ffdshow).
Sample: http://stfcc.org/misc/lavsplitter.m2ts
nevcairiel
9th June 2011, 18:19
Thats a bug in MPC-HC. I'll fix it.
BTW, if you use LAV Splitter, i recommend you also use LAV Audio. ;)
nevcairiel
9th June 2011, 19:03
LAV Filters 0.29
LAV Splitter
- The language code is now always shown in the stream changer (as a hint to easily know what to put into the preferred languages fields)
- Enabled ITrackInfo
- Improved H264 in MPEG-TS playback (including an option to try to fix broken HD-PVR recordings)
- Added a programmatic configuration interface for players to configure LAV Splitter
LAV Audio
- Added support for decoding encrypted DVD audio
- Fix decoding of some DTS-HD streams with the ArcSoft decoder
- Added a programmatic configuration interface for players to configure LAV Audio
Download: Installer (both x86/x64) (http://files.1f0.de/lavf/LAVFilters-0.29.exe) -- Zips: 32-bit (http://files.1f0.de/lavf/LAVFilters-0.29.zip) & 64-bit (http://files.1f0.de/lavf/LAVFilters-0.29-x64.zip)
Some quick notes about this release:
LAV Audio can now be used for DVD playback, as well as some PES streams created by some Live TV source filters. Hooray!
On the LAV Splitter side, the most notable change is more improvements to H264 in MPEG-TS playback. If you notice that any file that previously worked is now broken, please try turning off the “Try to fix broken HD-PVR recordings” option, and see if it solves the issue. In any case, please report this!
For anyone that didn't know yet, you can also follow releases on my Blog now, as well as find all Downloads (and a Donation button, for those that insist):
http://1f0.de
Have fun!
PS:
ITrackInfo is enabled now, except for ZoomPlayer, because it broke the player there. Heh.
Sebastiii
9th June 2011, 19:15
Thanks Nev :) Great release :)
ontherocks
9th June 2011, 20:21
Have uncheck MPC-HC's mpeg splitter cause even if you add LAV to external filters you still need to disable the internal mpeg splitter to be able to use an external (LAV) splitter ?
Yep, that did the trick. Thanks a lot.
I finally found a HD-DVD demo file (HD-DVD Demo 1080p VC-1 DDPlus 5.1 (http://www.techpowerup.com/downloads/530/.html)) which has the standard DD+ (E-AC3) stream (without any AC3 core).
LAV bitstreamed it to my receiver and DD+ light showed up for the first time.
The only combination to bitstream all supported audio is MPC-HC with LAV Splitter & Decoder.......guaranteed.
Thanks nevcairiel :thanks:
renethx
9th June 2011, 20:48
Nev
Can LAV Source Spitter force ffdshow raw video filter to be loaded by option? Like Haali Media Splitter can always load VSFilter by option. The main usage is
LAV Source Splitter + LAV CUVID Decoder + ffdshow raw video filter inside WMC internal player
for dual purpose:
1. Subtitles (CUVID is preferred instead of ffdshow Video Decoder because of hardware deinterlacing)
2. SVP (frame interpolation)
Somehow ffdshow raw video filter (or DirectVobSub) is never loaded inside WMC internal player however high its merit value is. On the other hand, if Haali is used and "Autoload VSFilter" is enabled, DirectVobSub is loaded fine in WMC. Yeah, I know it's the player's role what filter is loaded, but WMC is crappy and quite a few people want to use it nevertheless.
Gleb Egorych
9th June 2011, 21:45
nevcairiel, thanks for the nice update! :)
jmone
9th June 2011, 21:54
Thanks nevcairiel for the release! You really worked quickly getting the DVD Audio out :)
Added a programmatic configuration interface for players to configure LAV
FYI - this is a key feature for Players (like is now being implemented in J Rivers Media Center) where the player can make temporary config changes during commencement of playback. The idea on this is for the "average" user to be able to take advantage of a collection of exposed Filter properties and features without having the first idea on how to manually config the Filters at all (JR is calling it "Red October" in MC). nevcairiel has been working with the MC Devs on the concept with LAV Splitter a part of the first release and now LAV Audio is being added. The result so far is pretty good, especially due to the quick turnaround on issues/ideas/features from nevcairiel!
Thanks
Nathan
Jay_UK
9th June 2011, 22:09
Hi there,
Forgive me if this has already been posted, I tried searching (I am a noobie) :D
I currently use ffdshow audio with profiles to control volume levels (I have different sources that present at different levels). I use filter name to determine which profile to use (eg FLV content for me is loud, so needs a volume reduction. I use *FLV Splitter* as a DS filter name match).
Does LAVF support audio profiles?
Also, I can not use ffdshow with LAVF (as a splitter) as the source is always the same name for different sources?
Can anyone help?
Thanks,
J.
hoborg
9th June 2011, 22:10
Thanks for .29!
Dogway
9th June 2011, 22:32
I have a mkv that doesn't get splitted, audio plays, video screen is black:
mkvmerge v1.5.0
libebml v0.7.5 + libmatroska v0.7.7
Plutotype
9th June 2011, 22:51
Hi Nevcairel,
I use 0.28 LAVaudio and have this option "Output only "standard" channel layouts" enabled. Today, at only one movie, I had to disable it, because if enabled, the center channel was (probably) muted or replaced with silence.
It was 6 channel DTS-HD MA, outputted via Realtek chip to 5.1 analog output and per cinch to my Logitech 5.1 set. Sample:
http://www.mediafire.com/?669vteuam2xnms0
Thanks for clarification
Pluto
fixed with 0.29 - thanks Nev!
mark0077
9th June 2011, 23:13
OMG thanks for these new versions. Had great fun watching a Queen DVD (vob files) in 24bit 96khz dts (using my tmt 5 dll in mpc dir), deinterlaced using hardware, all the while sent to madVR for output, and flawless. Thanks for this great splitter and decoder combo which helped make it all happen so easily.
Also for the first time played back an old m2ts recording of Sleeping Beauty for a few nieces of mine with 0 frame drops (thanks to the new filter option to fix broken recordings).... I assume it just fixes up bad timestamps or something like that? Playback of this particular file used to be a mess. In anycase, absolutely delighted, thanks again!!! Keep up the good work!
nevcairiel
10th June 2011, 06:28
I have a mkv that doesn't get splitted, audio plays, video screen is black:
mkvmerge v1.5.0
libebml v0.7.5 + libmatroska v0.7.7
Some more details would be great. What video codec, what audio codec, oh and a short sample! :)
Does LAVF support audio profiles?
No, and probably never will. Well, it doesn't have a volume filter anyway.
Also, I can not use ffdshow with LAVF (as a splitter) as the source is always the same name for different sources?
Doesn't ffdshow also have the ability to do this based on file name? That sounds much more reliably, matching for "*.flv" instead of "FLV Splitter".
Can LAV Source Spitter force ffdshow raw video filter to be loaded by option? Like Haali Media Splitter can always load VSFilter by option.
It could, i'll think about it some if i like the idea at all.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.