Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Display Modes
Old 15th September 2025, 18:03   #25401  |  Link
Orf
YAP author
 
Join Date: Jul 2014
Location: Russian Federation
Posts: 116
nevcairiel, got it, thanks again
Orf is offline   Reply With Quote
Old 16th September 2025, 04:34   #25402  |  Link
Aleksoid1978
Registered User
 
Aleksoid1978's Avatar
 
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,926
Quote:
Originally Posted by Orf View Post
nevcairiel,
In a custom renderer I'm trying to implement support for getting D3D11 texture samples from LAV video decoder directly. I'm utilizing your ID3D11DecoderConfiguration and IMediaSampleD3D11 interfaces for that purpose.

Connection media subtype NV12 is used and LAV Video decoder correctly calls GetD3D11AdapterIndex (I return 0) and
ActivateD3D11Decoding so I have d3d11 interfaces. At the point the DS graph is built LAV video decoder reports 'd3d11 native' is used.

But at point when first sample arrived LAV video decoder get switched to software decoding and first sample is never IMediaSampleD3D11 but IMediaSample instead. At this time it also reports 'avcodec' is used.

I try to investigate why it happens and found that it is not hardware related because:
1) if I return error from ActivateD3D11Decoding LAV video decoder switched to 'd3d11 cb native' and it works fine
2) if I build graph with madVR as a renderer at first and then disconnect LAV Video decoder from madVR and connect it to my renderer 'd3d11 native' starts work with my renderer just fine too

I seems to me that LAV video decoder expects from renderer to do something else, which madVR does and my renderer doesn't.
I try to find what it might be examining LAV source code but didn't find anything that gives me a clue.

So I need your favour with that, can you please shed some light on this?
You can check here how work with D3D11 Native Decoder
https://github.com/Aleksoid1978/VideoRenderer
__________________
AMD Ryzen 7 7700 /ASRock B650M Pro RS /G.Skill RIPJAWS 32 ГБ /Kingston 500Gb M.2 /RTX 4060 /Samsung U28R550UQI /OLED Philips 55OLED707 /Denon AVR-X2800H+NS-555+NS-C444+NS-333+YST-SW215+Klipsch R-40SA
Aleksoid1978 is offline   Reply With Quote
Old 16th September 2025, 09:33   #25403  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,416
Quote:
Originally Posted by lvqcl View Post
No latest nightly build?..
I didn't update the build machine when I upgraded my security keys (so the upload failed), it should be working again now.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 16th September 2025, 13:09   #25404  |  Link
Orf
YAP author
 
Join Date: Jul 2014
Location: Russian Federation
Posts: 116
Quote:
Originally Posted by Aleksoid1978 View Post
You can check here how work with D3D11 Native Decoder
https://github.com/Aleksoid1978/VideoRenderer
nevcairiel already solved the problem I have, but I will check your sources too, thanks
Orf is offline   Reply With Quote
Old 16th September 2025, 21:34   #25405  |  Link
mzso
Registered User
 
Join Date: Oct 2009
Posts: 938
Hello!

I've not been paying attention for a good while. Is it possible to decode and render correctly (for headphones preferably) Atmos/DTS:X nowadays with LAV? Or any other free software?
mzso is offline   Reply With Quote
Old 16th September 2025, 23:12   #25406  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 8,662
HRTF mixing is not a feature.
huhn is offline   Reply With Quote
Old 18th September 2025, 03:35   #25407  |  Link
halcom
Registered User
 
Join Date: May 2017
Posts: 5
Trouble downloading ffmpeg lav0.80.zip from gitea.1f0.de

Anyone else had trouble downloading lav0.80.zip (the LAV ffmpeg fork) from
https://gitea.1f0.de/LAV/FFmpeg
Been trying for about a week now. Just get the spinning wait icon with nothing downloaded. I let it run all night and still nothing.
Tried firefox & chrome but both behave the same. Is there an alternate location to download it?
Any help greatly appreciated!
halcom is offline   Reply With Quote
Old 18th September 2025, 06:04   #25408  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,439
This is a source code repo. I cannot find any ZIP archive there.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 18th September 2025, 06:59   #25409  |  Link
halcom
Registered User
 
Join Date: May 2017
Posts: 5
More Details

https://gitea.1f0.de/LAV/FFmpeg

- In the upper right press "tags"
- takes you to a page where you should be able to download zips of the sourcecode for all the versions.
- normally you can simply right click and do a save but the download never starts.
halcom is offline   Reply With Quote
Old 18th September 2025, 08:49   #25410  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,439
You are right.

The same does not work for the "Download ZIP" link in the menu dropping out of the blue "<> Code" button. Let me try using git clone ... worked.

Mirror: gitea_LAV_FFmpeg.7z (182 MB)
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 18th September 2025 at 08:54.
LigH is offline   Reply With Quote
Old 18th September 2025, 11:03   #25411  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,416
That should hopefully work again, for some reason there were thousands of dead requests that were blocking it.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 18th September 2025, 14:23   #25412  |  Link
Orf
YAP author
 
Join Date: Jul 2014
Location: Russian Federation
Posts: 116
nevcairiel,
few more things I noticed about d3d11 native:

