View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
vinnytx
16th May 2013, 19:23
Hi, Greetings to all forum members
Any chance to have Cuvid WMV3 decoding?
nevcairiel
16th May 2013, 21:53
Cannot be done, the driver doesn't support it. Use DXVA2 instead.
bbboy
17th May 2013, 03:28
Hi
Great program, thanks for writing it! It works really well for me except for subtitles.
I've used MKVMerge (header editor) to flag the forced subtitle tracks but they still don't show up in Windows Media Center. So I loaded up directvobsub 2.41.7036 and the subtitles show up!
But... CPU usage goes through the roof! It would appear that DirectVobSub breaks CUVID acceleration... :(
Am I doing something wrong? I'd love to have working forced subtitles in Windows Media Center (native player) with CUVID working.
Thanks
sneaker_ger
17th May 2013, 07:56
DirectVobSub does not break CUVID, but it does break DXVA2 native. Are you sure that LAV Video with CUVID is actually being used instead of the Windows DXVA decoder?
bbboy
17th May 2013, 08:02
DirectVobSub does not break CUVID, but it does break DXVA2 native. Are you sure that LAV Video with CUVID is actually being used instead of the Windows DXVA decoder?
How would I tell?
I certainly have set hardware decoder to CUVID in the LAV Video settings and when directvobsub isn't installed CPU usage drops to <5% for the most part.
The HTPC uses an 8600GTS and the desktop (which most of the testing is done on) a GTX 260
The HTPC is about to get an upgrade, probably to a GT 640 though
you can see with decoder is used while playing the file by simply open die lav video configuration. look at video decoder.
styled ass subtitle can easily kill a weak cpu try xy vobsub.
bbboy
17th May 2013, 09:20
you can see with decoder is used while playing the file by simply open die lav video configuration. look at video decoder.
styled ass subtitle can easily kill a weak cpu try xy vobsub.
An interesting fact. The LAV Video decoder icon doesn't appear down in the system tray when I run the file... I have it set to enable system tray icon too.
I ran graph studio (attached) and it seems to be using Microsoft DTV-DVD video decoder...
If I go to: Filters-> Manage Favourites -> Add Filters -> LAV Video Decoder -> Insert after deleting "Microsoft DTV-DVD Video Decoder" I can then arrange the video stream to go through LAV.
It plays fine through GraphStudio but then how do I save this so it is default behaviour?
The merit for Microsoft DTV-DVD is 0x005fffff
The merit for LAV Video Decoder is 0x00800003
Hope this helps someone to help me!
I tried XY Vobsub... Didn't make any difference unfortunately
you can try this but there should be a better way
http://www.videohelp.com/tools/Codec-Tweak-Tool
bbboy
17th May 2013, 10:02
you can try this but there should be a better way
http://www.videohelp.com/tools/Codec-Tweak-Tool
I'm a bit worried about breaking Live TV playback on the HTPC...
Any other suggestions?
hoborg
17th May 2013, 10:04
I'm a bit worried about breaking Live TV playback on the HTPC...
Any other suggestions?
Hi.
On what HTPC software is you HTPC based on?
bbboy
17th May 2013, 10:05
Hi.
On what HTPC software is you HTPC based on?
Both systems are running Windows 7 Pro 64x
I use the built in media center and like to keep things as native and minimal as possible.
bbboy
17th May 2013, 10:13
Both systems are running Windows 7 Pro 64x
I use the built in media center and like to keep things as native and minimal as possible.
As an aside, I'd like to use Enhanced Video Renderer as well (first I'd like to get LAV Video Decoder working though!)
hoborg
17th May 2013, 10:37
As an aside, I'd like to use Enhanced Video Renderer as well (first I'd like to get LAV Video Decoder working though!)
MS MCE doesn't use it? :eek:
Last time i tryed MS MCE i was really surprised how can someone even use it...
I ended on NextPVR (http://www.nextpvr.com/), small, stable, fast and easy to use.
bbboy
17th May 2013, 10:49
I've gone against my own advice and installed Win7DSFilterTweaker: http://codecguide.com/windows7_preferred_filter_tweaker.htm
I managed to get LAV Video Decoder loading by simply changing the preference for H264, VC-1 and a few others.
But now DirectVobSub doesn't load! It was on autoload so I changed it to 'always load'. It still doesn't load!
What on earth am I doing wrong here? I feel like I'm one step away from the setup I want but by god it seems to be a giant leap!
EDIT: Also despite the fact when I launch the mkv in media center and the red LAV Video Decoder icon appearing in the system tray (and it showing "Active" beside Nvidia CUVID hardware decoding in the config page), graphstudio still claims Microsoft DTV-DVD decoder to be active.
Graphstudio error?
This is a clean windows 7 install too, this is quite annoying!
bbboy
17th May 2013, 11:17
Problem solved. My background is that I've been lumbering along trying to learn bits and pieces about computers, culminating in me assembling a desktop in 2006 and then a HTPC in 2007. I discovered quite early on for the HTPC the codec pack known as Shark007. It's been very good to me though I haven't been very good to it (haven't updated it for an AGE). When I decided I was going to put together a nice 7.1 setup, I got to researching lossless bitstreaming.
I also found out there was something called LAV Filters and they were considered the bee's knees. I thought that sounds good and here we are.
Out of frustration, I've turned back to Shark007 as a lot of my searching on this problem took me to his forums etc. So I thought "What the hell?" and just installed the latest packs. I went through and made sure I'm using LAV Filters for pretty much everything. A picture is worth a thousand words... Note the beautiful 3 LAV icons with the one green arrow icon down in the bottom right corner... :)
THANKS SHARK007 AND THANKS NEVCAIRIEL! Guys like you are what make technology a pleasure to tinker with! Time to install Shark's packs on my HTPC (utilising the LAV decoders of course)!
Graphstudio still can't work it out though, hahaha
mindbomb
17th May 2013, 16:02
are there issues with the quicksync decoder and 1080i H264?
Tornado15550
18th May 2013, 05:56
Hey guys,
I'm having a little trouble playing MKV files on Windows Media Center. I recently removed Haali, and am only running LAV (installed 32 and 64bit video, audio, and splitter) and xy-VS Filter. I also set LAV as default for playing H.264 using Win7DSFilterTweaker. Whenever I open an MKV file with WMC, it will simply open WMC and do nothing. Just takes me to the main screen. Any reason as to why it isn't using LAV to open/play the MKV? My OS is Windows 7 64bit.
nevcairiel
18th May 2013, 10:00
Hey guys,
here is a release candidate for the next release:
32-bit: http://files.1f0.de/lavf/LAVFilters-0.56.2-63-gc9509c5.zip
64-bit: http://files.1f0.de/lavf/LAVFilters-0.56.2-63-gc9509c5-x64.zip
The big points since 0.56:
- Popup Menu on LAV Splitter's tray icon (Stream/Edition/Chapter switching)
- Performance improvements opening MKVs with linked segments
- Support for RGB48 output and proper dithering RGB48 to RGB32 (useful for 16-bit PNGs/TIFFs or JPEG2000 DCinema files)
The schedule says that it'll be released this weekend, once i'm done testing.
So any testing any of you want to to would be welcome as well :)
hoborg
18th May 2013, 10:54
Hey guys,
here is a release candidate for the next release:
The big points since 0.56:
- Popup Menu on LAV Splitter's tray icon (Stream/Edition/Chapter switching)
)
Hi.
Do you plan to add shortcuts to that too?
nevcairiel
18th May 2013, 11:02
I do not have any concrete plans for any keyboard shortcuts, no.
I think its funny how you somehow connect these two unrelated things. You can have shortcuts without such a menu or such a menu without any shortcuts. :p
hoborg
18th May 2013, 12:07
I do not have any concrete plans for any keyboard shortcuts, no.
I think its funny how you somehow connect these two unrelated things. You can have shortcuts without such a menu or such a menu without any shortcuts. :p
OK, sorry i asked. I just remember you mentioned maybe year ago you may add shortcuts after icon/menu, but i can be wrong, it is too long ago...
Seems to be i will stay on FFDshow video decoder forever then :)
nevcairiel
18th May 2013, 12:20
Basically i think its the players job to offer convenience features like this to the user.
The popup menu is a compromise for players which simply don't do it, so you at least get an option to access the content.
Shortcuts may be something for the future, but its not a simple topic, as they would also need to be configurable, and work properly in a multitude of players.
madshi
18th May 2013, 13:47
- Support for RGB48 output and proper dithering RGB48 to RGB32 (useful for 16-bit PNGs/TIFFs or JPEG2000 DCinema files)
Very nice, thanks!
hubblec4
18th May 2013, 14:44
- Popup Menu on LAV Splitter's tray icon (Stream/Edition/Chapter switching)
sounds good i will test it.
at least there are one thing to improvement your splitter.
the new release of AV-Splitter (http://forum.avmedia.su/viewtopic.php?f=7&t=610&p=2616#p2616) has a perfect option to play videos with subtitle that are all set to
"no" in mkvmergeGUI (default Track flag)
Haali Splitter and now AV Splitter don't show subs. that's correct because there are no forced subs in the video.
LAV Splitter shows every a sub and that's not correct.
every i must deactivate the subs manually.
nevcairiel
18th May 2013, 14:56
If you only want forced or default subs, you can use LAVs Advanced Subtitle mode and use something like this as the config: "rus|fd", this will only get you russian forced or default subs, nothing else, or even without any languages, or a combination of both, examples:
"rus" - any russian subs
"rus|fd" - only russian forced/default subs
"*|fd" - any forced/default subs
"rus|fd *|fd" - russian forced/default subs, or if no russian was found, any other languages marked as forced or default
"rus|f" - only russian forced subs, no default, no "normal" streams
The advanced mode is very flexible, you can build most subtitle selection modes you could want.
There is a bit of documentation here, but i suck at writing documentation, so it may not be perfect:
http://1f0.de/lav-splitter/lav-splitter-stream-selection/
Feel free to ask if you can't get your wanted configuration to work.
clsid
18th May 2013, 14:57
Hey guys,
I'm having a little trouble playing MKV files on Windows Media Center. I recently removed Haali, and am only running LAV (installed 32 and 64bit video, audio, and splitter) and xy-VS Filter. I also set LAV as default for playing H.264 using Win7DSFilterTweaker. Whenever I open an MKV file with WMC, it will simply open WMC and do nothing. Just takes me to the main screen. Any reason as to why it isn't using LAV to open/play the MKV? My OS is Windows 7 64bit.Setting LAV as preferred is not the correct choice. You must set it to "USE MERIT" if you want xy-vsfilter to get loaded. It is explained in the help of Win7DSFilterTweaker. Do MKV files show up in the MC library? If not, that is why it refuses to play them. Some Registry tweaks are needed for MC to recognize such files. Use K-Lite Codec Pack (Basic version, with "LAV for everything" install profile) and everything will be configured correctly fully automatically.
Volfield
18th May 2013, 15:21
Hey guys,
here is a release candidate for the next release:
32-bit: http://files.1f0.de/lavf/LAVFilters-0.56.2-63-gc9509c5.zip
64-bit: http://files.1f0.de/lavf/LAVFilters-0.56.2-63-gc9509c5-x64.zip
The big points since 0.56:
- Popup Menu on LAV Splitter's tray icon (Stream/Edition/Chapter switching)
I have two icons on tray. Windows 7 SP1 x64 MPC-BE SVN 2697 MSVC 2012 Update 3 (SSE) x86. PotPlayer x86 is ok.
nevcairiel
18th May 2013, 15:29
Then you have two instances of LAV running
the_weirdo
18th May 2013, 15:29
sounds good i will test it.
at least there are one thing to improvement your splitter.
the new release of AV-Splitter (http://forum.avmedia.su/viewtopic.php?f=7&t=610&p=2616#p2616) has a perfect option to play videos with subtitle that are all set to
"no" in mkvmergeGUI (default Track flag)
Haali Splitter and now AV Splitter don't show subs. that's correct because there are no forced subs in the video.
LAV Splitter shows every a sub and that's not correct.
every i must deactivate the subs manually.
Maybe you should check your settings. With Subtitle Selection Mode set to Default, LAV Splitter won't select any subs if no default sub track is set.
nevcairiel
18th May 2013, 15:43
Actually it will if you specify favorite subtitle languages. If you don't specify sub languages then it indeed won't.
Keiyakusha
18th May 2013, 16:23
What about preferred chapter languages? Is it supported?
Not that I care much or have any motivation to fill more than one language for chapters, but I'm doing segment linking right now and it somehow crossed my mind.
nevcairiel
18th May 2013, 16:24
The Chapter API in ffmpeg can only have chapters of one language. I have also never seen a file with more.
Keiyakusha
18th May 2013, 16:29
I see. Well thats because people are too lazy to fill them. But technically we can have infinite amount of chapter names for given segment. The same way you do multiple editions, just add one more ChapterDisplay tag. Even mediainfo supports parsing that :D
nevcairiel
18th May 2013, 16:34
How would you even tell it what languages you prefer?
Seems rather wasteful to offer another language option just for that, so based on what, audio or subtitle languages? :)
Wouldn't be impossible to support of course, right now it'll just show the first ChapterDisplay entry.
Keiyakusha
18th May 2013, 16:40
Hmm, well if subs present - based on subs, cause people won't watch with subs they can't read. If there is no subs - based on audio. Would that work?
Edit: I'm not sure how that works, but what IF there is more than one set of chapter names/languages - place them in submenus and show them all? Because having 2 or more sets with different names but with the same language is possible too.
So to switch chapter in MPC-HC for example I'll have to go:
Navigate -> Jump To -> English -> Part1 [00:04:30]
or
Navigate -> Jump To -> English2 -> Part1 [00:04:30]
or
Navigate -> Jump To -> Undetermined -> Part1 [00:04:30]
I don't have any multi-edition files to check, but you probably do something similar for them?
In tray menu maybe submenu is not needed, just multiple instances of "chapters"
hubblec4
18th May 2013, 19:28
If you only want forced or default subs, you can use LAVs Advanced Subtitle mode and use something like this as the config: "rus|fd", this will only get you russian forced or default subs, nothing else, or even without any languages, or a combination of both, examples:
"rus" - any russian subs
"rus|fd" - only russian forced/default subs
"*|fd" - any forced/default subs
"rus|fd *|fd" - russian forced/default subs, or if no russian was found, any other languages marked as forced or default
"rus|f" - only russian forced subs, no default, no "normal" streams
The advanced mode is very flexible, you can build most subtitle selection modes you could want.
There is a bit of documentation here, but i suck at writing documentation, so it may not be perfect:
http://1f0.de/lav-splitter/lav-splitter-stream-selection/
Feel free to ask if you can't get your wanted configuration to work.
ok thanks for the explanation.
i will test it too.
your splitter will be better and better! thx for your hard work nev
hubblec4
18th May 2013, 21:56
very good. works now very good for me.
small thing, when i open a index.bdmv file with multiple playlist-IDs only the largest movie start.
with AV-Splitter i'm able to select the other playlist-IDs like editions(in the trayicon-menu).
jmone
19th May 2013, 00:30
While I think I know the answer, is it possible to expose the BD Chapter names without LAV first having to add BD menu support?
SAPikachu
19th May 2013, 03:03
Hmm, well if subs present - based on subs, cause people won't watch with subs they can't read. If there is no subs - based on audio. Would that work?
My vote on this. I recently started to include multilingual chapters in my release, it would be nice to support it. Agreed to select preferred chapter language using subtitle/audio language so that we don't need a new option.
(FWIW, here is chapter file of one of my recent rip (http://pastebin.com/08rT67Uh))
Keiyakusha
19th May 2013, 07:57
My vote on this. I recently started to include multilingual chapters in my release, it would be nice to support it. Agreed to select preferred chapter language using subtitle/audio language so that we don't need a new option.
(FWIW, here is chapter file of one of my recent rip (http://pastebin.com/08rT67Uh))
But I think your example shows that autoselection is not good enough. How will it figure out if I want chi/cn or chi/tw for example?
Later I was thinking about something like this (http://dl.dropboxusercontent.com/u/110558786/Seiga/04F6C7AE.png).
Of course as I said, I have no idea if this is possible at all.
nevcairiel
19th May 2013, 09:02
The DirectShow Chapter API is rather limited (and the ffmpeg chapter API as well), so you can't do that. A flat list of chapters is all it allows. If you want this to be switchable, i would suggest to simply have multiple editions with the same content, and only the different chapter names. Then you can switch the edition and get the chapters in the language you manually select.
For a future version, i can see about making it smart about which chapter language to use. However, the problem that Keiyakusha mentioned does remain, all you configure is ISO 639-2 language codes, which is just "chi" or "zho" without any specification if you want "tw" or "cn".
eXtremeDevil
19th May 2013, 11:51
Can I decide with exe will use this filter? I haven't found an option like that, as on FFDShow...
Leader
19th May 2013, 13:55
LAV Filters not work correctly with online video, such as IPTV. When loading m3u-playlist with television LAV Splitter is loaded before the advent of television and the show, as a result, if you close the player, in my case, MPC-BE, it is left to hang in the process. I have one wish - please do so in order to reproduce itself LAV Source link YouTube, ie built-in mechanism that did not use the "File Source (Async)", ie worked on the principle of Arcsoft MP4 Splitter, and similarly for FLV.
SAPikachu
19th May 2013, 14:40
For a future version, i can see about making it smart about which chapter language to use. However, the problem that Keiyakusha mentioned does remain, all you configure is ISO 639-2 language codes, which is just "chi" or "zho" without any specification if you want "tw" or "cn".
That's indeed a problem, but I just checked matroska specification (http://matroska.org/technical/specs/index.html#languages), language code mixed with country code is supported. Is there any technical reason that nobody supports it? I know mkvmerge doesn't support that now, but I think it shouldn't be very hard to implement it.
Anyways, even without country detection, it will still be an improvement over the current behavior. At least it can choose from Chinese and Japanese.
06_taro
19th May 2013, 16:53
Actually it is a pain for many Chinese users in many cases. As for audio, Mandarine and Cantonese cannot be separated by language code even on DVD/BD. And for subtitles Simplified/Traditional Chinese share the same code. I believe the problem is even if matroska allows mixed language-country codes, as long as no other application supports or offers such an API, it is still useless for normal users.
Maybe we have to write a patch to add the feature in FFmpeg, then mplayer/mpv, after when start thinking about how to do the rest work in DirectShow. Implementation in FFmpeg is usually half-way done for many players and would make users become aware of the feature, which might be a motivation for Mosu to spare his time. But adding it in FFmpeg requires to change every language fields that matroska supports into a {language, country} structure, no matter it is for video, audio, subtitles, or chapters, and it may break many existing tools with a major version bump, just for a feature currently very few people are looking forward to. Not sure if it could be accepted by others who would never be annoyed by the issue.
phoenixxl
20th May 2013, 08:31
Hello ,
Would it be possible to add more options where delay is concerned.
IE: The option to add a delay when using pass-through spdif / optical. And a second option when it goes through the system.
For me there is a different delay for both. I'm sure I'm not alone with this.
Thnx in advance for looking into this.
Friendly regards
Phoenixxl.
filler56789
20th May 2013, 14:48
@ nev:
where is the 0.57.0 build? :sly: :)
d8dc0eff4533 Update changelog and version
kerimcem
20th May 2013, 15:11
wmv3 decoding on AMD UVD/UVD+ GPUs new version fixed?
wanezhiling
20th May 2013, 15:19
No, wmv3 dxva2 is still disabled on ancient ATI cards. :p
nevcairiel
20th May 2013, 15:52
LAV Filters 0.57
LAV Splitter
- Added a Popup Menu to the Tray Icon which allows Stream, Edition and Chapter switching
- Improved stream selection in files with multiple video streams
- Improved performance when opening MKVs with linked segments
- Fixed playback of MKVs with Segment Linking and Vorbis Audio
LAV Video
- Enabled Hardware/GPU Deinterlacing when using the QuickSync decoder
- Support for JPEG2000 DCinema streams
- Support for RGB48 output, and high-quality dithering of RGB48 to RGB32
- Fixed a crash with DXVA2 Native on AMD GPUs in certain situations
- Improved detection of H.264 RGB streams, improves support with EVR
- Adjusted performance tuning for consistent performance in both playback and transcoding (in 0.56, transcoding could be slow)
LAV Audio
- Use the FLAC channel mask from metadata, fixes playback of FLAC files with non-standard channel layouts
Download: Installer (both x86/x64) (http://files.1f0.de/lavf/LAVFilters-0.57.exe) -- Zips: 32-bit (http://files.1f0.de/lavf/LAVFilters-0.57.zip) & 64-bit (http://files.1f0.de/lavf/LAVFilters-0.57-x64.zip)
What people have been asking about the most in this release is probably the popup menu on the Splitter tray icon, which lets you control streams, editions and seek to chapters in players which otherwise don't offer this.
Other then that, not much to comment on.
As always, please report any issues with the new features, any regressions, or any other bugs directly here, in as much detail as possible, and the information which allow me to reproduce it.
Only reproducible issues are easily fixed. :)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.