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 Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th September 2015, 22:25   #21  |  Link
Drayden
Registered User
 
Join Date: Aug 2015
Posts: 9
Thresh and Partframes I did not change yet - they were as you set them initially.
Drayden is offline   Reply With Quote
Old 25th September 2015, 03:00   #22  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
The following kiddiescript is nothing compared to StainlessS' professional work, but it is a simple way to get you 80% of the way there. Here's the output file containing flash frame numbers:

Flash Frame.txt

And here's the simple script:

Code:
#Script to find flash frames

filename = "e:\flash_frames.txt"
global flashthreshold=0.8

i=AVISource("E:\Documents\Dnload\UNPACK\join3.avi")

j=trim(i,1,0) #Previous frame

# Temporarily un-comment next line to display the average luma value on screen to help determine threshold value
#ScriptClip(i,"Subtitle(String(YDifferenceToNext(i) ))" )

#This finds the FIRST frame in a series that fall below the threshold
#WriteFileIf(i, filename,  "(YDifferenceToNext(i)>flashthreshold)&&YDifferenceToNext(j)<flashthreshold", "current_frame+1", append = false)

#This line below will output EVERY frame that is below threshold, which results in LOTS of frames
WriteFileIf(i, filename,  "(YDifferenceToNext(i)>flashthreshold)", "current_frame+1", append = false)

#The line below finds the LAST flash frame in a series
#WriteFileIf(i, filename,  "(YDifferenceToNext(i)<flashthreshold)&&YDifferenceToNext(j)>flashthreshold", "current_frame+1", append = false)
johnmeyer is offline   Reply With Quote
Old 29th September 2015, 08:50   #23  |  Link
Drayden
Registered User
 
Join Date: Aug 2015
Posts: 9
Guys, thank you very much for your help!

I'm gonna continue playing with the task later on weekend and post some feedback.
Drayden is offline   Reply With Quote
Old 1st October 2015, 17:30   #24  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Posts #15 to #17 updated.

Getting speeds on 2.4Ghz Core Duo duel core of (53:00 Join3.Avi clip):
Code:
00000002    541.76666260    [3748] InitDB: Completed in 541.21 secs (9.02Mins) : 176.31 FPS 
00000003    623.11572266    [3748] SequenceDB: Completed in 81.35 secs (1.36Mins) : 1173.00 FPS 
00000004    690.96984863    [3748] PartitionDB: Completed in 67.85 secs (1.13Mins) : 1406.35 FPS
Although InitDB timing previously gave me about 220FPS with debugging switched on, can only assume that my machine was doing something else
in the background during InitDB.

EDIT:
Not having a clue how to open *.webm I used below ConvertToAVI.Bat file together with ffmpeg (output UTVideo codec)

Code:
setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get input file, No terminating Backslash, "." = current directory (ie same as dir .bat file)
set INDIR="."


REM Where to place output file, No terminating Backslash. "." would be same as .bat file
set OUTDIR="D:\AVS\AVI"

FOR %%A IN (*.vob *.wmv *.mpg *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM *.mkv *.TS *.y4m *.yuv *.webm) DO (
  %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"

)

Pause
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 2nd October 2015 at 14:43.
StainlessS 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 00:45.


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