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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th March 2014, 02:49   #17261  |  Link
Nevilne
Registered User
 
Join Date: Aug 2010
Posts: 134
So I've installed 0.61.1, noticed that watching avisynth scripts works terrible with lav-potplayer-madvr, installed 0.60 and can't open .avs anymore??
Installing ffdshow and ticking avisynth and raw video does nothing. Ok, back to 0.61.1, installed with installer:

With 0.61.1-potplayer-madvr i have to wait 5 seconds for video to start after every unpause. But it's fine with mpc-hc and madvr or in potplayer with evr-cp.

Now, it's kinda hard to see what's the problem is out of madvr/lav/potplayer, as I updated them all at once and can't revert to previous lav version, but:

When I use mpc-hc there's a lav video decoder in filter list (lav splitter-lav video-madvr), but in potplayer it's just splitter and madvr (and yes it plays video).
After i switch to evr-cp lav video appears and 'delay after resume' is gone. after i switch back to madvr lav video stays and 'delay after resume' is still gone.
If i force lav video to 'preferred' in potplayer, it loads lav video and there's no 'delay after resume'.

Also, potplayer uses async source+lav splitter for avs unless I force lav splitter source, although it's configured to use lav splitter source for everything.

Don't know what to make out of all this really but I hope there's a resolution.
Nevilne is offline   Reply With Quote
Old 8th March 2014, 04:21   #17262  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
How does it work in MPC-HC? That sounds like a PotPlayer issue not LAV's.
Asmodian is online now   Reply With Quote
Old 8th March 2014, 08:49   #17263  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,347
Sounds like you enabled madVR's decoders. If LAV Video isn't even used, and even more, the issue goes away when its used, its definitely not a LAV issue.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 8th March 2014, 17:02   #17264  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
I want to ask a little more technical question about HW de-interlacing and LAV Video options.

There is an option of HW de-interlacing activated only using QuickSync or NVCUVID, called Adaptive HW deinterlacing.

Is the algorithm used by this option, different/ better than the default HW algorithms selected automatically by EVR/ EVR-CP when using DXVAn for Nvidia and Intel HW decoders ?

The comparison should be CUVID vs DXVAn for Nvidia regarding HW deinterlacing algorithms and QS vs DXVAn for Intel.

Not Nvidia vs Intel.
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 8th March 2014, 17:05   #17265  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,347
Its the same deinterlacing algorithm, just performed by the decoder immediately after decoding instead of the renderer later - but otherwise exactly the same GPU deinterlacing.
Both the CUVID library and Eric's QuickSync Decoder offer a simple option to turn it on, so it was trivial to add it - and it can be useful if you want to do post-processing on the image, or for transcoding.

In theory it could also be implemented for DXVA2-CB, but its quite a lot of effort and IMHO not generally worth it.
For DXVA2-Native it doesn't make any sense, since you cannot use it for post-processing or transcoding anyway, and the renderer comes immediately after the decoder.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 8th March 2014, 17:12   #17266  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
Thanks
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 8th March 2014, 19:49   #17267  |  Link
P.J
Δ
 
Join Date: Jun 2008
Posts: 535
Quote:
Originally Posted by wanezhiling View Post
1. YADIF won't work in dxva2n mode.
2. You use LAV in PotPlayer? Then disable PotPlayer's built-in video processing filter.
1. I don't use DXVA2n 2. No, I use MPC-HC with LAV.
I have no problem in PotPlayer since I can select HW/SW de-interlacing method there.
And I don't use LAV with PotPlayer. I want to have software de-interlacing with LAV+MPC-HC
P.J is offline   Reply With Quote
Old 8th March 2014, 19:54   #17268  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
If you want SW de-interlacing you have to forget HW decoding too.

You have to use SW decoding for SW deinterlacing.

So, put in hardware decoder option "None" and then Enable YADIF.

You will have SW decoding and SW deinterlacing, although I really don't understand why you want SW deinterlacing.

All of my clips tested with HW deinterlacing look better than YADIF for all three HW decoders (Intel, Nvidia, AMD)
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 8th March 2014, 20:05   #17269  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Quote:
Originally Posted by NikosD View Post
If you want SW de-interlacing you have to forget HW decoding too.

You have to use SW decoding for SW deinterlacing.
No, you don't. Only DXVA2 native doesn't work with sw deinterlacing in LAV Video.
sneaker_ger is offline   Reply With Quote
Old 8th March 2014, 20:11   #17270  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
So if you select DXVA-CB or QS for Intel and NVCUVID for Nvidia you can have SW de-interlacing ?

I'll try it.

I always use DXVAn for HW decoding.

UPDATE:

