View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
rica
25th November 2011, 00:54
Thanks dude but what is MC 17?
SamuriHL
25th November 2011, 00:55
JRiver's MediaCenter version 17. A commercial player that can use directshow filters such as LAV Filters, madVR, etc. It's a great player.
rica
25th November 2011, 00:58
Yeah. I remember it from my earlier Kernel/Wasapi bitstreaming trials :)
These are the audio-only applications which have wasapi plugins:
Foobar2000
XMPlay
and commercial MediaCenter13 (no plug-in seperately)
http://img19.imageshack.us/img19/3636/audiou.th.png (http://img19.imageshack.us/my.php?image=audiou.png)
quoted from avsforum's HTPC section. (March 8th, 2009)
SamuriHL
25th November 2011, 00:59
I would think you'd appreciate the audio capabilities built into that player. ;)
rica
25th November 2011, 01:08
I'm sure if you are saying. I will try MC again. Thanks.
SamuriHL
25th November 2011, 01:12
It's the player I've been using the most. It works EXTREMELY well with LAV Filters. I have it set to decode all my audio and turn on a feature they call Video Clock. Basically it emulates what ReClock does. Apparently madshi worked with them on that feature which is why it works really well with madVR, as well. I haven't even begun to dive into the audio features, but, this thing is loaded. WASAPI exclusive? No problem. Event driven WASAPI exclusive? No problem. Basically it just rocks.
rica
25th November 2011, 01:15
Then please post your scripts.
SamuriHL
25th November 2011, 01:27
My scripts wouldn't be useful to anyone else. Highly customized for my build environment. Nonetheless if you want the copy script:
@ECHO OFF
set SRC="\\SAMURI-PC\Users\Samuri\Downloads\Video\LAVFilters"
ECHO ____________________________________
ECHO *****Updating MC17 private copy*****
ECHO ------------------------------------
set DEST="C:\Users\Samuri\AppData\Roaming\J River\Media Center 17\Plugins\lav"
robocopy %SRC% %DEST% /PURGE
set SRC="C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\Codec"
robocopy %SRC% %DEST% dtsdecoderdll.dll
PAUSE
The reason I'm using a network path is that any machine on my network can run this script and get my updated LAV Filters. My build script copies them to the Downloads\Video\LAVFilters folder. As you can see it purges all the files in the private lav folder in MC17. This is in case any files change/get removed between LAV versions. Hasn't happened lately but it has happened before so I add the purge in there. That means anything that's not in my Downloads\Video\LAVFilters folder will be deleted. After that's done, it copies in the DTS decoder from TMT5. I do it that way in case they release a new version that updates it. That way I always have the latest. Unlikely this is going to help anyone, but, there it is if you need it.
rica
25th November 2011, 01:40
OK, i've changed my PC's name to "Samuri" and it works :)
Sure just a joke, thanks for the info.
SamuriHL
25th November 2011, 01:41
ROFL :) I told you it was highly customized! :D hehehehe
rica
25th November 2011, 01:50
Sorry i forgot to say i even put Lav Filters folder into samuri\downloads\video folder :D
SamuriHL
25th November 2011, 01:51
Excellent, you're ALL set now! :D
rica
25th November 2011, 01:59
Yes i know it seems very fake-selfcustomized, anyways :D
rica
25th November 2011, 02:43
Gave it a go and sure 0.41 is ready to be published :)
Thanks nev for all your efforts.
I felt i need to repeat that since it might have been lost in our chat with samuri.
Sebastiii
25th November 2011, 03:55
Here is a "official" test build using the new MKV demuxer:
x86: http://files.1f0.de/lavf/LAVFilters-0.40-16-g19c9e9f.zip
x64: http://files.1f0.de/lavf/LAVFilters-0.40-16-g19c9e9f-x64.zip
Hi :)
So far i can tell, it works really nice :) it solve my seeking issue on some sample (by creating an index so first seek can take some second (10 seconds) but after that seek was ok).
Chapters is working.
Subtitles too.
Maybe (on my side) audio switching between stream was a little slower but working :)
Ofc all related to mkv :)
Thanks Nevcairiel :)
roytam1
25th November 2011, 07:43
@nev:
I'm getting git submodule update issue:
/d/lavfsplitter$ git submodule update
fatal: reference is not a tree: 8fd7a6e82ff6e54cc66001e6ae38dddaffb8b29c
Unable to checkout '8fd7a6e82ff6e54cc66001e6ae38dddaffb8b29c' in submodule path 'ffmpeg'
nevcairiel
25th November 2011, 08:08
@nev:
I'm getting git submodule update issue:
/d/lavfsplitter$ git submodule update
fatal: reference is not a tree: 8fd7a6e82ff6e54cc66001e6ae38dddaffb8b29c
Unable to checkout '8fd7a6e82ff6e54cc66001e6ae38dddaffb8b29c' in submodule path 'ffmpeg'
Just use the same ffmpeg as from the mkv branch, i didn't update the reference on the master branch because it seemed useless. :p
roytam1
25th November 2011, 08:38
Just use the same ffmpeg as from the mkv branch, i didn't update the reference on the master branch because it seemed useless. :p
I see.
New nightly (mkv branch with master changes merged):
http://roy.orz.hm/lavf-w32-nightlies/lavf-my111125-mkv-rv34seekkeyframe%2bmaster-19c9e9f.7z
diff (RV3/4 key frame with master changes merged):
http://roy.orz.hm/lavf-w32-nightlies/lavf-my111125-mkv-rv34seekkeyframe%2bmaster-19c9e9f.diff
fastplayer
25th November 2011, 14:38
nev, is the new MKV demuxer also used for WebM files?
nevcairiel
25th November 2011, 14:40
nev, is the new MKV demuxer also used for WebM files?
WebM files are just mkv files with some feature limitations, so yes of course.
fastplayer
25th November 2011, 14:45
WebM files are just mkv files with some feature limitations, so yes of course.
Thanks for confirming. :)
Seeking got better (faster, more responsive) with the new demuxer although the old one was already pretty good.
GRENDIZER
25th November 2011, 15:49
Sorry if this question has been asked before but I can't figure how to search inside threads.
LAV doesn't have any systray icon, but is there a way to check if the LAV audio decoder is active while playing a video?
Thanks
Gz
Nevilne
25th November 2011, 18:24
I'm not getting default subtitles selected in any mkv with new demuxer.
Paladin77
25th November 2011, 18:32
Sorry if this question has been asked before but I can't figure how to search inside threads.
LAV doesn't have any systray icon, but is there a way to check if the LAV audio decoder is active while playing a video?
Thanks
Gz
If you're using MPC-HC. While the video is playing right click anywhere in the video, choose filters. I think that is the case too in Potplayer (correct me if am wrong anyone).
Here is an example. Credits to Haruhichan weblog: http://haruhichan.com/img/Guides/filtersf.png
BloodySword
25th November 2011, 20:51
ADTS AAC + LAV 0.40 + ffDSHOW libfaad2 = auto seek to EOF, no playback. :/
works only with isomM4a or with libavcodec as AAC decoder in ffDSHOW.
nevcairiel
25th November 2011, 21:50
I'm not getting default subtitles selected in any mkv with new demuxer.
Should be fixed.
ADTS AAC + LAV 0.40 + ffDSHOW libfaad2 = auto seek to EOF, no playback. :/
works only with isomM4a or with libavcodec as AAC decoder in ffDSHOW.
Then, why not just use libavcodec? :)
Also, it should be fixed - it was however ffdshows fault, it accepts a media type which it doesn't understand, faulty design imho.
GRENDIZER
25th November 2011, 23:55
Hello Palladin, thanks for your answer. Is there another way to check if LAV Audio is active? Cause I'm using Windows Media Center on Win 7 64.
STaRGaZeR
26th November 2011, 04:17
nev, found a bug in your last "official" build: default flags are ignored. The first audio track and the no subtitle track are always selected, as if the file had no flags.
mindbomb
26th November 2011, 05:13
edit
you know, i think something just went wrong with the muxing, so this isnt a lav splitter issue.
roytam1
26th November 2011, 05:17
nev, found a bug in your last "official" build: default flags are ignored. The first audio track and the no subtitle track are always selected, as if the file had no flags.
Did you tried the newest revision?
New nightly:
http://roy.orz.hm/lavf-w32-nightlies/lavf-my111126-rv34seekkeyframe-65b6e66.7z
diff( " " ):
http://roy.orz.hm/lavf-w32-nightlies/lavf-my111126-rv34seekkeyframe-65b6e66.diff
nx6
26th November 2011, 06:11
Then, why not just use libavcodec? :)
I'm using libfaad, too actually.
There was an issue with libavcodec's AAC decoder playing certain types of AAC streams that didn't have issues on the older libfaad decoder. However, if I remember the release notes from the latest CCCP, the new version of ffdshow it ships with should have gotten those issues fixed. I haven't tried it to find out though.
leewalk
26th November 2011, 07:55
Looks like LAV is only seeing 5.1 audio inside a DTS-HD MA 7.1 file like http://www.trailerz.demo-world.eu/hd/hd_dts_sfx_short_lossless.rar, even with dtsdecoderdll.dll in use?
Known issue?
Thanks, Lee
nevcairiel
26th November 2011, 07:58
Looks like LAV is only seeing 5.1 audio inside a DTS-HD MA 7.1 file like http://www.trailerz.demo-world.eu/hd/hd_dts_sfx_short_lossless.rar, even with dtsdecoderdll.dll in use?
Known issue?
Thanks, Lee
Its just a cosmetic issue, if you decode it, LAV Audio should say 8 channels on its status page - just LAV Splitter doesn't know that.
nev, found a bug in your last "official" build: default flags are ignored. The first audio track and the no subtitle track are always selected, as if the file had no flags.
That was fixed last night. :)
leewalk
26th November 2011, 08:03
Its just a cosmetic issue, if you decode it, LAV Audio should say 8 channels on its status page - just LAV Splitter doesn't know that.
That was fixed last night. :)
LAV Audio says 6 channels. I tried a couple of different demo 7.1 files, but LAV Audio says all of them are 5.1.
Lee
leewalk
26th November 2011, 08:20
For a sanity check, I tried a Dolby HD 7.1 clip http://www.trailerz.demo-world.eu/hd/hd_dolby_catalyst_lossless.rar and both LAV Splitter and LAV audio reported 7.1.
nevcairiel
26th November 2011, 10:17
For a sanity check, I tried a Dolby HD 7.1 clip http://www.trailerz.demo-world.eu/hd/hd_dolby_catalyst_lossless.rar and both LAV Splitter and LAV audio reported 7.1.
Then you failed at putting the dts dll in the proper directory, or are using a very old version of the dll and forgot to install the required runtime (which would be automatically installed if you installed TMT. :p)
fastplayer
26th November 2011, 11:47
Interesting commit over at ffmpeg.git:
lavfi: add libass based subtitles renderer (http://git.videolan.org/?p=ffmpeg.git;a=commit;h=28338bc2a3bb316cde2dfc308722c3cdc3d7b046)
nevcairiel
26th November 2011, 11:58
Interesting commit over at ffmpeg.git:
lavfi: add libass based subtitles renderer (http://git.videolan.org/?p=ffmpeg.git;a=commit;h=28338bc2a3bb316cde2dfc308722c3cdc3d7b046)
TBH, that change isn't all that useful for us.
fastplayer
26th November 2011, 12:06
It was more of an FYI. Quite a few times people have asked for a libass-based sub renderer here on D9. Now it's on ffmpeg which is "usually" a good sign.
Paladin77
26th November 2011, 16:38
Hello Palladin, thanks for your answer. Is there another way to check if LAV Audio is active? Cause I'm using Windows Media Center on Win 7 64.
http://fileforum.betanews.com/detail/Win7DSFilterTweaker/1262732488/1
You can use this tool to set your preferred DirectShow Decoder in w7. Select LAV audio for audio formats you want MC to decode and MC should use it.
gav1577
26th November 2011, 17:24
Hi Nev would you possibly consider at some point adding a sharpening filter like swscaler? Tbh its the only reason i still use ffdshow raw filter, its the best sharpener i have have used to date.
kennae
26th November 2011, 17:31
Hello nev. Remember when you asked few months back what feature people would still need? I think most votes had the stereo downsampling request, since now you need to add ffdshow to the mix and most would like to get rid of it. Same goes for me. Just to remind you.
I can live like this, since you are a genious and made such a wonderful product for us to enjoy for free. :)
I have used the trunk builds from the start and had no real problems and thats impressive. Keep up the great work!
fastplayer
26th November 2011, 18:10
Just to remind you.
To remind you: http://code.google.com/p/lavfilters/issues/detail?id=11
STaRGaZeR
26th November 2011, 18:30
That was fixed last night. :)
Sweet :cool:
BloodySword
26th November 2011, 20:00
AAC decoding with libavcodec has problems with some SBR and PS files. So I'd like to use libfaad2.
The werid thing is, that only in ADTS it does not work. In isomM4A it works perfectly.
nevcairiel
26th November 2011, 20:25
ADTS has a special header so that you can switch channel count mid-stream, which is not supported otherwise. A clear short-coming of libfaad, imho. :)
Thats also the reason the header was not removed - because with it LAV Audio supports on-the-fly channel layout changes (which happen on live tv). Stupid ffdshow somehow accepted my special ADTS media type...
BloodySword
26th November 2011, 21:34
Can't it be controlled by media type? So that LAV Audio uses another media type for the header and the media type FFDshow libdaad2 uses for without the header?
nevcairiel
26th November 2011, 22:02
Can't it be controlled by media type? So that LAV Audio uses another media type for the header and the media type FFDshow libdaad2 uses for without the header?
Thats what i did, yet ffdshow still accepted it, because its stupid.
I fixed it, though.
Reino
26th November 2011, 22:43
LAV Filters 0.40 bug report (splitter in particular):
MKV[H.264+Vorbis] sample (http://www.degeelebosch.nl/reino/H2O - Just Add Water_sample.mkv)
For some mysterious reason the LAV Splitter refuses to connect to FFDShow's Audio Decoder. The LAV Audio Decoder always kicks in. Just try this sample in MONOGRAM GraphStudio and manually add FFDShow's Audio Decoder. The LAV Splitter and FFDShow's Audio Decoder don't seem to agree with each other.
BloodySword
26th November 2011, 23:01
Found another problem: When I have a MKV file with WAVEPack audio in hybrid mode (lossy) with 96KHz 32 bit float, the WAVEPack decoder messes eveything up, the renderer tries to render it with 16 bit, the playback is 50% slow, is distorted and the video is stuttering. When I think of it, I can not realize what goes wrong here. When I play the WAVEPack file alone, everything works fine.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.