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 > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st February 2023, 00:15   #1  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Video segments detection

Is it possible to detect black, video bars, silence, freeze frames through vs with some log with frame numbers?
kolak is offline   Reply With Quote
Old 22nd February 2023, 07:07   #2  |  Link
_Al_
Registered User
 
Join Date: May 2011
Posts: 321
Four questions , pretty heavily compressed. :-)
Black could be detected using PlaneStats with some threshold and checking max values.
Video bars (of known type? Check diff) or check for gray left,right and green in the middle.
Detect silence perhaps not, because vapoursynth cannot evaluate audio, FrameEval would not work (could be wrong).
Freeze frames check for differences using PlaneStats or Diff to detect no changes within a threshold limit,
all DIY stuff.
The easiest part would be actually to print results using matplotlib.
_Al_ is offline   Reply With Quote
Old 23rd February 2023, 01:31   #3  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Which bring us to the point where using ffmpeg is way easier
kolak is offline   Reply With Quote
Old 23rd February 2023, 06:55   #4  |  Link
_Al_
Registered User
 
Join Date: May 2011
Posts: 321
Including those plots? :-) ffmpeg does what it can do. All of us using it for a reason.
As soon as you get python going though, it seams like there is no limit (tapping into C libraries of course).
_Al_ is offline   Reply With Quote
Old 23rd February 2023, 19:37   #5  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Yes, but in this case I need just numbers and getting these is way easier with ffmpeg. Black, freeze frame and silent detection filters work quite well in ffmpeg.
Then I need to generate FCP XML to create a timeline. This is more tricky, but doable.
It will be all Python based (which I can do), but only at basic level.

Last edited by kolak; 23rd February 2023 at 19:40.
kolak 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 05:41.


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