1) when video coded with h264, and 'H.264' checkbox unchecked in 'Codecs for HW decoding' decoder status says it falls back to 'avcodec' but it get stuck then and never outputs any samples

2) the description of ID3D11DecoderConfiguration mentions:
// To facilitate dynamic switching of the adapter used for decoding, the
// renderer should disconnect the decoder and re-connect it. At that
// point the decoder should query GetD3D11AdapterIndex() again and
// create a new decoder on the new device, as appropriate.

but if I disconnect decoder from renderer and try to reconnect it back connect fails with VFW_E_BUFFERS_OUTSTANDING error. Happens only in d3d11 native mode. As far as I see decoder calls GetAllocator and then instead of NotifyAllocator it calls BreakConnect.
This is not implemented yet?
Orf is offline   Reply With Quote
Old 18th September 2025, 16:03   #25413  |  Link
halcom
Registered User
 
Join Date: May 2017
Posts: 5
Thanks for the help!

LigH: Thank you, just downloaded from mediafire !

Nev: Just checked it. Link is working now.

Many thanks to you both!
halcom is offline   Reply With Quote
Old 21st September 2025, 04:28   #25414  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 877
Just wondering something.....is the hardware deinterlacing better quality than me choosing one of the software options? I was probably going to go with bwdif. Thanks.

btw, I see there were some updates to bwdif back in 2023, likely nev saw that.

Last edited by JarrettH; 21st September 2025 at 04:33.
JarrettH is offline   Reply With Quote
Old 21st September 2025, 10:42   #25415  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 8,662
a properly working hardware decoding is massively better then the lavfilter software deinterlacer.

but they don't always work or at all.

the nvidia one sometimes works and the AMD one is pretty much broken forever at this point making it sometimes worse then bilinear bob.

the software deinterlacer on the other hand always work as advertised and are fine for true interlaced content with no mixed stuff or telecine.
huhn is offline   Reply With Quote
Old 21st September 2025, 13:47   #25416  |  Link
CruNcher
Registered User
 
CruNcher's Avatar
 
Join Date: Apr 2002
Location: Germany
Posts: 5,001
The Problem on the hardware side is the software stack compatibility and Nvidias way of doing things and keeping secrets in their Layers and API functions.

A lot of Nvidias work also comes from Vanguard on the IP
__________________
all my compares are riddles so please try to decipher them yourselves :)

It is about Time

Join the Revolution NOW before it is to Late !

http://forum.doom9.org/showthread.php?t=168004

Last edited by CruNcher; 21st September 2025 at 13:53.
CruNcher is offline   Reply With Quote
Old 21st September 2025, 15:08   #25417  |  Link
Sunspark
Registered User
 
Join Date: Nov 2015
Posts: 726
AMD's is broken, don't even try, use software if you have an AMD GPU.

Intel's does work and you can use it, but it's a deinterlacer, not inverse telecine so you still need software for that. If you're receiving e.g. satellite broadcast, then it's perfectly fine to use the deinterlacer. Old film content on DVD, you want software IVTC.
Sunspark is offline   Reply With Quote
Old 21st September 2025, 18:06   #25418  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 877
Quote:
Originally Posted by huhn View Post
a properly working hardware decoding is massively better then the lavfilter software deinterlacer.

but they don't always work or at all.

the nvidia one sometimes works and the AMD one is pretty much broken forever at this point making it sometimes worse then bilinear bob.

the software deinterlacer on the other hand always work as advertised and are fine for true interlaced content with no mixed stuff or telecine.
Ah ok, I'm trying it (NVIDIA GT 1030) and all modes are broken Wasn't something broken with D3D11 for a long time? I can't remember if that was resolved. Anyway, bwdif is just fine for the odd time I need to play a DVD.

Last edited by JarrettH; 22nd September 2025 at 04:16.
JarrettH is offline   Reply With Quote
Old 22nd September 2025, 00:29   #25419  |  Link
CruNcher
Registered User
 
CruNcher's Avatar
 
Join Date: Apr 2002
Location: Germany
Posts: 5,001
Could you check if some proprietary stack also shows playback problems in case of Nvidia always a good interop test is Cyberlink PowerDVD, if it also fails for your use case it becomes interesting.
you could and should also try other player implementations like zoomplayer, potplayer ect it could be a very specific combination of setup causing detection and proper VPU Hardware decoding problems.
But the first test should be a complete different stack and here Cyberlink PowerDVD is the first choice.
__________________
all my compares are riddles so please try to decipher them yourselves :)

It is about Time

Join the Revolution NOW before it is to Late !

http://forum.doom9.org/showthread.php?t=168004

Last edited by CruNcher; 22nd September 2025 at 00:57.
CruNcher is offline   Reply With Quote
Old 22nd September 2025, 19:31   #25420  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 355
Quote:
Originally Posted by JarrettH View Post
Ah ok, I'm trying it (NVIDIA GT 1030) and all modes are broken Wasn't something broken with D3D11 for a long time? I can't remember if that was resolved. Anyway, bwdif is just fine for the odd time I need to play a DVD.
Do you use MadVR? It doesn't support deinterlacing in D3D11 mode.
lvqcl is offline   Reply With Quote
Reply

Tags
decoders, directshow, filters, splitter

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.