Forums

Resolved
0 votes
Hi,
Do you have some video recordings from you smartphone, GoPro, drone or any other camera where you did not use a tripod and the result is a pretty shaky video? Here is how you can fix your video file in post production using ClearOS 7:

The FFmpeg package that is available for ClearOS 7 includes a plug-in called vid.stab that does most of the magic. The end result is most of the time really great. See here for a special comparison-video with the original to the left and the stable video to the right:


To convert your videos you need to work from command line and this is what is needed:
While you can do the convertion as a 1-pass run I highly recommend you to run 2 passes since it produces much better results. Below you find an example. Please adjust file formats, video codecs and vid.stab settings to your needs.

The first run analyses the video and creates an "instruction file".
ffmpeg -i SHAKY_INPUT_VIDEO_FILE -vf vidstabdetect=stepsize=6:shakiness=8:accuracy=9:result=transform_vectors.trf -f null -


The second run reads the "instruction file" and creates the stable video file.
ffmpeg -i SHAKY_INPUT_VIDEO_FILE -vf vidstabtransform=input=transform_vectors.trf:zoom=1:smoothing=30,unsharp=5:5:0.8:3:3:0.4 -vcodec libx264 -preset slow -tune film -crf 18 -acodec copy SMOOTH_OUTPUT_VIDEO.mp4


After the second run, the "instruction" file <transform_vectors.trf> is no longer needed and can be deleted.

Happy post production!

You can read more about vid.stab here:vid.stab
/Fred
Monday, May 09 2016, 07:37 PM
Like
2
Share this post:
Responses (1)
  • Accepted Answer

    Tuesday, May 10 2016, 05:10 PM - #Permalink
    Resolved
    0 votes
    Fredrik, the end result looks amazing. Thank you for sharing this!
    The reply is currently minimized Show
Your Reply