Answers.Body: <p>Try ffmpeg's <a href="https://ffmpeg.org/ffmpeg-filters.html#deshake" rel="nofollow noreferrer">deshake filter</a>. It scans the full frame (or a portion of your choosing) and detects shake based on a number of adjustable variables. If the video isn't shaking, it doesn't change the content. You can run the default settings with:</p>
  
  <p><code>ffmpeg -i [input] -vf deshake [output]</code></p>
  
  <p><a href="http://blog.gregzaal.com/2014/05/30/camera-stabilisation-with-ffmpeg/" rel="nofollow noreferrer">Great little demo here</a>. It's a combination detection and repair tool, no need to separately identify videos then reprocess.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-26T06:24:58.487Z
Answers.LastActivityDate: 2020-02-26T06:24:58.487Z
Answers.UserDisplayName: BreadEagles
Answers.Body: <p>I think you're looking for a way to automatically detect shaky footage.
  You can <em>kind of</em> do this in After Effects, assuming that there are consistently trackable points in the background of your footage.</p>
  
  <p>Import your footage into after effects.
  Set up a couple of motion tracking points
  Analyse motion tracking across your footage
  open the twirly controls on your layer until you find the Confidence value.
  Examine the <a href="https://helpx.adobe.com/after-effects/using/tracking-stabilizing-motion-cs5.html" rel="nofollow noreferrer">confidence values</a> over time.  When it drops dramatically, your footage is shaking.</p>
  
  <p>This could be automated further by using an expression to highlight where the footage is shaky, or by exporting the confidence keyframes into a spreadsheet alongside the video timings.</p>
  
  <p>I suspect there's a better tool for doing things like this (maybe inside ffmpeg or DaVinci resolve?) but I don't know...</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-26T14:25:16.727Z
Answers.LastActivityDate: 2019-09-26T14:25:16.727Z
Answers.UserDisplayName: tomh
Answers.Body: <p>You can cut the part you want to stabillize, you can count the seconds you want to stabillize, then you stabillize it, cropping may appear. You need to edit, whether you want to scale and enlarge all video parts or other editing ways based on what you want.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-11T20:14:01.270Z
Answers.Text: He's looking for a way to have the computer automatically detect whether or not a video is shaky.  He knows how to stabilize it.
Answers.UserDisplayName: Jason Conrad
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-02T23:37:54.040Z
Answers.LastActivityDate: 2018-04-02T23:37:54.040Z
Answers.UserDisplayName: Red Aura
Answers.Body: <p>You can use any Video Editing Software e.g Adobe Premier Pro, you can see <strong>frame by frame, if the frames contained Double-lined,</strong> <strong>Shaky Motion-blur frames</strong>, then Stablize it as you say. You can use Sharpen on Mask Layers on top of Video to see, because you can see shaky after Sharpen. Or <strong>you can see the shaky by mute your audio</strong>, and Make it Slow Motion for while, remember to change it back to normal speed. </p>
  
  <p>In fact that you have to find where's shaky by your own manually. Because this year still haven't come out Auto-Detect Shaky Video Plugin or Software. But, it is already has <a href="https://youtu.be/TtEjsY1C23U" rel="nofollow noreferrer">Plugin for perfect shaky detection &amp; Stablize Plugin her</a>e. You can find more Perfect plugin for you video editing software.</p>
  
  <p>Only a Programmer, can let Python Script in software help them auto-detect it. <a href="http://scottlobdell.me/2014/12/motion-detection-shaky-video-opencv-python/" rel="nofollow noreferrer">Here's Script</a> But, the video will broke if you use that scripting.</p>
  
  <p>The best option to avoid Shaky Video is Buy a Video Stablizer, it is a tool for stable video.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-21T14:30:39.020Z
Answers.LastActivityDate: 2019-06-21T14:45:00.803Z
Answers.LastEditDate: 2019-06-21T14:45:00.803Z
Answers.UserDisplayName: Red Aura
Body: <p>I need to stabilize a video only when the video is shaky. </p>
  
  <p>I have successfully stabilized a video using FFmpeg, and I do not need to stabilize all the videos, I only need to stabilize the videos which appear shaky (not stable). </p>
  
  <p>Is there any way I can detect that?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-11T14:27:08.667Z
