Old 05-14-2019, 05:59 AM   #41
mrlimbic
Human being with feelings
 
mrlimbic's Avatar
 
Join Date: Nov 2009
Location: UK
Posts: 594
Default

Quote:
Originally Posted by X-Raym View Post
@dysrock
You will have to write your own functions, based on pixel difference from one frame to another... That why it just 'in theory'.

But there is no real advantage of having this in video processor : you will be limited by playback speed, while ffprobe (used in this script) can do way faster analysis.
Video processor method has been used to compare difference versions of same video to spot VFX changes.

https://forum.cockos.com/showthread.php?t=204568

I wonder if that process could also be made quicker using ffprobe/ffmpeg? Instead of comparing to last frame you comparing to another video. You could put markers where they differ.
__________________
Convert NLE XMLs to RPP.
http://vordio.net
mrlimbic is offline   Reply With Quote
Old 05-14-2019, 06:35 AM   #42
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,488
Default

Quote:
Originally Posted by X-Raym View Post
@dysrock
You will have to write your own functions, based on pixel difference from one frame to another... That why it just 'in theory'.


But there is no real advantage of having this in video processor : you will be limited by playback speed, while ffprobe (used in this script) can do way faster analysis.
Edit: moved this to https://forum.cockos.com/showthread.php?t=220900

Last edited by Justin; 05-14-2019 at 07:32 AM.
Justin is offline   Reply With Quote
Old 05-14-2019, 09:26 PM   #43
Sonorityscape
Human being with feelings
 
Sonorityscape's Avatar
 
Join Date: Aug 2016
Posts: 42
Default

Awesome work!

I was testing with a video that had a lot of bright flashing which was triggering the cuts, but I think generally it will save a good amount of time.
Sonorityscape is offline   Reply With Quote
Old 05-15-2019, 02:20 AM   #44
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: brighton, uk
Posts: 12,754
Default

Quote:
Originally Posted by Sonorityscape View Post
Awesome work!

I was testing with a video that had a lot of bright flashing which was triggering the cuts, but I think generally it will save a good amount of time.
I wonder if the script should have a minimum time before next detection to help with this then?

Also, it's definitely a scene rather than shot detector but that's still very useful!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 05-17-2019, 08:53 PM   #45
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 194
Default

Quote:
Originally Posted by mrlimbic View Post
It's basically set to 40% of change in colour space since last frame. I could make that a tweakable parameter. For some videos it may not work well at all not matter what threshold you set. Fades will never work well I think.
I have a question about ffprobe. As you said, the script base on the detection of change in colour space. There are so many values in the result of -show_frames. So do you know which value does ffprobe actually comparing and tell their difference?

Last edited by dsyrock; 05-17-2019 at 10:36 PM.
dsyrock is offline   Reply With Quote
Old 05-26-2019, 12:40 PM   #46
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 234
Default

Awesome script. Thanks!!

So, what is exactly needed to add the thumbnails?
reapero is online now   Reply With Quote
Old 06-01-2019, 07:31 PM   #47
analogexplosions
Human being with feelings
 
analogexplosions's Avatar
 
Join Date: May 2011
Location: Nashville
Posts: 341
Default

I just tried this out for the first time and WOW! This is incredible. I've been wanting this for a looooong time.

What is the likelihood of some type of sensitivity threshold parameter settings being added? I just did detection for a 90min feature and it got most everything correctly, but maybe 10% of the film has scene cuts that FFProbe missed.
__________________
www.dungeonbeach.com
analogexplosions is offline   Reply With Quote
Old 06-02-2019, 12:39 AM   #48
mrlimbic
Human being with feelings
 
mrlimbic's Avatar
 
Join Date: Nov 2009
Location: UK
Posts: 594
Default

Quote:
Originally Posted by analogexplosions View Post
I just tried this out for the first time and WOW! This is incredible. I've been wanting this for a looooong time.

What is the likelihood of some type of sensitivity threshold parameter settings being added? I just did detection for a 90min feature and it got most everything correctly, but maybe 10% of the film has scene cuts that FFProbe missed.
Threshold is currently set to .4 (40%) but I could make it easier to change.

The relevant lines are 123 (mac) and 127 (windows) if you want to hack it.

Code:
-show_frames -of compact=p=0 -f lavfi 'movie=%s,select=gt(scene\\,.4)' > %s && mv %s %s &
the select=gt(scene\\,.4) part determines the threshold.

EDIT: You will also need to delete the scene cut list text file in the project folder to refresh the list.
__________________
Convert NLE XMLs to RPP.
http://vordio.net

Last edited by mrlimbic; 06-02-2019 at 05:39 AM.
mrlimbic is offline   Reply With Quote
Old 06-02-2019, 10:19 PM   #49
analogexplosions
Human being with feelings
 
analogexplosions's Avatar
 
Join Date: May 2011
Location: Nashville
Posts: 341
Default

Quote:
Originally Posted by mrlimbic View Post
Threshold is currently set to .4 (40%) but I could make it easier to change.

The relevant lines are 123 (mac) and 127 (windows) if you want to hack it.

Code:
-show_frames -of compact=p=0 -f lavfi 'movie=%s,select=gt(scene\\,.4)' > %s && mv %s %s &
the select=gt(scene\\,.4) part determines the threshold.

EDIT: You will also need to delete the scene cut list text file in the project folder to refresh the list.

Hot.

I also have Nuendo, not sure what method they are using for its cut detection, but 70-80% seemed to be the sweet spot that caught everything.
__________________
www.dungeonbeach.com
analogexplosions is offline   Reply With Quote
Reply

Thread Tools
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 -7. The time now is 05:52 AM.


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