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. |
25th September 2015, 03:00 | #22 | Link |
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) |
1st October 2015, 17:30 | #24 | Link |
HeartlessS Usurer
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 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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|