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 > Avisynth Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th December 2022, 02:21   #281  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by Julek View Post
zimg is so fast on CPU (at least in vapoursynth) that I see no reason to use GPU resizer, it is more useful to leave it free for heavy denoise/eedi/nnedi.
eedi2 had cuda ver
https://github.com/kedaitinh12/Vapou...2CUDA/releases
kedautinh12 is offline   Reply With Quote
Old 10th December 2022, 11:28   #282  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
Quote:
Originally Posted by Julek View Post
zimg is so fast on CPU (at least in vapoursynth) that I see no reason to use GPU resizer,
Perhaps on newer systems. Not everybody has a brand new Sapphire Rapids processor .
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 10th December 2022, 11:47   #283  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by tormento View Post
Perhaps on newer systems. Not everybody has a brand new Sapphire Rapids processor .
Don't need. With AMD r3 series and above, intel 8th and above. it's very fast

Last edited by kedautinh12; 11th December 2022 at 03:21.
kedautinh12 is offline   Reply With Quote
Old 10th December 2022, 12:12   #284  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
Quote:
Originally Posted by kedautinh12 View Post
Don't need. In AMD r3 series and above, intel 8th and above. it's very fast
It was figurative.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 30th January 2023, 08:37   #285  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
avsresize_r20 (pass: iFmc8FTt1DsT):
- not read "_FieldBased" frame prop when use_props=0;
- added ProPhotoRGB (TomArrow).
StvG is offline   Reply With Quote
Old 30th January 2023, 11:44   #286  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
Thanks for the new release, I'll test it when I get back to the office on February the 2nd!
FranceBB is offline   Reply With Quote
Old 15th February 2023, 03:04   #287  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
avsresize_r21 (pass: 0RHxLfJy1t0C):
- throw error if IsFieldBased()=true and interlaced=false/use_props=1;
- resizer wrappers: added parameter interlaced;
- changed behavior of interlaced=true - previously it force use_props=0; now it doesn't have effect when use_props=1.
StvG is offline   Reply With Quote
Old 15th February 2023, 12:23   #288  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
Ah, ok.
Upgrading now again, thanks.
FranceBB is offline   Reply With Quote
Old 15th February 2023, 18:37   #289  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
Just to point out if it's not obvious already - after r19 you can process interlaced content without interlaced=true when use_props=0 and _FieldBased > 0 which will lead to wrong outputs. Before r20 there will be error raised that clip must be frame-based because frame prop was checked. Now (>= r20) when use_props=0, none frame prop is read. Be careful.

Again info about use_props=-1 (default value):
Code:
i. Auto use_props=0
  1. Source and destination colorspace are same (source and destination are yuv/y, source and destination are rgb)
    - colorspace_op is undefined and chromaloc_op is undefined or chromaloc_op src is not auto (chromaloc_op="left=>left")
  2. colorspace_op is defined and every src value is not auto (x:x:x:x=>y:y:y:y), and chromaloc_op is undefined or chromaloc_op src is not auto (chromaloc_op="left=>left")
ii. Every other case - auto use_props=1
You can force to read frame props by set use_props=1, or force to not read frame prop by set use_prop=0.
StvG is offline   Reply With Quote
Old 15th February 2023, 20:47   #290  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
Yep, that's good to know and that's exactly what a user would want: use_props=0 should avoid reading any property in any case and therefore speed things up.
By the way, I am beginning to slowly try frame properties for things I don't encode manually and go through automation.
Luckily, in my case, I should be ok 'cause indexers are reading frame_properties and if there are none, they're assumed and populated by my ClipPropertyParser() for all the automated supply chains in FFAStrans, so in theory it shouldn't matter, but yeah, thanks for the heads up.

I'll come up with a report of how things went tomorrow.

EDIT: So far so good


Last edited by FranceBB; 16th February 2023 at 10:58.
FranceBB is offline   Reply With Quote
Old 27th March 2023, 19:32   #291  |  Link
ErazorTT
Registered User
 
Join Date: Mar 2003
Location: Germany
Posts: 215
dci-p3 transfer?

