View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
P.J
1st October 2015, 21:07
Is it possible to use iGPU's DXVA native when the monitor is connected to dGPU? :confused:
nevcairiel
1st October 2015, 21:14
Is it possible to use iGPU's DXVA native when the monitor is connected to dGPU? :confused:
No, Native requires decoding and output on the same GPU.
P.J
1st October 2015, 21:32
No, Native requires decoding and output on the same GPU.
Thanks, and what about the DXVA2 copy-back?
Then the only way is to use QS/CUDA :rolleyes:
nevcairiel
1st October 2015, 21:47
Copy-Back doesn't care, you can use it with any GPU and output to any other. Or don't output at all. Or do whatever you like. :)
Only DXVA2-Native has this limitation, because it keeps the image on the GPU, and you cannot switch GPU because you wouldn't have the image then. ;)
hubblec4
1st October 2015, 22:29
I would need a sample of the menu to check. You can create a menu-only sample by taking the VIDEO_TS folder without the main movie .vobs
On most DVDs, just exclude the 1GB .vob files, usually those with their name being VTS_xx_1 (or ending with a higher number), while those ending with a zero are often for the menu.
However, if you are not even seeing the menu background image, then its unlikely to be related to the recent fixes, but maybe something else. I'll check if I get a sample. :)
I have copyed all files except the big vob's in a new folder.
(right click on folder -> play with mpc-hc)
The DVD don't start with playing, sure I should upload this folder?
nevcairiel
1st October 2015, 22:31
I have copyed all files except the big vob's in a new folder.
(right click on folder -> play with mpc-hc)
The DVD don't start with playing, sure I should upload this folder?
Well make a copy of the full folder, and see how many of the big VOBs you can delete without breaking the menu. Maybe you deleted one too many. Make sure to keep all the IFO/BUP files and the VIDEO_TS.VOB
hubblec4
1st October 2015, 22:50
Well make a copy of the full folder, and see how many of the big VOBs you can delete without breaking the menu. Maybe you deleted one too many. Make sure to keep all the IFO/BUP files and the VIDEO_TS.VOB
mmh bad news: When I delete any vob, the DVD don't start.
The whole DVD must be complete and that are 6,82gb.
I cant upload it from home, but maybe at work in few days.
Magik Mark
2nd October 2015, 00:25
Nev, may I know if cuvid is:
1. Well supported in windows 10?
2. What are its limitations in madvr and windows 10?
3. Which processing (upscaling & downscaling algorithms) are supported & not?
4. Can it do 10bit or higher video playback?
Thanks
huhn
2nd October 2015, 04:19
nvidia driver have broken CUVID when "any" other problem is using openCL under windows 10.
CUVID has the same limitation as DXVA it is the same decoder anyway. 10 bit HEVC is possible on a 960 or 950.
DXVA copyback is better anyway so just let CUVID R.I.P.
ryrynz
2nd October 2015, 05:06
DXVA copyback is better anyway so just let CUVID R.I.P.
Basically already has. There won't be updates for it.. Only a matter of time until it's removed.
FreeFall
2nd October 2015, 06:07
hubblec4,
You can try using DGSplit to cut the VOB and see if that works, just split using a small size, around 60-80MB and tick the box stop after 1 chunk(s) written.
https://trac.mpc-hc.org/raw-attachment/wiki/samples/dgsplit12.zip
If that doesn't work try VobBlanker, It's not too hard to figure out how to use. If you have AnyDVD running just close it first.
http://www.doom9.org/Soft21/Vobtools/VobBlanker_2130_exe.zip
Here is a basic run down on how to use it:
After opening the IFO select the largest VOB in the top list and edit by selecting the the PGC (largest) in bottom list, Use Prev/Cut to reduce the size of the VOB.
Blank removes the stream entirely, you can use this to remove trailers / special features to save a bit more space.
When your finished click process.
nevcairiel
2nd October 2015, 07:55
Nev, may I know if cuvid is:
1. Well supported in windows 10?
2. What are its limitations in madvr and windows 10?
3. Which processing (upscaling & downscaling algorithms) are supported & not?
4. Can it do 10bit or higher video playback?
Thanks
CUVID in its current form is somewhat broken on 10, because the D3D9 mode it uses is no longer available, and the pure CUDA mode it has as a fallback seems to conflict with OpenCL. On top of that, the pure CUDA mode doesn't offer the best deinterlacing quality, if thats the reason people used it for.
It would need a revamp to make use of D3D11 instead, then it might be able to be restored to full functionality on 10 as well (although there are no guarantees that it won't still conflict with OpenCL), but I would rather focus my efforts on DXVA2, as any improvements made there can benefit anyone, and not just NVIDIA users.
On top of all that, CUVID lacks support for 10-bit entirely. It doesn't specify a 10-bit output format. So its not exactly future proof.
So just consider CUVID dead. I might even forcefully disable it on Windows 10 soon to avoid conflicts with madVR and other things using OpenCL.
hubblec4
2nd October 2015, 08:40
hubblec4,
You can try using DGSplit to cut the VOB and see if that works, just split using a small size, around 60-80MB and tick the box stop after 1 chunk(s) written.
https://trac.mpc-hc.org/raw-attachment/wiki/samples/dgsplit12.zip
If that doesn't work try VobBlanker, It's not too hard to figure out how to use. If you have AnyDVD running just close it first.
http://www.doom9.org/Soft21/Vobtools/VobBlanker_2130_exe.zip
Here is a basic run down on how to use it:
After opening the IFO select the largest VOB in the top list and edit by selecting the the PGC (largest) in bottom list, Use Prev/Cut to reduce the size of the VOB.
Blank removes the stream entirely, you can use this to remove trailers / special features to save a bit more space.
When your finished click process.
Thanks for this info.
I know DGSplit, i will try this first.
6,82 GB ist not sooo much at this times :-)
But my Inet-Connection so very small :-(
P.J
2nd October 2015, 10:23
Copy-Back doesn't care, you can use it with any GPU and output to any other. Or don't output at all. Or do whatever you like. :)
Only DXVA2-Native has this limitation, because it keeps the image on the GPU, and you cannot switch GPU because you wouldn't have the image then. ;)
Well, I want my iGPU to decode in DXVA2 copy-back mode then output to dGPU.
How is it possible? :confused:
hubblec4
2nd October 2015, 11:14
Hi nevcairiel
The DVD don't playing after i modify any file.
So i will upload the whole DVD, have you a FTP server like Mosu's FTP?
lolo258
2nd October 2015, 11:21
Hi, is there any chance that LAV Audio Decoder can decode Dolby Atmos?
CruNcher
2nd October 2015, 14:30
nvidia driver have broken CUVID when "any" other problem is using openCL under windows 10.
CUVID has the same limitation as DXVA it is the same decoder anyway. 10 bit HEVC is possible on a 960 or 950.
DXVA copyback is better anyway so just let CUVID R.I.P.
How do you get to this conclusion ?
it might be broken currently under WDDM 2.0 but it's stronger then ever on WDDM 1.1
at least currently on the GTX 970 it shows much more stable playback acceleration results (less jitter problems) for alot of HEVC samples than either DXVA Native nor Copy Back from Lav Decoders point.
Especially in combination with Nvidias DSR
clsid
2nd October 2015, 14:54
Maybe that is simply a result of your GPU running in high performance mode (P0) when using CUVID?
With the "Multi Display Power Saver" functionality of NVIDIA Inspector you can force a desired power state when specific apps are running.
nussman
2nd October 2015, 15:36
With CUVID you can do GPU deinterlacing before copyback and with DXVA Copyback you can not (copyback is still interlaced)? Or am I wrong?
So CUVID could be useful for processing between decoder and renderer?
CruNcher
2nd October 2015, 15:44
Maybe that is simply a result of your GPU running in high performance mode (P0) when using CUVID?
With the "Multi Display Power Saver" functionality of NVIDIA Inspector you can force a desired power state when specific apps are running.
Let me see if i can get a clear measure result on that but yeah geez i didn't thought about it, it's CUDA afterall :(
You are right the memory and core clock are fluctuating heavily with DXVA and seem to cause these brakeups, this is a rather low timing resolution though to see exactly how heavy it is per frame (trying to avoid more interferences)
http://i2.sendpic.org/t/xh/xhUlxEd4QELZyPiAXxuCirpqKDH.jpg (http://sendpic.org/view/2/i/iMTqv0VYzkAMy9Jh2lNJ5kHq6J1.png) http://i2.sendpic.org/t/2J/2JwRHqW13cZTk43VXnZLohyTYVw.jpg (http://sendpic.org/view/2/i/vXKCFAi0RLi6U4toI48QGuJWc6u.png)
And these interference's with DXVA i can measure on much much more HEVC samples with Copy Back and Native compared to CUVID
I will experiment a little based on this new Data thx clsid i was so blind, now i know @ least the cause of these DXVA render interferences that especialy become visible in the jitter OSD Graph i experienced since a while for GM204 + VP6 with HEVC :)
MPC-BEs OSD Graph seems very precise that it can pick up these fast Frequency fluctuations of DXVA and make them so nicely visible :)
LigH
2nd October 2015, 19:25
Hi, is there any chance that LAV Audio Decoder can decode Dolby Atmos?
That's already a "Frequently Asked Question". The most common answer was usually: "No, OpenSource authors will probably not get access to Dolby secrets regarding Atmos audio room measuring."
chros
3rd October 2015, 21:40
Well, I want my iGPU to decode in DXVA2 copy-back mode then output to dGPU.
How is it possible? :confused:
I'm also interested in this as well.
Maybe it's not allowed with this silly optimus setup of my laptop, but I only can select QuickSync when I play back with iGPU.
aufkrawall
4th October 2015, 02:20
This would be possible with DX11 DXVA2 decoder, but according to nev, it would be very inconvenient to develop.
nevcairiel
4th October 2015, 10:32
This would be possible with DX11 DXVA2 decoder, but according to nev, it would be very inconvenient to develop.
I may do it eventually, however with no renderer accepting D3D11 DXVA2 either, it would only be for Copy-Back, and I would have to keep duplicate logic around... so its not too convincing.
On top of that, using a secondary GPU for decoding without a screen connected seems to be somewhat of a niche feature.
CruNcher
4th October 2015, 13:46
you could use also a virtualization solution for that unfortunately the only consumer targeted one doesn't exist anymore (Lucidlogix Virtu)
aufkrawall
4th October 2015, 16:58
On top of that, using a secondary GPU for decoding without a screen connected seems to be somewhat of a niche feature.
It could make sense if you have an IVB or newer IGP and a Kepler or most Radeon GPUs, which have outdated VPU capabilities, but are still very widespread. :)
At least in theory, I have no idea how it would look in practice in the end.
P.J
4th October 2015, 20:22
I may do it eventually, however with no renderer accepting D3D11 DXVA2 either, it would only be for Copy-Back, and I would have to keep duplicate logic around... so its not too convincing.
On top of that, using a secondary GPU for decoding without a screen connected seems to be somewhat of a niche feature.
Waiting... http://forums.mydigitallife.info/vb4_style/smilies/clap.gif
Stephen R. Savage
6th October 2015, 16:04
I find that in recent versions of MPC-HC and LAVF I can't get the subtitles on this file to display. It recognizes that there is a subtitle track available, but when I select it, nothing shows up. This file used to play correctly in older MPC/LAVF versions.
Software:
MPC-HC 1.7.9
LAVF 0.66
XySubFilter 3.1.0.705 (caded62) / MPC-HC Internal Renderer
https://www.sendspace.com/file/lwycsf
Thunderbolt8
6th October 2015, 17:38
yesterday I also had trouble to getting my .ass subs to display. for whatever reason they often didnt show up. tried reinstalling xysubfilter & restarting windows. it somewhat helped, but not necessarily consistant. no problems today so far.
I though it could have something to do with madvr changing the screen Hz rate? desktop is running at a different fps rate than my movie was (24 or 25 fps desktop, movie was 50Hz).it appeared that it was working more reliably when I clicked next file in the player so that there was no refresh rate change this time, because the refresh rate had already changed with the first file of the playlist playing (they all were 50Hz). but as said, I couldnt reliably made out a pattern, this is more like a kind of rough observation.
as of yesterday theres a new mph-hc nightly build, perhaps this one fixed some stuff. perhaps all this was due to the recent changes in the madvr and mpc-hc subtitle areas.
TurboGamer
6th October 2015, 19:44
I found a problem where LAVaudio only plays 1 type of audio when ordered chapters are used.
In my example I have 3 .mkv files. For simplicity I will call them 1, 2 and 3. 1 has AAC audio while 2 and 3 has FLAC. 1 calls 2 via ordered chapters to play at the start as a OP and then at the end calls 3 as a ED. 2 and 3 plays their audio while 1 stays mute. This happens both in MPC-HE and JetAudio.
For reference VLC does not have this problem.
nevcairiel
6th October 2015, 19:45
I found a problem where LAVaudio only plays 1 type of audio when ordered chapters are used.
In my example I have 3 .mkv files. For simplicity I will call them 1, 2 and 3. 1 has AAC audio while 2 and 3 has FLAC. 1 calls 2 via ordered chapters to play at the start as a OP and then at the end calls 3 as a ED. 2 and 3 plays their audio while 1 stays mute. This happens both in MPC-HE and JetAudio.
For reference VLC does not have this problem.
This is not supported, and likely never will be. Linked Segments need to have the same codecs.
DirectShow is not well suited to changing codecs on the fly.
mbordas
6th October 2015, 21:36
I know upmixing has been discussed in the past, but re-reading the posts, the answer was inconclusive about how to achieve this. If you have 5- or 7-1 surround, the downmixing features of lav audio are never needed - especially if you are using reclock to get lossless audio. But in this case, there are a lot of movies and tv shows in stereo that would really benefit from at least remixing to use the center channel. Can anyone comment on the best/most straightforward way to accomplish this?
huhn
7th October 2015, 09:46
AC3 filter.
just disable everything except PCM.
chros
7th October 2015, 10:27
AC3 filter.
just disable everything except PCM.
Thanks for your suggestion (I read your post in the MPC-HC topic couple weeks ago), I've been using it for 1 week now, working perfectly (it also has a x64 version) with the new internal audio renderer of MPC-HC! :thanks:
Aleksoid1978
7th October 2015, 10:41
Hi nevcairiel
Can you help with some strange.
I have file(it's make by ffmpeg record from internet streaming) - https://yadi.sk/i/0ZFQk0c4ja28g
It's nornal play with LAVSplitter and don't play with MPC-BE MPEGSplitter. But - very strange that it's normal play with MPEGSplitter(test in graphstudio) if no decoder connect to audio pin. If audio pin connected - playback start and ... wait something(tested with any video-decoder). I do some debug check - and found place in code(MPC-BE video decoder & LAV Video decoder) where playback is waiting until don't close rendering file.
Here is in MPC-BE
m_pOutput->GetDeliveryBuffer(ppOut, NULL, NULL, 0)
and in LAV:
m_pOutput->GetDeliveryBuffer(ppOut, nullptr, nullptr, 0)
after start rendering and after decode few frames - rendering it's just is waiting something inside this function.
Test with different video-rendering.
I can not understand what does a splitter + audio pin and a video decoder ...
Can you help me ?? :)
P.S. Here latest MPEGSplitter - https://yadi.sk/d/De5_slTpja2zA
nevcairiel
7th October 2015, 11:26
Usually its a sign of either broken timestamps (ie. the video renderer doesn't want to display any more frames because they are far in the future), or missing/broken audio - because the reference clock doesn't start moving.
Aleksoid1978
7th October 2015, 13:52
Usually its a sign of either broken timestamps (ie. the video renderer doesn't want to display any more frames because they are far in the future), or missing/broken audio - because the reference clock doesn't start moving.
Thanks, My fault - in this file audio stream have only one PES Header at the begin of file. And splitter don't render any audio data ...
mbordas
8th October 2015, 07:04
AC3 filter.
just disable everything except PCM.
and this interferes with lossless dts-ma from reclock. I know this is not strictly a lav audio problem, but it's related because there is not an obvious way to do both upmixing and still maintain the untouched wasapi audio for things that have a lossless audio track.
huhn
8th October 2015, 07:26
if you want lossless audio bitstream it?
and why do you need reclock for lossless audio?
and most important how do you up mix lossless?
mbordas
8th October 2015, 17:57
ok here is the problem: i don't bitstream audio. I have an eight channel amplifier, so all processing is done on the htpc.
This is one reason LAV Filters have worked so well for me for so many years. As we all know, LAV handles dts-hd ma and truehd perfectly.
So, your suggestion is to use AC3filter to upmix stereo to work better in a multi-channel setup. So far so good. It works as advertised.
BUT for movies that *do* have a multi-channel track, I don't want AC3 to interfere with the lossless (ie dts-hd ma) track. How do I bypass AC3filter for those tracks - or in other words, how do I restrict AC3filter to only touch stereo tracks?
huhn
8th October 2015, 18:22
ac3filter can't up mix anything else than stereo.
i don't know if it doesn't touch audio at all but never forget as soon as the volume isn't 100 % anymore it isn't lossless too.
disable bass redirect and voice control and it shouldn't touch anything in 5.1 or 7.1 tracks.
daert
8th October 2015, 19:03
ok here is the problem: i don't bitstream audio. I have an eight channel amplifier, so all processing is done on the htpc.
This is one reason LAV Filters have worked so well for me for so many years. As we all know, LAV handles dts-hd ma and truehd perfectly.
So, your suggestion is to use AC3filter to upmix stereo to work better in a multi-channel setup. So far so good. It works as advertised.
BUT for movies that *do* have a multi-channel track, I don't want AC3 to interfere with the lossless (ie dts-hd ma) track. How do I bypass AC3filter for those tracks - or in other words, how do I restrict AC3filter to only touch stereo tracks?
I had the same problem and I thought that the best way to solve it was by creating 3 custom matrix:
one for upmixing 2.0 > 7.1
one for 5.1 > 7.1, which basically copies the 6 channels and leaves the two back channels mute, or reroute the side channels to back (like I did)
one for 7.1 > 7.1, which copies exactly the 8 channels as they are
I don't know if there is a simplier way, but with this method I only have to select the right profile before opening the player
Aleksoid1978
9th October 2015, 06:49
Hi nevcairiel
https://yadi.sk/d/y8dWgWtqjch49 - bad playback with LAVVideo(dxva/soft), wrong fps, drop frames. Play fine with MPC-BE/PotPlayer's video decoder.
chros
9th October 2015, 19:29
I had the same problem and I thought that the best way to solve it was by creating 3 custom matrix:
one for upmixing 2.0 > 7.1
one for 5.1 > 7.1, which basically copies the 6 channels and leaves the two back channels mute, or reroute the side channels to back (like I did)
one for 7.1 > 7.1, which copies exactly the 8 channels as they are
I don't know if there is a simplier way, but with this method I only have to select the right profile before opening the player
I'm not sure whether you need those 3 custom profiles. Doesn't Auto-Matrix produce this automatically?
It's working fine for me with 5.1 setup:
- 2.0 + Expand-Stereo -> 5.1
- 5.1 -> 5.1 (untouched)
Dogway
10th October 2015, 07:32
Is there a way to change LAV audio's delay with hotkeys? I have a problem where I'm watching a movie in FSE and I need to sync audio.
Currently the process goes to switch to windowed mode. This takes me out of FSE and the TV flashes a few times and video then plays choppy (video driver's fault as per madshi), then back again to FSE after a few more flashes and expect for the best.
nevcairiel
10th October 2015, 07:45
Is there a way to change LAV audio's delay with hotkeys? I have a problem where I'm watching a movie in FSE and I need to sync audio.
Currently the process goes to switch to windowed mode. This takes me out of FSE and the TV flashes a few times and video then plays choppy (video driver's fault as per madshi), then back again to FSE after a few more flashes and expect for the best.
LAV doesn't do any hotkey and there are no plans to add any.
Your player may offer hotkeys for delay instead.
Dogway
10th October 2015, 09:55
LAV doesn't do any hotkey and there are no plans to add any.
Your player may offer hotkeys for delay instead.
Reasoning?
Audio delay without hotkey is an oxymoron.
To put in perspective:
My player does player related hotkey stuff.
Renderer (madVR) does renderer related hotkey stuff.
nevcairiel
10th October 2015, 10:16
Strictly speaking delay should also be a feature of the audio renderer, since its responsible for the reference clock and therefor for A/V sync. LAV only offers it as a convenience to compensate for static delay from the playback chain (which you measure once and configure once), not to compensate for badly authored files with A/V sync trouble baked in.
If you use MPC-HC, you can use Numblock +/- keys to adjust audio sync. A bunch of other players also offer these features.
LAV will not get hotkeys (of any kind, not specifically this one) because I do not want to have to deal with the mess that comes with it.
P.J
10th October 2015, 17:35
Anyway to optimize decoding H.264 10bit 4:2:2 a bit? :)
It doesn't work good on i3-3110M 2.4GHz, any other decoder to try? :(
chano22000
10th October 2015, 19:46
Hi,
I use mpc-hc and lav as external filters. When trying to play wmv files with wvc1 video, Lav splitter source complains not finding any suitable video decoder though lav video vc1 is enabled. Enabling/disabling "use Microsoft DMO WMV9 decoder" does not change anything.
Running mpc-hc with internal lav with all source/video/audio options enabled does not solve the issue.
The only way is to disable asf when installing lav splitter and add WMASF Reader and WMVideo Decoder DMO as preferred filters in mpc-hc.
Files are played without any issue through Windows media Player.
Is this a known issue (GrapStudioNext shows some flavors of VC1 handled by lav video but could some subtypes handled by the Microsoft DMO decoder not being supported by Lav Video ?) or what should I do ?
Thank you for your feedback.
Kind regards.
(Windows 7 x64 - mpc-hc x64 - lav filters x64 - MadVR x64 - lav video DXVA2 CB, HW decoding incl VC1- Nvidia GTX650)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.