View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
Prinz
16th June 2016, 22:44
Since LAVFilters-0.68.1-9 I'm getting the wrong fps reported to MadVR (= displaymode switching doesn't work correctly)
In Versions LAVFilters-0.68.1-4 and before I get the correct fps:
http://i64.tinypic.com/2i0ao42.jpg
LAVFilters-0.68.1-9 and higher I get:
http://i68.tinypic.com/xf6vsp.jpg
Is this a known issue or a new setting that I'm overlooking?
nevcairiel
16th June 2016, 23:08
This is a bug, however it should be noted that FPS information is generally not very reliable and absolutely relying on it will fail eventually.
videonerd
18th June 2016, 19:22
Hi nevcairiel, it is generally accepted that ASF container seeking doesn't work too well with lavfilter's splitter. I have recently noticed that another ffmpeg-based player, mpv seems to handle ASF container seeking without glitch. Is the issue therefore at lavfilters level i/o ffmpeg? If so, any plans to have a go at fixing this? Cheers.
LigH
18th June 2016, 21:16
I'd like to point at the options of MPC-HC: There used to be an option (not sure if it is currently still present, don't have it right here) to choose between two different ASF/WMV splitters. One seeks faster, but can't seek at all when the file is incomplete (e.g. doesn't contain a keyframe index). So I believe this container format is a bit "brittle", either trust it completely or not at all.
hubblec4
20th June 2016, 09:28
Hi nevcairiel
Feature request:
When I open a BDMV folder via right click -> play in MPC-HC, then play the longest movie automatically (normally is this the main movie).
But I have some Blurays where the longest movies are the "Extras" or "Specials". The "Extras or Specials" are not in full HD.
Is it possible to check first the resolution and then the longest playlist?
clsid
22nd June 2016, 20:23
Some Matroska files trigger a crash due to this change:
http://git.1f0.de/gitweb?p=ffmpeg.git;a=commitdiff;h=ead46dfd7eac4b154b94f3642091f9fcc8deb89b
To be more specific the TARGET_TRACK change. Crash happens in avutil.
Don't have a small sample file available right now, but maybe you don't need it.
nevcairiel
22nd June 2016, 20:26
I always need a sample. :)
clsid
22nd June 2016, 21:06
Check your PM.
nevcairiel
23rd June 2016, 10:39
Check your PM.
Should be fixed.
rock
24th June 2016, 16:38
hi, is there any plan to implement more codecs that supported by Media Foundation? Also I would like to know when you will implement HW fallback from DXVA2 Native to Copy-Back as I remember I read the discussion somewhere in this thread.
nevcairiel
24th June 2016, 16:39
hi, is there any plan to implement more codecs that supported by Media Foundation? Also I would like to know when you will implement HW fallback from DXVA2 Native to Copy-Back as I remember I read the discussion somewhere in this thread.
I don't intend to do either of those things. Sorry. There are no MF codecs of value and its easy enough to configure DXVA2 to the needs of your setup without some complicated fallback.
3421
24th June 2016, 19:26
Add enable DTS-HD.
clsid
25th June 2016, 00:37
If you are talking about bitstreaming. DTS-HD gets enabled if you first enable DTS.
3421
25th June 2016, 22:06
I only once enable DTS, DTS-HD was gray. Yes now I can enable DTS-HD when enable DTS.
3421
25th June 2016, 22:18
I only once enable DTS, DTS-HD was gray. Yes now I can enable DTS-HD when enable DTS. I maybe I didn't notice. I don't remember. This difficult not to notice.
LAV/ffmpeg can't play ProRes well :(
Quicktime (smooth):
http://7.t.imgbox.com/UmhiKkFO.jpg (http://imgbox.com/UmhiKkFO)
LAV (not smooth):
http://2.t.imgbox.com/3BhyjP2Z.jpg (http://imgbox.com/3BhyjP2Z)
rock
28th June 2016, 16:11
Video lag (DXVA2 Native, Copy-Back, Software Decoding) with EVR and EVR-CP, play smooth unless I try one of these three way below
- Frame Time Correction enabled in MPC-HC
- Intel Quick-Sync enabled
- madVR as Video Renderer
Tried other DS Filters, latest ffdshow-tryouts and MPC Video Decoder (from MPC-BE), both play smooth.
Video
https://www.youtube.com/watch?v=QbhmTM1cRro (download as mkv 360p using Internet Download Manager)
MediaInfo
http://pastebin.com/UfWTa7um
OSD Screenshot
http://i.imgur.com/nyfY2Xn.jpg
clsid
28th June 2016, 17:05
It is the fault of IDM. The original 360p WebM file plays fine and has a framerate of 23.976 instead of the 24.000 shown in your MediaInfo log.
In your 'working' cases the bad framerate value is getting 'corrected' or is ignored.
rock
28th June 2016, 18:35
I still don't know much about video things. Thanks for the explanation. :)
amayra
30th June 2016, 01:05
Video lag (DXVA2 Native, Copy-Back, Software Decoding) with EVR and EVR-CP, play smooth unless I try one of these three way below
- Frame Time Correction enabled in MPC-HC
- Intel Quick-Sync enabled
- madVR as Video Renderer
Tried other DS Filters, latest ffdshow-tryouts and MPC Video Decoder (from MPC-BE), both play smooth.
Video
https://www.youtube.com/watch?v=QbhmTM1cRro (download as mkv 360p using Internet Download Manager)
MediaInfo
http://pastebin.com/UfWTa7um
OSD Screenshot
http://i.imgur.com/nyfY2Xn.jpg
this doesn't look like madVR
Nerva
2nd July 2016, 22:33
Is there a reason to use "Expand 6.1 to 7.1" vs. "Enable Mixing" with the Output Speaker Configuration being either 5.1 or 7.1? I have a PC with 5.1 and a HTPC with 7.1. I'm just thinking, if I'm already using the mixer and I'm playing a 6.1 file, wouldn't the mixer serve the same function as the "Expand 6.1 to 7.1" option.
jerryleungwh
3rd July 2016, 07:18
I am trying to use LAV with madVR but whenever I play a MVC 3D movie the audio bitstream stops working. It also happens when I enter DSD11 FSE mode too. How can I fix this?
JungleBoy
5th July 2016, 23:43
LAV 0.68.1 is still having trouble decoding 12bit HEVC 4:4:4
Here's some short 10 second test files:
http://bit.ly/1NxTIUy
This file shows green vertical lines.
video-x265-12bit-444.mp4
All the other files including 12it HEVC 4:2:0 play ok.
MrGlasspoole
7th July 2016, 18:58
Hi,
i have some Dolby Pro Logic audio CDs.
In the Status tab i only see pcm_s16le and the channel output only shows left and right.
Does LAV not decode Dolby Pro Logic?
nevcairiel
7th July 2016, 19:42
i have some Dolby Pro Logic audio CDs.
In the Status tab i only see pcm_s16le and the channel output only shows left and right.
Does LAV not decode Dolby Pro Logic?
No, it does not. Dolby Pro Logic is not an audio format, CDs are just uncompressed PCM. You would need an external Dolby audio processor to make use of DPL processing.
MrGlasspoole
7th July 2016, 19:58
To bad. I thought i can skip adding a receiver to my setup.
But it seems like there are also no 9.1 sound cards.
So no more Asus Essence and it looks like there is no way around HDMI and bitstream today if somebody also wants Atmos, DTS:X and Auro-3D.
CarlosCaco
7th July 2016, 23:43
I m on a optimus system intel hd 5500 / nvidia 930m, using latest mpc-be, madvr and lav nigthly on windows 8.1 i also use reclock so is the x86 versions
Both laptop display and hdmi outputs by intel, so nvidia only process the image
I tried to use hardware accelaration on lav, all options are avaliable to me... if i set dxva cb lav shows nvidia 930m as avaliable but no matter what option i choose: cuvid, dxva native oe dxva-cb when i play any file lav shows the option selected but on decoder shows the normal codec and on hardware accelaration shows none... only quicksync works...
Is this because optimus? Is this normal?
In madvr thread people said that cuvid and dxva native is not the ideal and can degrate image quality... same for quicksync? I ready that the latest drivers for broadwell allows hevc hybrid decoding but in lav quicksync hevc is greyd out... im doing something wrong? I want to use dxva cb with nvidia, it is possible?
Plutotype
9th July 2016, 09:44
Some users in the madvr forum reported, that with AMD RX480 DXVA CB does not work with HEVC and 10bit files ( using latest LAV filters ). Is this a driver problem with AMD?
nevcairiel
10th July 2016, 08:53
Is this because optimus? Is this normal?
In madvr thread people said that cuvid and dxva native is not the ideal and can degrate image quality
With Optimus you are on your own, those systems are terrible. Neither the NVIDIA nor the Intel GPU can be used properly on those things.
Note that all HWAccels result in the exact same decoding quality, with one tiny exception when using madVR - DXVA2 Native, which is due to the way madVR accesses the image which can result in chroma blurring. But all others are absolutely identical.
Some users in the madvr forum reported, that with AMD RX480 DXVA CB does not work with HEVC and 10bit files ( using latest LAV filters ). Is this a driver problem with AMD?
Only AMD can answer you that.
MrGlasspoole
11th July 2016, 03:33
Ok I'm lost.
If i understand it right then there is no way to decode Dolby Pro Logic on the PC. The same thing than also applies to "Dolby Digital EX" and "DTS-ES Matrix" where channel six is encoded into other channels?
What i can't find out if the receiver should auto detect Dolby Pro Logic and switch to it (and if does it work with RCA or just SPDIF)? Also how can i tell if a file has Dolby Pro Logic?
vood007
11th July 2016, 05:45
Ok I'm lost.
If i understand it right then there is no way to decode Dolby Pro Logic on the PC.
FFDShow Audio can do this.
LigH
11th July 2016, 07:49
It is certainly possible to decode matrix surround formats on a PC. The decoder logic is usually known, at least in general, just as the encoder logic is (as used in DPL downmixes when converting multichannel audio to a format like MP3 which supports 2 channels at most); exceptions may exist, and license restrictions may exist as well. But there may be no way to detect it certainly in every digital audio stream. Some audio formats may support bitflags in their headers to indicate that the content may be matrix surround encoded, but on one hand this flag may not have been set by the encoding operator, and on the other hand there are also formats without such flags. So eventually it may be in the responsibility of the listener to enable surround decoding and check whether it sounds pleasant or not.
MrGlasspoole
11th July 2016, 17:17
Ok Wikipedia says DTS-ES Matrix has a flag and it seems right because MediInfo says about my file: Matrix and 7 channels.
But LAV Audio in MPC only shows DTS 6 channels in the status/output.
The DTS-ES Discrete file shows a BC...
But if you have 7.1 speakers shouldn't the BC not be copied to BL/BR?
I wonder how others deal with that kind of stuff if you want to use the 7.1 output on the sound card.
The thing is that the speakers i build are active and it makes no sense to buy a expensive AVR if you don't need or can use the amplifiers.
Then a lot of them also have no 7.1 input or mine is 7.1 but has just 5.1 in. So if i use the 5.1 in then 2 amplifiers are not used.
Then switching always by hand the modes on the AVR is also unpractical. Lets say i have a playlist mixed with Dolby Pro Logic music, stereo, mono...
If the PC could to Dolby Pro Logic/DTS-ES Matrix then i guess it would be possible to make a tag in JRiver MC and based on that tag let the PC switch?
LigH
11th July 2016, 17:34
Dolby ProLogic and Dolby ProLogic II are made not to hurt material too much which does not contain ProLogic encoded surround information. There is a chance that it may be misinterpreted if it is just stereo, but the risk should be rather low. And if it is pure mono (left and right channels are identical), the result will be exactly in the center as desired, because the sum of both is all, and the difference of both is zero.
e-t172
11th July 2016, 19:42
The DTS-ES Discrete file shows a BC...
But if you have 7.1 speakers shouldn't the BC not be copied to BL/BR?
In theory, what's supposed to happen in the case of DTS-ES Discrete is that LAV Audio will output 6.1 channels to the audio renderer, which (in the case of the default, standard renderer) will output 6.1 channels to the Windows audio engine, which (if the active speakers are configured as 7.1) will take care of upmixing BC to the appropriate rear speakers. I have no idea if that actually works in practice though, since I never play 6.1 files.
MrGlasspoole
11th July 2016, 20:02
Dolby ProLogic and Dolby ProLogic II are made not to hurt material too much which does not contain ProLogic encoded surround information. There is a chance that it may be misinterpreted if it is just stereo.I thought stereo gets upmixed if you set the decoder to Dolby ProLogic?
From Wikipedia:
DPL II processes any high quality stereo signal source into five separate full frequency channels (right front, center, left front, right rear and left rear).
LigH
12th July 2016, 07:08
Of course, using a ProLogic decoder always upmixes from 2 to more channels; whether or not their content makes sense, is a different issue. Ideally, the surround channels should contain audible content only in case the source was created from an original multi-channel audio with a ProLogic encoder. But due to the nature of the ProLogic systems, even stereo which has never been multi-channel audio before might get "decoded" to contain surround output, which would be a misinterpretation of general stereo with some unfortunate phase differences, and such scenes may sound weird. Or not. Depends on the specific case. And with "dual mono" sources, the output will still be multi-channel, but everything except the center channel should be rather silent.
chros
12th July 2016, 11:39
In theory, what's supposed to happen in the case of DTS-ES Discrete is that LAV Audio will output 6.1 channels to the audio renderer, which (in the case of the default, standard renderer) will output 6.1 channels to the Windows audio engine, which (if the active speakers are configured as 7.1) will take care of upmixing BC to the appropriate rear speakers. I have no idea if that actually works in practice though, since I never play 6.1 files.
Well, I'm not sure either that windows will upconvert it. It definitely doesn't for pure stereo sources, only if the soundcard supports it by hardware and driver (which most integrated ones don't).
Then switching always by hand the modes on the AVR is also unpractical. Lets say i have a playlist mixed with Dolby Pro Logic music, stereo, mono...
Not really, if you have a network capable AVR with full web setup interface, like my Yamaha RX-A830: you can set everything (! , every small bit of it) on the web inteface. After that you only need just a short time to come up with 3 small batch scripts for e.g. music, DPL, and pure movie profiles, like this:
REM set to Movie DPL mode: Vol -45 DB, Drama mode, Enhancer On, Straight Off , Adaptive_DRC Auto , Dialogue_Lvl 0
C:\Windows\wget.exe "http://192.168.1.71/YamahaRemoteControl/ctrl" --quiet -O NUL --header="Content-Type:text/xml" --post-data="<YAMAHA_AV cmd=\"PUT\"><Main_Zone><Volume><Lvl><Val>-450</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Volume><Sound_Video><Adaptive_DRC>Auto</Adaptive_DRC><Dialogue_Adjust><Dialogue_Lvl>0</Dialogue_Lvl></Dialogue_Adjust></Sound_Video><Surround><Program_Sel><HDMI_1><Enhancer>On</Enhancer><Sound_Program>Standard</Sound_Program><Straight>Off</Straight></HDMI_1></Program_Sel></Surround></Main_Zone></YAMAHA_AV>"
After that you can just double click on them, make them as scheduled task, or put it on your openwrt router (with a slight mod) and run it from cron. :) That's how I can wake up every morning listening to music as an alarm (with winamp+clockamp). :)
(I even control my milight/easybulb light bulbs in a similar way. :) )
e-t172
12th July 2016, 13:23
Well, I'm not sure either that windows will upconvert it. It definitely doesn't for pure stereo sources, only if the soundcard supports it by hardware and driver (which most integrated ones don't).
That's not the same thing. If you're playing stereo (LR content) over 5.1, no processing is necessary - Windows just maps input channel L to speaker L and input channel R to speaker R, as it should. The situation is different when playing 6.1 over 5.1/7.1 - there the input contains a BC channel, but there is no BC speaker. In that case Windows has to reroute BC to other speakers (such as BL or BR), otherwise you would lose the channel.
The same situation occurs when you play 5.1 content on a stereo setup - the Windows audio engine will automatically mix C, SL, SR and LFE into the L and R speakers as appropriate.
When playing stereo over a 5.1 setup, Windows will play the content as-is. It will not apply any kind of "clever" upmixing algorithm. Which is perfectly reasonable: stereo is stereo, it was mixed in stereo, mastered in stereo, and is meant to played in stereo. You might disagree, but that would be a matter of preference/taste, not accuracy. Windows is just being conservative and following the principle of least surprise.
nevcairiel
12th July 2016, 13:25
Windows likes to choke on 6.1 content, the back channel might vanish without mixing even on a 7.1 output, which is why LAV has the option to expand the back channel to two back surround channel for 7.1.
Sunset1982
12th July 2016, 14:33
Some users in the madvr forum reported, that with AMD RX480 DXVA CB does not work with HEVC and 10bit files ( using latest LAV filters ). Is this a driver problem with AMD?
I think it was me.
Figured this out when comparing RX480 with GTX1070.
Is anyone here already using a new AMD rx480? Are you experiencing the same issues? (green screen when selecting copyback decoding in LAV when running HEVC files)
Is HEVC decoding working on older AMD cards?
If this problem can be corrected, I would buy an RX480...
blaubart
12th July 2016, 15:46
Lately I stumbeled over a rare 10-bit UHD demo containing some banding in the backgrounds.
To try it with madVR I had to switch LAV from DXVA2 native to copy-back (GTX960). First i thought madVR did the imressive dithering. But later I switched back to MPC-HC's EVR Custom and the dithering was still the same. Then LAV back to DXVA2 native and the banding came back.
So I wondered 'is copy-back so good or native so bad?' and switched LAV to 'None' > good - nearly the same as copy-back.
Since native at the moment is best for UHD-TV with DVBViewer (Nvidia GTX950/960 and AMD RX480) - would it be possible to give native the dithering of copy-back?
Has anybody a working 10-bit setup? How about the banding in a 10-bit TV?
In the video I collected the banding scenes - sorry for some bad cuts - my cutting soft is still not so good with HEVC without rerendering.
https://dc2.safesync.com/FdSVjnr/offen/4K/Snakes_4K-10-bit_banding_cut.zip?a=zAINxh7PTtc
native-banding:
https://dl.dropboxusercontent.com/u/8424544/pics/4K/native-banding.png
copy-back
https://dl.dropboxusercontent.com/u/8424544/pics/4K/copy-back.png
nevcairiel
12th July 2016, 15:51
LAV just outputs the image as close to the original as possible. With DXVA2 Native its output entirely untouched, no conversion and no dithering, and any further processing is up to the video renderer (this also cannot be changed, its just an inherent property of native decoding)
With DXVA2-CopyBack, the video renderer doesn't even know that LAV is performing hardware decoding and just gets an ordinary image (just like software decoding), in whichever format it accepts. For madVR this will be pure 10-bit, for EVR this will be dithered 8-bit.
Its certainly possible that 10-bit DXVA2 Native results in a poor conversion in the video renderer, for madVR depending on the settings chosen (specifically the DXVA settings in the trade quality for performance section), and for EVR in general.
Note that madVR on NVIDIA cards will always produce a bit of chroma bluring when used with DXVA2-Native, so its not recommended for the highest quality results.
blaubart
12th July 2016, 16:16
Thanks for the info.
Well, scenes as seen in the video are really rare in 'normal' UHD-life at the moment. So I'm happy with 'native'.
Note that madVR on NVIDIA cards will always produce a bit of chroma bluring when used with DXVA2-Native, so its not recommended for the highest quality results.
On my Nvidia and reported on a AMD RX480 madVR delivers a black screen with 32-bit DVBViewer at 3840*2160 fullscreen + LAV native. Also madVR's D3D fullsreen exclusive modes sometimes cause heavy crashes with copy-back. So I take EVR Custom.
blaubart
12th July 2016, 22:35
p.s. just tested
..black screen not only using 32-bit DVBViewer but also MPC-HC x64 - nothing changed since (remember?):
http://www.dvbviewer.tv/forum/topic/55897-quo-vadis-htpc-richtung-hevc/?p=432470
nevcairiel
12th July 2016, 22:45
p.s. just tested
..black screen not only using 32-bit DVBViewer but also MPC-HC x64 - nothing changed since (remember?):
http://www.dvbviewer.tv/forum/topic/55897-quo-vadis-htpc-richtung-hevc/?p=432470
That's not a LAV issue, it just delivers the image , it doesn't display it.
In my personal experience madVR with DXVA2 Native just isn't the best combination. Luckily copy back is darn efficient these days , at least on NVIDIA .
madshi
12th July 2016, 22:55
Works fine here, are you using the latest madVR build, blaubart? Anyway, if you still get the black screen with the latest madVR build, this is likely a madVR issue, so OT here.
blaubart
13th July 2016, 00:19
@ nevcairiel
..no need to defend LAV at all ! As you may have noticed from earlier (mostly German) posts I'm the greatest admirer of your work! Ok I must confess I sometimes see threads not only as topic-knight but as voice to the world hoping to attain sth. unexpected...
@ madshi
sorry, just updated from 0.90.21 to 0.90.22 with no success - LAV native 3840*2160 fullscreen still black (Win10, GTX960, newest NVidia driver, madVR set to default). Black even if everything in 'general settings' is unchecked (D3D9, no FSE).
You're right that's OT here but in my defense I've never written anything in your thread here before and since our war years ago. Your madVR thread is also too fast for me. New posts come within seconds. I hate that..
MrGlasspoole
13th July 2016, 02:42
Windows likes to choke on 6.1 content, the back channel might vanish without mixing even on a 7.1 output, which is why LAV has the option to expand the back channel to two back surround channel for 7.1.So for a 7.1 system it's always right to set "Expand 6.1 to 7.1"?
But there is still one thing i wonder about.
If i play a DTS-ES Discrete file then i have output on BL/BR/BC..
Isn't 5.1 not SL/SR:
http://ask.creative.com/wwimages/general/glossary_audio_im13..gif
Sure with the setting above most stuff comes from SL/SR and BL/BR has the same level (mono).
Then i have DD+ 7.1 files where MediaInfo says E-AC-3 but LAV shows only ac3 and SL/SR in the status tab...
Sorry for all the questions. But if you search the web for this stuff most answers are what everybody thinks is right.
And on the DTS site i can't find a setup (speaker placement) guide.
blaubart
13th July 2016, 16:00
Ok, some progress, I'm not so often working on the 4k-PC so i've forgotten some important - the restricted output (YCbCr420) of the GTX960 on 3840*2160.
I remembered when I saw the 2 screenshots in post #20939 (http://forum.doom9.org/showthread.php?p=1773808#post1773808) on a RGB outputting Intel GPU - no differences! Strange enough what code a png image, shot with 'Native' contains to show banding only through YCbCr420 and the other 'Copy-back' png not!
So next test - switching the GTX960 from 2160p to 1080p + RGB output - playing the demo and actually no more differences between DXVA2 Native and Copy-back!
What causes 'Native' to produce stronger banding through YCbCr420 using any renderer and 'Copy-back' not - no idea!
Now I hope the always remaining slight banding might vanish through a real 10-bit output into a real 10-bit TV or Monitor, that would make me and my Snake-demo happy ;)
@ madshi
..and for a real 10-bit output we need a madVR performing a reliable 2160p! :
Naturally I always test madVR as well.
When the GTX960 was at 1080p madVR had no probs switching fullscreen with LAV 'Native'. So its just the screen resolution 2160p causing a black fullscreen. And extremely slow FSE switching at Copy-back (MPC-HC).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.