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

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st February 2023, 05:41   #2221  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
AviSynthPlus r3877 clang build
https://gitlab.com/uvz/AviSynthPlus-Builds
kedautinh12 is offline   Reply With Quote
Old 1st February 2023, 07:29   #2222  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Gave that clang build a shot & Test build 3 and both just freeze when I change to one of my avisynth scripts., so no change from build 2.
Maybe a filter isn't up to date or something, I'll report back when I look into it.

Last edited by ryrynz; 1st February 2023 at 07:37.
ryrynz is offline   Reply With Quote
Old 1st February 2023, 09:26   #2223  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
You need report here:
https://github.com/AviSynth/AviSynthPlus/issues
kedautinh12 is offline   Reply With Quote
Old 5th February 2023, 04:53   #2224  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,544
I had no luck with uvz builds either.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 5th February 2023, 05:59   #2225  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
You can report uvz's build issues here:
https://gitlab.com/uvz/AviSynthPlus-Builds/-/issues
kedautinh12 is offline   Reply With Quote
Old 7th February 2023, 10:56   #2226  |  Link
Fjord
Registered User
 
Join Date: Dec 2005
Location: Denmark
Posts: 52
Feature request - propDelete() propKeep()

It would be handy to be able to specify multiple arguments to the propDelete() function, to get rid of several properties in one call.
Code:
propDelete(clip, "MyProp1", "MyProp2", "MyProp3")
An inverse of that could be a new function "propKeep()" that would delete any properties not named as arguments to the function.
Code:
propKeep(clip, "MyKeep1", "MyKeep2", "MyKeep3")
This would be handy for filtering properties to a fixed set, rather than clearing all, and restoring only the ones that are wanted.

What do you think?

EDIT: I see in the change log from 3.7.1 to 3.7.2 that:
  • PropCopy: new string parameter "props": list of property names to copy (or ignore)
  • PropCopy: new bool parameter "exclude": whether property list is positive (copy) or negative (do not copy; blacklist)
  • PropDelete: accept an array string parameter as list of property names to remove
and a bit more detailed in the github readme_history.txt:
Code:
- propCopy: able to specify that the property list is negative.
    bool "exclude" = false # default: "props" is positive list
    
    propCopy(org,true,props=["_Matrix", "_ColorRange"], exclude=false) # merge only two properties
    propCopy(org,true,props=["_Matrix", "_ColorRange"], exclude=true) # merge all, except listed ones
    propCopy(org,props=["_Matrix", "_ColorRange"]) # erase all then copy only selected
    propCopy(org,props=["_Matrix", "_ColorRange"], exclude = true) # erase all, then copy all, except listed ones
...
- PropDelete: accept a non-empty array string as list of property names to remove
  Parameter is not optional, and has no name. It can be either a string (as before) or an array of strings
    propDelete("_Matrix") # old syntax, still accepted
    propDelete(["_Matrix", "_ColorRange"])
- PropCopy: new string parameter "props" as list of property names to remove
    "props": a non-empty array of strings
    
    old syntax, still accepted:
      propCopy(org,true) # merge from all org's properties
      propCopy(org,false) # erase all then copy all org's properties (exact copy)
    new syntax
      propCopy(org,true,props=["_Matrix", "_ColorRange"]) # merge
      propCopy(org,props=["_Matrix", "_ColorRange"]) # erase all then copy only selected
which means my request is already implemented (in another way), although this hasn't yet made it to the wiki regarding propCopy (which is current for 3.7.1).

Last edited by Fjord; 8th February 2023 at 01:19. Reason: Changes from 3.7.1 to 3.7.2
Fjord is offline   Reply With Quote
Old 9th February 2023, 22:33   #2227  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by Fjord View Post
although this hasn't yet made it to the wiki regarding propCopy (which is current for 3.7.1).
Wiki probably will not be updated (at least by me or pinterf) but there will be a link to the corresponding readthedocs page when ever it becomes available. I have 50% of the syntax pages done and includes up-to-date docs.


