View Single Post
Old 5th September 2003, 19:25   #8  |  Link
oof
Registered User
 
Join Date: Jul 2003
Location: Uranus
Posts: 44
The Kluge consists of writing a compare log to a file with:

avisource( "movie.avi" )
v2 = trim( last, 1,0 )
Compare(last, v2, "", "compare.log", true)

then run AWK
$2 == 0 {print "DeleteFrame( " $1 " )" "\r" }

now we have another AVS which deletes all the desired frames.


If it was C I would write

output( Frame[ FIRST_FRAME ] ) ;
for( i = FIRST_FRAME + 1 ; i <= LAST_FRAME ; i++ )
{ if( Frame[ i ] != Frame[ i - 1 ] )
output( Frame[ i ] ;
/* Else skip this one */
}
oof is offline   Reply With Quote