Comments.Text: ffmpeg does not have a built in function to do this. You're basically needing to write an algorithm that will analyze pixels frame by frame.
Comments.UserDisplayName: LetTheWritersWrite
Tags: <video><ffmpeg><stabilisation>
Title: How to detect whether a video is shaky
UserDisplayName: madha kumar
ThreadText: # How to detect whether a video is shaky
  
  (Asked by: username_0 on 2017-10-19)
  
  I need to stabilize a video only when the video is shaky.
  
  I have successfully stabilized a video using FFmpeg, and I do not need to stabilize all the videos, I only need to stabilize the videos which appear shaky (not stable).
  
  Is there any way I can detect that?
  
  **Tags:** video, ffmpeg, stabilisation
  
  > **Comments:**
  > **username_1**: ffmpeg does not have a built in function to do this. You're basically needing to write an algorithm that will analyze pixels frame by frame.  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_2 on 2020-02-26. Score: 1
  
  Try ffmpeg's [deshake filter](https://ffmpeg.org/ffmpeg-filters.html#deshake). It scans the full frame (or a portion of your choosing) and detects shake based on a number of adjustable variables. If the video isn't shaking, it doesn't change the content. You can run the default settings with:
  
  `ffmpeg -i [input] -vf deshake [output]`
  
  [Great little demo here](http://blog.gregzaal.com/2014/05/30/camera-stabilisation-with-ffmpeg/). It's a combination detection and repair tool, no need to separately identify videos then reprocess.
  
  
  ---
  
  ### Answer by username_3 on 2019-09-26. Score: 0
  
  I think you're looking for a way to automatically detect shaky footage.
  You can *kind of* do this in After Effects, assuming that there are consistently trackable points in the background of your footage.
  
  Import your footage into after effects.
  Set up a couple of motion tracking points
  Analyse motion tracking across your footage
  open the twirly controls on your layer until you find the Confidence value.
  Examine the [confidence values](https://helpx.adobe.com/after-effects/using/tracking-stabilizing-motion-cs5.html) over time. When it drops dramatically, your footage is shaking.
  
  This could be automated further by using an expression to highlight where the footage is shaky, or by exporting the confidence keyframes into a spreadsheet alongside the video timings.
  
  I suspect there's a better tool for doing things like this (maybe inside ffmpeg or DaVinci resolve?) but I don't know...
  
  
  ---
  
  ### Answer by username_4 on 2018-04-02. Score: 0
  
  You can cut the part you want to stabillize, you can count the seconds you want to stabillize, then you stabillize it, cropping may appear. You need to edit, whether you want to scale and enlarge all video parts or other editing ways based on what you want.
  
  > **Comments:**
  > **username_5**: He's looking for a way to have the computer automatically detect whether or not a video is shaky.  He knows how to stabilize it.  
  
  ---
  
  ### Answer by username_4 on 2019-06-21. Score: 0
  
  You can use any Video Editing Software e.g Adobe Premier Pro, you can see **frame by frame, if the frames contained Double-lined,** **Shaky Motion-blur frames**, then Stablize it as you say. You can use Sharpen on Mask Layers on top of Video to see, because you can see shaky after Sharpen. Or **you can see the shaky by mute your audio**, and Make it Slow Motion for while, remember to change it back to normal speed.
  
  In fact that you have to find where's shaky by your own manually. Because this year still haven't come out Auto-Detect Shaky Video Plugin or Software. But, it is already has [Plugin for perfect shaky detection & Stablize Plugin her](https://youtu.be/TtEjsY1C23U)e. You can find more Perfect plugin for you video editing software.
  
  Only a Programmer, can let Python Script in software help them auto-detect it. [Here's Script](http://scottlobdell.me/2014/12/motion-detection-shaky-video-opencv-python/) But, the video will broke if you use that scripting.
  
  The best option to avoid Shaky Video is Buy a Video Stablizer, it is a tool for stable video.
  
  
  ---
  
  