Last edited by Reel.Deel; 9th February 2023 at 22:37.
Reel.Deel is offline   Reply With Quote
Old 10th February 2023, 01:20   #2228  |  Link
Fjord
Registered User
 
Join Date: Dec 2005
Location: Denmark
Posts: 52
Quote:
Originally Posted by Reel.Deel View Post
... but there will be a link to the corresponding readthedocs page when ever it becomes available. I have 50% of the syntax pages done and includes up-to-date docs.
Thanks Reel.Deel. Your revisions and editing of readthedocs are terrific and is greatly appreciated.
Fjord is offline   Reply With Quote
Old 10th February 2023, 09:12   #2229  |  Link
Fjord
Registered User
 
Join Date: Dec 2005
Location: Denmark
Posts: 52
@Reel.Deel, does Sphinx have a "history" or "recent changes" function, to show what the latest updates are to readthedocs?

I cannot find your above update of the propCopy documentation in readthedocs (https://avisynthplus.readthedocs.io/...est/index.html). Where should I be looking? Or is this an offline change, yet to be merged into the online version?
Fjord is offline   Reply With Quote
Old 10th February 2023, 09:19   #2230  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
It's on my hard drive ... The readthedocs automatically updates anytime there are changes so if you don't see a particular page there, it's yet to be finished. Hopefully I'll finish it in the coming week or so.
Reel.Deel is offline   Reply With Quote
Old 12th February 2023, 02:59   #2231  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
AviSynthPlus r3912 clang build
https://gitlab.com/uvz/AviSynthPlus-Builds
kedautinh12 is offline   Reply With Quote
Old 12th February 2023, 09:59   #2232  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
This r3912 version broke high bit format, the following script:
Code:
SetMemoryMax(192)
AviSource("Dark_Crystal_HDR_16b.avi")
ConverttoYUV444()
doesn't work anymore , my avi file is utvideo yuv422p10le.

The AvisynthPlus_3.7.3_20230118_test3 is working.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 12th February 2023, 12:26   #2233  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by jpsdr View Post
This r3912 version broke high bit format, the following script:
Code:
SetMemoryMax(192)
AviSource("Dark_Crystal_HDR_16b.avi")
ConverttoYUV444()
doesn't work anymore , my avi file is utvideo yuv422p10le.

The AvisynthPlus_3.7.3_20230118_test3 is working.
You can create issue here:
https://gitlab.com/uvz/AviSynthPlus-Builds/-/issues
kedautinh12 is offline   Reply With Quote
Old 12th February 2023, 18:48   #2234  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by jpsdr View Post
This r3912 version broke high bit format, the following script:
Code:
SetMemoryMax(192)
AviSource("Dark_Crystal_HDR_16b.avi")
ConverttoYUV444()
doesn't work anymore , my avi file is utvideo yuv422p10le.

The AvisynthPlus_3.7.3_20230118_test3 is working.
In what way did it break? What is the error message?

Just 3 hours ago pinterf merged this PR: https://github.com/AviSynth/AviSynthPlus/pull/332

All of that has been a work-in-progress in the last few weeks. There has not been any user related changes added ever since pinterf's test release (aside from "Text"). All has been internal API stuff and documentation.

I guess wait for a new release that includes the changes from today. If the problem still continues then open up an issue on Github.

Last edited by Reel.Deel; 12th February 2023 at 18:56.
Reel.Deel is offline   Reply With Quote
Old 12th February 2023, 23:58   #2235  |  Link
Fjord
Registered User
 
Join Date: Dec 2005
Location: Denmark
Posts: 52
Problem with array arguments in demo script

I was having difficulty with array arguments to a user function I was working on. So I tried the demo script showing an example use of array arguments in a user function. No wonder I was having issues - the demo script throws an error on the example for array arguments! (I am running v3.7.3 test3 r3835 in latest AvsPMod).

The demo script comes from the 9 feb 2023 readme_history.txt, lines 1841-1886, at
https://github.com/AviSynth/AviSynth...me_history.txt
The same demo script is used in the 4th Example section in readthedocs page on Arrays:
https://avisynthplus.readthedocs.io/...ef_arrays.html

The error message (in AvsPMod) is:
Script error: Invalid arguments to function 'FirstNSum'
(C:\Users\...\...\test Array examples.avs, line 25)

The error is fixed by putting quotes on the argument names in the function definition, and using the parameter names in the function call.

In my own code, I experienced weird errors when trying array arguments to a user function for the first time -- they were named arguments, but I omitted the names= in the function call. It took quite a while to debug -- which was just to use all argument names in the function call, which included an array argument.

If this is not a bug, then the requirement to always use argument names when calling functions with array arguments needs to be highlighted in the Array documentation.

Here is the demo script from readme_history.txt, with comments showing the necessary corrections on two lines - call to FirstNSum() function, and the function definition.

Code:
ColorBars()
clip=last
a = [[1,2],[3,4]]
aa = [1]
b = a[1,1] + ArrayGet(a, 1,0) + aa[0]

empty_array = []
empty_array_2 = empty_array
#n3 = empty_array_2.ArrayGet(0) # array index out out range error!

black_yuv_16 = [0,32768,32768]
grey_yuv_16 = [32768,32768,32768]
white_yuv_16 = [65535,32768,32768]
aSelectColors = [\
  ["black", black_yuv_16],\
  ["grey", grey_yuv_16],\
  ["white",white_yuv_16],\
  ["empty",empty_array]\
]
test_array = [99, 1.0, "this is a string"] # mixed types
test_array2 = [199, 2.0, "This is a string"]

n = ArraySize(test_array) # 3
n2 = ArraySize(empty_array_2) # 0
sum = FirstNSum(grey_yuv_16,2)	# --> sum = FirstNSum(x=grey_yuv_16,n=2)
b = b

clip = clip.Text(e"Array size = " + String(n) +\
 e"\n Empty array size = " + String(n2) +\
 e"\n sum = " + String(sum) +\
 e"\n b = " + String(b) +\
 e"\n white_yuv_16[1]=" + String(aSelectColors["white"][1]) + \
 e"\n [0]=" + String(ArrayGet(test_array,0)) + \
 e"\n [1]=" + String(ArrayGet(test_array,1)) + \
 e"\n [2]=" + ArrayGet(test_array,2), lsp=0, bold=true, font="info_h")

return clip

function FirstNSum(array x, int n) {	# --> function FirstNSum(array "x", int "n") {
  a = 0
  for (i=0, x.ArraySize()-1) {
    a = a + x[i]
  }
  return a
}
Fjord is offline   Reply With Quote
Old 13th February 2023, 18:35   #2236  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Quote:
Originally Posted by Reel.Deel View Post
In what way did it break?
I can't open the avs file in Virtualdub2 anymore.

Quote:
Originally Posted by Reel.Deel View Post
What is the error message?
Unknow or unsupported video format.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 16th February 2023, 12:40   #2237  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,314
Without being able to test jpsdr's issue:
Test build 4:
Avisynth+ 3.7.3 test 4 (20230216)
pinterf is offline   Reply With Quote
Old 16th February 2023, 15:56   #2238  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,902
Just like Test3, Test4 also doesn't work on Windows XP x86 due to 2 missing functions in the kernel: GetLocaleInfoEx and GetFileInformationByHandleEx

FranceBB is offline   Reply With Quote
Old 16th February 2023, 16:22   #2239  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,314
Quote:
Originally Posted by FranceBB View Post
Just like Test3, Test4 also doesn't work on Windows XP x86 due to 2 missing functions in the kernel: GetLocaleInfoEx and GetFileInformationByHandleEx
I have double checked the option now. I don't know what happens.
pinterf is offline   Reply With Quote
Old 16th February 2023, 16:29   #2240  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,314
Test2 is still running fine for you?
pinterf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 21:35.


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