FORUM arduino

FORUM arduino



SearchSearch   Users   Registration   Entrance
Today: 06.12.2025 - 13:52:50
Pages:  1  2  

Using per frame conditional filtering

AuthorMessage

Bobby ///M3

Chronic doubter




Statistics:
Messages: 492
Registration: 01.27.2002

Access violation... 



Message # 11 31.08.24 - 00:58:04
RE: Using per frame conditional filtering

EpDarks

Chronic doubter




Statistics:
Messages: 95
Registration: 11.16.2003

(@sh0dan). Trying to use the new ConditionalFilter, I cannot get it to work. The conditional statement always returns an access violation error, except if I deliberately put in bad parameters (for example: try to use AverageLuma for RGB space). Here is my script, 'TestArea' and 'Video' are returned as expected, 'FixVid' has the error reported as I have shown below. Video = AVISource("e:\VD capture\CAM01 Comp VCRstab.avi") Video = FlipVertical(Video) # Flip the video upside down to correct for MJPEG decoder Video = AddBorders(Video,0,1,0,0) # Add one black line at the top of the frame TestArea = ConvertToYV12(Crop(Video,0,0,260,200)) # AverageLuma function can only deal with YV12 FixVid = ConditionalFilter(TestArea,Subtitle(Video,"1ST CLIP"),Subtitle(Video,"2ND CLIP"),"AverageLuma()","LessThan","10") #Return(TestArea) #Return(Video) Return(FixVid) # Avisynth: caught an access violation at 0x025ea268 attempting to write 0x03471210 I know this is very new stuff, but I thought you should know. The return size of the error video is the same size as the 'TestArea' clip, not the size of the 'Video' clip, which I found a bit strange. Thanks :) OK... some more info has come to light (ie: I am playing with it). I tried your sample script for selecting a frame number, and it worked fine. So I dug. It seems as though the test clip and the two source clips have to be the same size. Obviously for the two sources, but the test???? Also, it appears all 3 clips have to be in the same colour space or it will not work. Anyway, my kludge to fix my current problem was to use StackVertical & StackHorizontal to return my small test area to full size, convert all clips to YV12, and back to RGB at the end, and it works great!! This is going to save me weeks!!! (actually, without it, I probably would not even have tried!) Much appreciated :)



Message # 12 31.08.24 - 01:01:43
RE: Using per frame conditional filtering

BMTHREE

Chronic doubter




Statistics:
Messages: 230
Registration: 05.15.2003

Yes - the two source clips must be exactly alike - however previously the testclip also had to be the same as the two sources. This is now fixed in a new binary. There is also proper error handling now. Sorry for the inconvinience.



Message # 13 31.08.24 - 01:07:43
RE: Using per frame conditional filtering

nughaud

Chronic doubter




Statistics:
Messages: 314
Registration: 09.26.2001

Thanks for the update to fix the size of the test clip. Still a bug though, the output clip size is that of the test clip, not the size of the two source clips! Also, there appears to be a bug in the code (both this last build and the previous one I got containing the ConditionalFilter, maybe others as well) that brings up an "Unrecognised Exception" whenever I try to do any type of resize. An earlier version I have (v2.07) does resize OK. Thanks for your efforts :) I am finding ConditionalFilter exceptional.


--------------------
http://bimmerinfo.com
Message # 14 31.08.24 - 01:12:21
RE: Using per frame conditional filtering

Barry

Chronic doubter




Statistics:
Messages: 95
Registration: 12.11.2001

Using conditional filtering 



Message # 15 31.08.24 - 01:23:06
RE: Using per frame conditional filtering

2,244

Chronic doubter




Statistics:
Messages: 10.04.2003
Registration:

This subject has been quiet for a couple of weeks, and I have got no feedback on my posts to the other threads on conditional filtering. One was a bug that was introduced somewhere, probably not to do with conditional, but was in the CVS that had the conditional filter in it. "resize" does not work with any settings. The other is a comment on ConditionalFilter, and perhaps someone in the know would like to address it while it is still experimental and can be changed... I can do effectively the same thing with 1) ConditionalFilter(testclip,sourceA,sourceB,"AverageLuma()","<","128") 2) ConditionalFilter(anyclip,sourceA,sourceB,"AverageLuma(testclip)","<","128") The only difference is that *if* "testclip" (or "anyclip") is a different size to "sourceA" ("sourceA" same size as "sourceB") the output of the filter is the size of "testclip". Since syntax "2" is possible, why not have the general syntax for conditional filter to be... ConditionalFilter(sourceA,sourceB,<test_expression1>,<condition>,<test_expression2>[,true


--------------------
Rich V
Message # 16 31.08.24 - 01:30:11
RE: Using per frame conditional filtering

lhoward

Chronic doubter




Statistics:
Messages: 62
Registration: 10.24.2002

A new function "ScriptClip" is introduced: Syntax: ScriptClip([clip], "Script"[, show=true/false]). This function further extends the possibilities of conditional filtering. A simple example: Code:


--------------------
Only a company that built airplane engines could build a car to make your heart soar.
Message # 17 31.08.24 - 01:34:22
RE: Using per frame conditional filtering

av2

Chronic doubter




Statistics:
Messages: 78
Registration: 01.23.2003

1) ad "selection of properties": Why should the sound come from the testclip? Most of the current multi-clip-filters use Source1 as "default". 2) Is there a reference to the framenumber in ScriptClip? 3) So ScriptClip is some kind of generalisation of ConditionalFilter or what else are the pros/cons?


--------------------
96' M3 - Short Shifter, Racing Dynamics brace, x-brace, Conforti Chip, Hawks HP Plus pads, Ground Control School/Track coilovers (f550/r650). 01' 996 Turbo - PSS9, I-Forged Essen Wheels. 05' X5 4.4 05' F430 F1 Ex's 02' C32 AMG 01' S2000 01' Rav-4 AWD
Message # 18 31.08.24 - 01:39:58
RE: Using per frame conditional filtering
Automatically Panning : Previous topic
Pages:  1  2  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

Running on: Phorum 8.88.8