Would it be possible to include the 2.6 gamma to the possible transfer function which is used in st431-2 and st432-1?
ErazorTT is offline   Reply With Quote
Old 1st April 2023, 23:06   #292  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
Can you ask the zimg author (https://github.com/sekrit-twc/zimg). If he wouldn't add it, I can take a look.
StvG is offline   Reply With Quote
Old 4th July 2023, 14:09   #293  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
Hi there guys,
I tried to compile avsresize.dll using v141_xp:




the build completed fine



and the produced dll shows no issues in Dependency Walker:




however it just won't work in Avisynth.
Is it because it's zlib being actually incompatible with XP even though it's not erroring during compilation?

Test build (link valid for 7 days only): https://we.tl/t-ZcUDEqFsZp
FranceBB is offline   Reply With Quote
Old 4th July 2023, 15:16   #294  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
seems _FieldBased frame property is not used to check whether the source is interlaced or not (I also tried with use_props=1 when convert from yv12 to yv24 but it kinda broken)

also can we have independent chroma subsampling parameter? for let say convert anything to 4:4:4 regardless of bitdepth to do some filtering then back to 4:2:0 or whatever original subsampling with another z_ConvertFormat() call and this is easy z_ConvertFormat(pixel_type=PixelType(orig))
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 5th July 2023, 03:06   #295  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
Quote:
Originally Posted by real.finder View Post
seems _FieldBased frame property is not used to check whether the source is interlaced or not (I also tried with use_props=1 when convert from yv12 to yv24 but it kinda broken)

also can we have independent chroma subsampling parameter? for let say convert anything to 4:4:4 regardless of bitdepth to do some filtering then back to 4:2:0 or whatever original subsampling with another z_ConvertFormat() call and this is easy z_ConvertFormat(pixel_type=PixelType(orig))
About _FieldBased - did you read this post?

I'm not sure what you exactly ask about "independent chroma subsampling parameter". Can you elaborate?
StvG is offline   Reply With Quote
Old 5th July 2023, 06:25   #296  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by StvG View Post
About _FieldBased - did you read this post?
didn't read it but still with use_props=1 seems not work (avspmod will show error about not frame base)
Quote:
Originally Posted by StvG View Post
I'm not sure what you exactly ask about "independent chroma subsampling parameter". Can you elaborate?
like adding new parameter called chroma_subsampling (or any short name) that accept "444" or "422" and so as string or as int so (-1=same as input) and this will be default or (0=444) (1=422) and so on, and this parameter will be ignored if user set pixel_type
__________________
See My Avisynth Stuff

Last edited by real.finder; 5th July 2023 at 12:36.
real.finder is offline   Reply With Quote
Old 5th July 2023, 08:10   #297  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
Quote:
Originally Posted by real.finder View Post
didn't read it but still with use_props=1 seems not work (avspmod will show error about not frame base)
Code:
Colorbars(pixel_type="yv12")
propset("_FieldBased", 1)
z_ConvertFormat(pixel_type="yv24", use_props=1)
Above code throw error - frame property is read.
Using use_props=0 doesn't throw error - frame property is not read.
StvG is offline   Reply With Quote
Old 5th July 2023, 12:33   #298  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by StvG View Post
Code:
Colorbars(pixel_type="yv12")
propset("_FieldBased", 1)
z_ConvertFormat(pixel_type="yv24", use_props=1)
Above code throw error - frame property is read.
Using use_props=0 doesn't throw error - frame property is not read.
yes but with use_props=0 will treat the yv12 as progressive when convert it to yv24 which will cause chroma Field Blending
__________________
See My Avisynth Stuff

Last edited by real.finder; 5th July 2023 at 12:36.
real.finder is offline   Reply With Quote
Old 5th July 2023, 14:35   #299  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
Quote:
Originally Posted by real.finder View Post
yes but with use_props=0 will treat the yv12 as progressive when convert it to yv24 which will cause chroma Field Blending
use_props=0 doesn't read frame properties. You have to take care if the video is interlaced or not. If the video is interlaced use interlaced=true.

If you want the frame properties to be read (including _FieldBased) use use_props=1.
StvG is offline   Reply With Quote
Old 5th July 2023, 14:46   #300  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by StvG View Post
use_props=0 doesn't read frame properties. You have to take care if the video is interlaced or not. If the video is interlaced use interlaced=true.

If you want the frame properties to be read (including _FieldBased) use use_props=1.
I know but the problem is with use_props=1 it not same as interlaced=true
avspmod error


with interlaced=true it work fine but I need to put it inside avsi function that work with interlaced and progressive and since we got frame properties in avs+ we should rely on them especially if we have a source that got mixed interlaced and progressive frames/sections
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Reply


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 01:33.


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