Yes, SW deinterlacing works for both DXVA-CB and QS.
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all

Last edited by NikosD; 8th March 2014 at 20:21.
NikosD is offline   Reply With Quote
Old 8th March 2014, 20:12   #17271  |  Link
DragonQ
Registered User
 
Join Date: Mar 2007
Posts: 934
Quote:
Originally Posted by NikosD View Post
I really don't understand why you want SW deinterlacing.

All of my clips tested with HW deinterlacing look better than YADIF for all three HW decoders (Intel, Nvidia, AMD)
Depends on your hardware. I highly doubt a 5 year old nVidia/AMD/Intel card has the same deinterlacing algorithm as a current model.

Also, if you have a really crap GPU then using software deinterlacing can take offload some of the burden to the CPU. I agree that hardware deinterlacing is generally better though.
__________________
TV Setup: LG OLED55B7V; Onkyo TX-NR515; ODroid N2+; CoreElec 9.2.7
DragonQ is offline   Reply With Quote
Old 8th March 2014, 20:23   #17272  |  Link
P.J
Δ
 
Join Date: Jun 2008
Posts: 535
Ok, just found the issue and it's because of playing a 1080i H.264 4:2:2 video.
LAV makes MPC-HC to encode via CPU (correct) but de-interlace via GPU!
And nothing lets me to change HW de-interlacing to SW/QS de-interlacing for that file.

Last edited by P.J; 8th March 2014 at 20:25.
P.J is offline   Reply With Quote
Old 8th March 2014, 20:25   #17273  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
Quote:
Originally Posted by DragonQ View Post
Depends on your hardware. I highly doubt a 5 year old nVidia/AMD/Intel card has the same deinterlacing algorithm as a current model.
I'll check my 7 year old Radeon 3650 (UVD+) card against SW de-interlacing on some difficult H.264 and VC-1 interlaced clips and I'll tell you.
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 8th March 2014, 20:29   #17274  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,347
Quote:
Originally Posted by P.J View Post
Ok, just found the issue and it's because of playing a 1080i H.264 4:2:2 video.
LAV makes MPC-HC to encode via CPU (correct) but de-interlace via GPU!
Are you sure you enabled YADIF Software Deinterlacing in LAV Video? It supports deinterlacing 4:2:2 too.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 8th March 2014, 20:33   #17275  |  Link
P.J
Δ
 
Join Date: Jun 2008
Posts: 535
Quote:
Originally Posted by nevcairiel View Post
Are you sure you enabled YADIF Software Deinterlacing in LAV Video? It supports deinterlacing 4:2:2 too.
Yes, no problem with MPEG2 1080i 4:2:2 but H.264 1080i 4:2:2
QS/CUDA de-interlacing methods don't work for both too.
P.J is offline   Reply With Quote
Old 8th March 2014, 20:34   #17276  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,347
QS/CUDA only works if the hardware decoder for those is used as well, which is not compatible with 4:2:2 in general.
How do you know its not working? I just tested such a file, and it deinterlaces fine.

Note that it only deinterlaces 8-bit, if you are using 10-bit 4:2:2 videos, you're out of luck.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 8th March 2014 at 20:39.
nevcairiel is offline   Reply With Quote
Old 8th March 2014, 20:47   #17277  |  Link
P.J
Δ
 
Join Date: Jun 2008
Posts: 535
Quote:
Originally Posted by nevcairiel View Post
QS/CUDA only works if the hardware decoder for those is used as well, which is not compatible with 4:2:2 in general.
How do you know its not working? I just tested such a file, and it deinterlaces fine.

Note that it only deinterlaces 8-bit, if you are using 10-bit 4:2:2 videos, you're out of luck.
Oh yes, it's 10bit H.264 1080i 4:2:2, HW Nvidia GT640 can de-interlace it but SW YADIF can't.
Any chance to add SW Motion/Vector adaptive instead of YADIF?

Last edited by P.J; 8th March 2014 at 20:49.
P.J is offline   Reply With Quote
Old 8th March 2014, 20:49   #17278  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,347
In theory YADIF supports those, maybe I can hook that up for a future version.
But for now, no deal.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 8th March 2014, 20:50   #17279  |  Link
P.J
Δ
 
Join Date: Jun 2008
Posts: 535


Any chance to add SW Motion/Vector adaptive instead of YADIF?
P.J is offline   Reply With Quote
Old 8th March 2014, 20:51   #17280  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,347
If you provide a patch to do so, sure.

If you want better quality deinterlacing, let your GPU do it.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 8th March 2014 at 20:56.
nevcairiel is offline   Reply With Quote
Reply

Tags
decoders, directshow, filters, splitter


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 15:04.


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