I am stuck trying to write out the frames number when scselect detects a change of scene and swap frame before and after scene change.Code:source=FFVideoSource("F:\A Spider In The Web.avi").convertTOYV12(interlaced=false).killaudio() filename = "F:\SCtest.txt" prev = source.selectevery(1,-1) next = source.selectevery(1,1) source.SCSelect(next,prev,source,dfactor=3.0) WriteFileIf(filename, "(prev=true) || (next=true)" , "current_frame", flush=false)
Also is it possible to do this?
frames 1 2 3 sc 4 5 6 become 1 2 3 2 sc 5 4 5 6
cheers
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
How about this for scene change:
Code:filename = "F:\SCtest.txt" source=FFVideoSource("F:\A Spider In The Web.avi").convertTOYV12(interlaced=false).killaudio() sup = MSuper(source) vec = MAnalyse(sup, isb=false, delta=1) scenechange = MSCDetection (source, vec) WriteFileIf(scenechange, filename, "(AverageLuma()>250)", "current_frame", append = false)
-
I can only assume you were replying to the wrong thread?
Your answer doesn't help at all. -
-
I was being sarcastic
My point being is that your method, after some fine tuning, only outputs the frame numbers but it doesn't swap frames before and after scene change. The swapping of frames is the feature I need. I just need to output the frame numbers of the said feature.
So is it possible or not? -
Swapping of the frames is easy, but after your reply to jagabo, I'm not going to help either. His answer was exactly what you asked for:
I am stuck trying to write out the frames number when scselect detects a change of scene -
No he didn't. MSCDetection works independently of scselect.
I am stuck trying to write out the frames number when scselect detects a change of scene
If last frame before sc
Then replace with previous frame
Else
If first frame after sc
Then replace with next frame.
Then
Write frame number of sc.
MSCDetection from jagabo does not do that.
The purpose of having a list of frames numbers is for debugging purpose to make sure that scselect works as intended and that it doesn't falsely swap frames between one sc and another sc, for any other possible reasons. It would then allow me to adjust the dfactor if necessary.
Similar Threads
-
Psyscenedetect - Automatic scene change analyzer
By lingyi in forum EditingReplies: 3Last Post: 27th May 2020, 17:48 -
Automatic change/scene detection for video game videos
By onewaydown in forum EditingReplies: 25Last Post: 7th Jan 2019, 00:24 -
Software that change change speed of MPG (without converting)?
By guy24s in forum EditingReplies: 10Last Post: 19th Dec 2017, 04:49 -
Blending problem still exist after and before scene change need help please
By BÌG•bµdd in forum RestorationReplies: 15Last Post: 2nd Oct 2017, 19:15 -
Help with detelecine settings: PAL DVD with scene-change field blending?
By U2Joshua in forum Video ConversionReplies: 9Last Post: 22nd Dec 2016, 21:00