Frame properties support for Avisynth+

Support forum for DGDecNV
User avatar
Curly
Posts: 712
Joined: Sun Mar 15, 2020 11:05 am

Frame properties support for Avisynth+

Post by Curly »

Kiddies would all have heart attacks and drop dead on your porch. Hope you are proud of yourself. :roll:
User avatar
Bullwinkle
Posts: 338
Joined: Thu Sep 05, 2019 6:37 pm

Frame properties support for Avisynth+

Post by Bullwinkle »

Making a neat pile.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Frame properties support for Avisynth+

Post by admin »

Can we stay on topic, please?
User avatar
Curly
Posts: 712
Joined: Sun Mar 15, 2020 11:05 am

Frame properties support for Avisynth+

Post by Curly »

Go work on SQL or something, Mr beancounter.
User avatar
DG
Posts: 88
Joined: Thu Dec 31, 2020 9:55 am

Frame properties support for Avisynth+

Post by DG »

Halloween brings out the best in all of us. Hallelujah!
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Frame properties support for Avisynth+

Post by admin »

OK.
User avatar
Sherman
Posts: 576
Joined: Mon Jan 06, 2020 10:19 pm

Frame properties support for Avisynth+

Post by Sherman »

Don't you all think we should remove admin's moderator status? He's such a killjoy. Should I start a poll? I would be an excellent replacement!
User avatar
Sherman
Posts: 576
Joined: Mon Jan 06, 2020 10:19 pm

Frame properties support for Avisynth+

Post by Sherman »

If I can't get Honoré de Balzac, would you be happy with Baltasar Gracián?
User avatar
Curly
Posts: 712
Joined: Sun Mar 15, 2020 11:05 am

Frame properties support for Avisynth+

Post by Curly »

Works for me. Get both!
User avatar
DG
Posts: 88
Joined: Thu Dec 31, 2020 9:55 am

Frame properties support for Avisynth+

Post by DG »

Works for me too.
User avatar
Bullwinkle
Posts: 338
Joined: Thu Sep 05, 2019 6:37 pm

Frame properties support for Avisynth+

Post by Bullwinkle »

Me three.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Frame properties support for Avisynth+

Post by Guest 2 »

I had to add propSet("_FieldBased", -1) to the following script or the nnedi3resize would give an error about missing properties. Does DGIndexNV pass that parameter?

Code: Select all

SetMemoryMax()
SetFilterMTMode("DEFAULT_MT_MODE", 3)
LoadPlugin("D:\Eseguibili\Media\DGDecNV\DGDecodeNV.dll")
DGSource("N:\In\AnoHana\01.dgi")
propSet("_FieldBased", -1)
ConvertBits(16)
fmtc_resample (1280, 720, kernel="bicubic", a1=1, a2=0, invks=True)
nnedi3resize(1920,qual=2)
fmtc_bitdepth (bits=10,dmode=8)
Prefetch(4)
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Frame properties support for Avisynth+

Post by Rocky »

The latest DGDecNV online sets _FieldBased according to the latest semantics. You need a recent Avisynth+. Please advise of any issues you have with it.

Right after DGSource() you can add propShow() to see what it has set.

Note that an intermediate filter, such as fmtc_resample(), may not be passing through the props that DGSource() has set. Use propShow() at various places to test that. The GetFrame() code must be a certain way to pass through the properties.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Frame properties support for Avisynth+

Post by Guest 2 »

Rocky wrote:
Fri Jun 09, 2023 8:13 am
You need a recent Avisynth+
Last one from pinterf.
Rocky wrote:
Fri Jun 09, 2023 8:13 am
Right after DGSource() you can add propShow() to see what it has set.
Thank you for the hint. For a progressive stream

Code: Select all

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4.1
Format settings                : CABAC / 4 Ref Frames
Format settings, CABAC         : Yes
Format settings, Reference fra : 4 frames
Codec ID                       : V_MPEG4/ISO/AVC
Duration                       : 24 min 29 s
Bit rate mode                  : Variable
Bit rate                       : 34.6 Mb/s
Maximum bit rate               : 40.0 Mb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 23.976 (24000/1001) FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.695
Stream size                    : 5.91 GiB (91%)
Language                       : English
Default                        : Yes
Forced                         : No
just after DGSource, it shows

Image

Is it correct?
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Frame properties support for Avisynth+

Post by Rocky »

Guest 2 wrote:
Mon Jun 12, 2023 1:39 am
Is it correct?
Maybe, maybe not. Please provide a sample.

Technical note: Streams are assumed interlaced unless some indication of progressive is seen. These indications are different for the different video types. The code for that is likely incomplete, so your sample will help us to complete things.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Frame properties support for Avisynth+

Post by Guest 2 »

Rocky wrote:
Mon Jun 12, 2023 6:50 am
Maybe, maybe not. Please provide a sample.
https://www.upload.ee/files/15323667/AnoHana.7z.html

Don't mind about the other included files, they come from some getnative tests.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Frame properties support for Avisynth+

Post by Rocky »

Thank you. Will check it out. Generally, it is difficult to determine if a stream is "really" interlaced or progressive. For example, a stream may be encoded as interlaced but have progressive content, or vice versa. We can give a best guess based on stream parameters, but it is not foolproof. One case is when the container and ES indications differ. We check only the ES indications.

I don't know MediaInfo's algorithm and I'm not interested in trying to decipher it from the source code.

One thing you can be sure of is that after applying a deinterlacer (using DG), _FieldBased will be set to progressive. For other things, we can surely make tweaks as indicated. I'll check out your stream and report back.
User avatar
Boris
Posts: 92
Joined: Sun Nov 10, 2019 2:55 pm

Frame properties support for Avisynth+

Post by Boris »

Happy Russia Day to you all!
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Frame properties support for Avisynth+

Post by Rocky »

Thank you, Boris. :roll:

@Guest 2

Please test this. If it is OK I'll port the change to the Vapoursynth side and make a slipstream.

https://rationalqm.us/misc/DGDecodeNV_Guest 2.rar
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Frame properties support for Avisynth+

Post by Guest 2 »

Rocky wrote:
Mon Jun 12, 2023 8:49 am
Please test this.
Now it correclty shows 0 (progressive).

Thank you.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Frame properties support for Avisynth+

Post by Rocky »

Thank you, I'll make a slipstream.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Frame properties support for Avisynth+

Post by Rocky »

Slipstream with the fix is released.
Post Reply