View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
nevcairiel
25th October 2018, 17:16
Pentium N3700 is not Skylake, thats Braswell, ie. an Atom core.
But I probably still have that one somewhere.
VictorLS
25th October 2018, 21:26
Pentium N3700 is not Skylake, thats Braswell
You're quiet right - it is in notebooks and its graphic core accelerates movies h265 4:2:0 3840x2160 24Hz (and may be 30Hz) well. But 50Hz and of course 60Hz (i.e. from SATs) bad.
ryrynz
26th October 2018, 08:19
How did NikosD mess that one up? :P WB wanezhiling.
NikosD
26th October 2018, 17:00
I can explain my mistakes and never repeat them again.
I saw two VP9 device decoders in an old DXVA Checker screenshot for Apollo and I thought that one of them was 10bit, but no - it was just VP9 from Intel.
And I saw the benchmarks regarding hybrid VP9 so I thought we were talking about Skylake, but no - it was Braswell.
Both my mistakes were minor and don't alter the main meaning of the content that they were referring to, so I can live with that [emoji14]
And both Wanez and Nevcairiel are excellent debuggers (along with huhn) so the rest of the people can be sure that everything is properly corrected :)
FreeFall
27th October 2018, 07:41
nevcairiel,
I've ran into a couple of DVD problems using Lav Filters 0.73.1
DVD Audio Sample (at the menu play all)
https://www.dropbox.com/s/u2eiarh9an8rfrc/DVD%20Sample%20Audio.zip?dl=0
There is an audio glitch (audio is delayed / distorted) during the start of playback when the ending credits play after the episode preview, going back to 0.71.0 fixes the problem.
DVD Subs Sample (at the menu play all)
https://www.dropbox.com/s/5qpf6qbntizsbfu/DVD%20Sample%20Subs.zip?dl=0
The last subtitle lines displayed are stuck on screen during playback, The Microsoft and PowerDVD decoders work without problems. I've included the subtitle files with the sample in case that helps track down the problem.
Winows 7 64bit Pro.
MPC-HC 1.8.3 64bit EVR Custom Presenter S/PDIF Output.
Thanks.
NikosD
29th October 2018, 12:26
VP9 hybrid works fine for Skylake and LAV Filters with the help of DXVA Checker tool.
You have to go to the GPU menu below left of the first screen and then to "Driver settings" and enable VP9 acceleration by setting ON instead of AUTO the VP9 Decode setting.
It seems that Intel disables VP9 hybrid acceleration by default in their drivers.
After the new setting, VP9 hybrid acceleration works for any app (DXVA Checker, MPC-HC etc)
VictorLS
9th November 2018, 09:23
Can anybody test 50fps 4:2:2 H265 20180428-175510_4K ENC 3 RMAD VS LEG.ts (563MB) https://yadi.sk/d/m0s5ztpj3XnUyw on RTX2080 with NVIDIA CUVID hardware acceleration (according to https://developer.nvidia.com/nvidia-video-codec-sdk#NVDECFeatures - I hope ** 4:2:2 is not natively supported on HW just forget to remove from NVDEC section after Turing out - it may be accelerated successfully)? Btw theoretically must LAV Video Decoder be changed to support hardware acceleration not only 4:2:0 according to * The Video Codec SDK, which exposes new decoder improvements and features of Turing will be released soon... before or after that release (in new driver?)?
nevcairiel
9th November 2018, 12:07
4:2:2 decoding is not supported in hardware.
el Filou
9th November 2018, 20:16
I hope ** 4:2:2 is not natively supported on HW just forget to remove from NVDEC section after Turing out - it may be accelerated successfully)?How I understand this is Turing supports 4:2:0 and 4:4:4, but not 4:2:2 (or else it would in the table along with 4:4:4, which is only available on Turing).
VictorLS
10th November 2018, 10:29
How I understand this is Turing supports 4:2:0 and 4:4:4, but not 4:2:2
I understand the same but it seemed very strange. And I hope this is just mistake jn that page - I need 4:2:2 hardware acceleration for SAT feeds - record of one of them I've mentioned above. CPUs that can fluently play that (like i7 or top Ryzen) are very expansive but i.e. RT(X)2030 must be cheap enough...
ryrynz
10th November 2018, 11:46
nevcairiel said there isn't hardware acceleration for it and that's it. There's no mistake, he would know.
VictorLS
10th November 2018, 12:07
nevcairiel said there is hardware acceleration for it
There is or there isn't? ;)
I agree with one thing - before Turing there wasn't any hardware acceleration for non-4:2:0 by any desktop videocard for home use (may be special videocards was able decode 4:2:2 because some very expansive SAT set-top-boxes support 4:2:2 decoding in their hardware).
ryrynz
10th November 2018, 12:12
Obvious typo :P
milousebw
10th November 2018, 15:21
Hello,
I have a problem with my Ryzen 2400G and D3D11 mode. In DXVA2 mode, no problem, the video is perfectly fluid. But in D3D11, the image seems to be raffrachied only once a second instead of the usual 24.
Anybody have this bug too ?
Thanks for your help.
el Filou
10th November 2018, 18:15
Even with "Automatic (Native)" ?
Manni
10th November 2018, 19:41
@Nevcairiel
Two quick questions:
1) when a HDR metadata file has 0 for MaxMDL, do you replace it with a default value, and is that default value 1100nits? I'm asking because I get this value reported by MadVR on the OSD when the metatada reported on the disc is 0, fo example with Life of Pi US. Not a big deal but it would be nice to know for sure where it comes from.
2) For some titles, the metadata reported by LAV is changed to completely different values compared to what's on the disc. For example, with Goodfellas UK, the values on the disk are 247/60 for MaxCLL/MaxFALL, they become 500/200 when reported by LAV. I don't think this is a LAV issue because Mediainfo reports the same altered values when reading the mkv file, so it most probably happens during decryption, but I'm wondering if it could be related to some studios hiding a watermark during the rip of the disc in the metadata, as reported here: https://www.makemkv.com/forum/viewtopic.php?t=17008. Do you have an opinion on this, or have you come across it and do you have an explanation?
Thanks!
milousebw
10th November 2018, 20:23
Even with "Automatic (Native)" ?
I just tried the opposite setting (by choosing the graphics card) and it works! Thank you for the advice but what is the difference between these two modes (Automatic (Native) and the other?)
SamuriHL
10th November 2018, 21:17
Hey, Nev, are you aware of any more issues with ATMOS audio tracks? This is a Disney seamless branching UHD (Incredibles 2) that I'm dealing with. I've tried ripping it with two different pieces of software but the audio track is giving me all kinds of issues. It's far worse if I try to bitstream (audio cuts out completely at one point, restart the movie and have sync issues, pops where the audio drops and comes back, etc) than if I decode to PCM. But even PCM the audio has artifacts (pops due to audio drops, sync issues). I've tried with both MC and MPC-HC and I have pretty consistent results. Not sure if this is a problem with ripping the title but I've tried MakeMKV 1.14.1 and CloneBD and end up with issues with both. Thanks!
el Filou
10th November 2018, 23:17
@milousebw: if you select a specific GPU then you put D3D11 in copyback mode so it works with any renderer but the decoded frames need to be transfered back to main memory which is often more demanding of system resources and so is not recommended for iGPUs.
If you leave it on Automatic you get native mode which needs to connect directly with the renderer and currently only works with madVR, but is supposed to be lighter on the system (the renderer is working directly with the decoded frames already in video memory).
Automatic (Native) is supposed to have better performance, but maybe there are bugs with this particular mode with AMD's driver.
Were you using madVR when you tried it?
milousebw
11th November 2018, 00:22
Yes I use MadVR, and I update my drivers many times since my first installation, but with no effect.
Grimsdyke
12th November 2018, 13:14
Hi Nev, I was wondering if it would help 'weaker' hardware to add to 'queue settings' maybe also 'minimum values' ?? Kind of a first buffer before the renderer kicks in ??
huhn
12th November 2018, 18:49
buffers like this can be shared between decoder and the renderer and a high buffer may even break decoding (nev already limited buffer sizes for known cases like this.).
if you want a bigger buffer for weak hardware both EVR CP and madVR support custom buffer sizes.
tasosss
12th November 2018, 20:55
Hello.
I'm facing the following problem.
I'm using umedia server and its player (http://www.umediaserver.net/umediaserver/download.html)
When i use lav filters with no hard acceleration (just avcodec) and i move the player's window from one monitor to another
the image becomes black.
Moreover after watching for a few minutes(without moving between monitors) then suddenly it also freezes.
The former doesn't always happen.It may happen after 2-3 minutes or 10-20 or never.
When using hardware acceleration(cuvid) then the image is working fine(i can move the window between monitors) but audio is lost...
Using ffdshow or even using the windows' implementation(no external filters) i have no problems.
I was looking to find a solution for a few months now and i couln't believe that it was due to this.
Any ideas please?
BTW thanks for your work nevcairiel.
Thanks!
VictorLS
18th November 2018, 04:35
Btw Aleksoid1978 (big THANKS) did special version of MPC Video Decoder with skip non Intra (and standard standalone version with skip B-) frames option is in ffmpeg so SAT-amateurs don't need to use MainConcept HEVC Video Decoder for non-accelerated h265 4K and 8K streams to watch slideshow http://smartdvb.net/bb/posting.php?mode=edit&f=13&p=6596
Grimsdyke
18th November 2018, 18:27
@Nev. I have the following problem.
MPC-BE (4176) + LAV (73.1) with Splitter and Splitter Source prefered trying to play AVI => BE hangs !
- Set 'Splitter source' to blocked => AVI plays but no sound !!
- BE all internal plays the files just fine.
And do I really have to install both Splitter and 'Splitter Source" ? What's the difference between these two ?
mogli
19th November 2018, 09:11
LAV Splitter vs LAV Splitter Source (https://forum.doom9.org/showpost.php?p=1491938&postcount=1583)
Hm, do we need to add File Source (Async) for MPC-BE, too?
justnobody
21st November 2018, 20:05
I have to report a bug in LAV Video
if we enable avs script in video player, like Potplayer, with LAV Video, avs script won't work, player saying you are using DXVA, how could that possible, I've always set DXVA to none in LAV Video
I've tested the filters one by one, found out that the problem is LAV Video, switch to other video decoders it works again
please fix, thanks
@nevcairiel
Antonio
28th November 2018, 00:14
Hi, and firstly, thank you very much for the job done with Lav Filters, that I appreciate using with mpc-hc.
I just tried the new dav1d decoder with latest SIMD optimisations included, through a recent mpv build, and the performance is astonishing. 4K samples that could not be played in a good way even with an hexacore are now handled very smoothly with little CPU occupation. I wonder if it would be possible to integrate this code in a future version of lav filters (as ffmpeg does) in order to benefit from this work. It seems to be in a compatible open source license, so I suppose that it would be allowed, but I guess it would need some work, so maybe if you happen to get some spare time some day...
max79
28th November 2018, 21:09
Is it possible to somehow supply the user agent in LAV Splitter Source ? I'm noticed that i can connect to this radio stream only if run it like this:
ffmpeg -user_agent Mozilla -i http://95.188.107.89:8008/LR_Russian.mp3
Any feedback would be appreciated.
sneaker_ger
28th November 2018, 22:23
Hi, and firstly, thank you very much for the job done with Lav Filters, that I appreciate using with mpc-hc.
I just tried the new dav1d decoder with latest SIMD optimisations included, through a recent mpv build, and the performance is astonishing. 4K samples that could not be played in a good way even with an hexacore are now handled very smoothly with little CPU occupation. I wonder if it would be possible to integrate this code in a future version of lav filters (as ffmpeg does) in order to benefit from this work. It seems to be in a compatible open source license, so I suppose that it would be allowed, but I guess it would need some work, so maybe if you happen to get some spare time some day...
LAV author has already said he will likely include dav1d in the future (unless some other free decoder ends up being faster which is unlikely). I bet dav1d will be in LAV filters long before you (or me) use AV1 for anything other than samples. :p There is no need to rush.
Sunspark
6th December 2018, 05:18
I'm noticing something strange, if I connect my Android tablet to the PC using MTP and view the directory of files, LAV will place multiple copies of its icon in the systray.
I am not opening or playing files, yet something is being triggered.
When I hover the mouse over the LAV icons, they will all disappear one by one.
Image of systray (https://www.dropbox.com/s/hml3y0c31ilpqox/lav.png?raw=1)
nevcairiel
6th December 2018, 09:11
Something in the background is using LAV to look at the media files apparently. And its not closing down the filter graph properly so that LAV doesn't get a chance to fully remove its systray icon again.
clsid
6th December 2018, 17:49
Use for example ProcessExplorer to see which process (.exe) is loading LAV. Then it could be added to the trayicon blacklist.
MTP is really annoying. It checks if the files are compatible with formats supported by your device.
Grimsdyke
7th December 2018, 15:34
@ nev. Would it maybe an idea to add (basic) profile ability ??
I am asking because on my system I can use DXVA2-copyback on everything up to 1080p but unfortunately I do need D3D11-native for UHD !!
nevcairiel
7th December 2018, 16:09
There are no plans for profiles.
ryrynz
8th December 2018, 06:45
Perhaps the ability to specify a hardware decoder for each of the three resolution types SD, HD, 4K?
Some might even find it useful to select a different hardware device for each resolution type also.
A lot less involved than profiles.
dbezerra
12th December 2018, 01:41
Nev, I have noticed issues with Atmos drop outs on the Incredibles 2 disk and others are reporting the same on different threads such as
https://club.myce.com/t/atmos-audio-drop-outs-details-thread/399840/106?u=careca
https://yabb.jriver.com/interact/index.php/topic,114628.msg818879.html#msg818879
One of the users posted a log file in the JRiver thread. Is this something you are aware of? Do you need a sample MKV?
Thanks
SamuriHL
12th December 2018, 01:52
I posted about the same thing but did not get a response.
https://forum.doom9.org/showthread.php?p=1857328#post1857328
Aleksoid1978
12th December 2018, 02:00
Nev, I have noticed issues with Atmos drop outs on the Incredibles 2 disk and others are reporting the same on different threads such as
https://club.myce.com/t/atmos-audio-drop-outs-details-thread/399840/106?u=careca
https://yabb.jriver.com/interact/index.php/topic,114628.msg818879.html#msg818879
One of the users posted a log file in the JRiver thread. Is this something you are aware of? Do you need a sample MKV?
Thanks
Can you split problem's .m2ts file and upload short(100-500mb) sample ??
nevcairiel
12th December 2018, 11:22
I can probably look at that soon, but if its even happening in decoding, its likely the disc is fubared.
dbezerra
12th December 2018, 17:34
I can probably look at that soon, but if its even happening in decoding, its likely the disc is fubared.
I will update a sample tonight. But Nev - when I play the disk directly everything is fine. It's only when I use my PC with the 1:1 MKV Rip that the problem shows up.
SamuriHL
12th December 2018, 18:33
Which is why I have an issue open with CloneBD to look at because I TRULY believe it's a problem with shoving the seamless branching streams into an MKV container. All the ripping tools show the same issue when putting it in an MKV.
hubblec4
12th December 2018, 22:14
Which is why I have an issue open with CloneBD to look at because I TRULY believe it's a problem with shoving the seamless branching streams into an MKV container. All the ripping tools show the same issue when putting it in an MKV.
chapterEditor can mux seamless branching Blu-rays to mkv, with the help of eac3to.
strumf666
12th December 2018, 22:48
Is there anything wrong with this two clips? Because with LAV filters I get only green screen during playback; with Potplayers in-built decoder&splitter works correctly. Tested with MadVR and EVR-CP as renderer.
https://wetransfer.com/downloads/9e9b7664c3bc72f4a190e9c2f696abcb20181212214205/4e3b94a2c9a4152d7ee238e9f8b6f9e820181212214205/571970
sneaker_ger
12th December 2018, 22:58
Seems to work fine here. What version of LAV are you using? Are you using both LAV Splitter and LAV Video? Are you using software or hardware decoding? If hardware: what GPU/OS, what kind of hardware decoding?
strumf666
12th December 2018, 23:40
LAV 0.73.1 (splitter, video and audio), windows 10 1809 vega64 18.12.1
D3D11 native, all HW decoders ticked.
edit: works in software mode (also correctly fall-backs if I just untick HEVC in hw decoders). Should/can this be fixed in LAV filters or is it and amd bug, which amd should fix?
dbezerra
13th December 2018, 04:04
I will update a sample tonight. But Nev - when I play the disk directly everything is fine. It's only when I use my PC with the 1:1 MKV Rip that the problem shows up.
Here is a link to the first 5min of Incredibles 2 UHD with Atmos.
https://ufile.io/1vw1x
Make sure you watch from the beginning. Most of us see an audio drop around the 3:17 mark, but not if you just skip to somewhere close to it (which could give a clue to what is causing it - a buffer issue?)
SamuriHL
13th December 2018, 18:12
chapterEditor can mux seamless branching Blu-rays to mkv, with the help of eac3to.
Sure, all the tools can handle seamless branching. That isn't what I meant. I'm saying that for the Incredibles 2 UHD, there seems to be an issue with any of the tools muxing that into an MKV container where the ATMOS audio track gets corrupted. It seems like an issue with how the seamless branching is handled with that particular title.
jmone
13th December 2018, 21:55
In my testing of Increadbiles 2 UHD Atmos Drop out issue:
- MC (LAV) with Bitstreaming = drop outs (first is 3:16) (played from folder structure)
- MC (LAV) with Decoding = no drop out at 3:16 (played from folder structure)
- XBOX One S with Bitstreaming = no drop out at 3:16 (original disc)
I rip to Folder structure so it is not a remux issue.
Warner306
13th December 2018, 23:19
Do other any other audio decoders play the track correctly?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.