Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vidstab [2015/07/10 02:48]
slackermedia created
vidstab [2021/06/03 19:48] (current)
Line 1: Line 1:
-[[{arrowp.png|border:​0;​background:​none;​width:​0;​display:​inline-block;​position:​absolute;​top:​0;​left:​0;​}trelby|]] 
  
-[[{arrown.png|border:​0;​background:​none;​width:​0;​display:​inline-block;​position:​absolute;​top:​0;​margin-left:​2.5em;​}videogrep|]] 
  
-====================+======vid.stab======
  
-<WRAP notice prewrap 50%>+[[http://​public.hronopik.de/​vid.stab/​features.php?​lang=en|vid.stab]] is a video stabliser for ''​transcode''​ and ''​ffmpeg''​.
  
 +<WRAP notice prewrap 50%>
 <WRAP rightalign>​ <WRAP rightalign>​
 ===== Strengths [Weaknesses] ===== ===== Strengths [Weaknesses] =====
Line 34: Line 33:
 </​WRAP>​ </​WRAP>​
  
-======Install======+=====Install=====
  
 +Install [[http://​public.hronopik.de/​vid.stab/​features.php?​lang=en|vid.stab]] from [[http://​slackbuilds.org]].
  
-[[http://​public.hronopik.de/​vid.stab/​features.php?​lang=en]]+The Slackermedia build of [[ffmpeg]] has ''​vidstab''​ enabled. Other builds of ''​ffmpeg''​ may not have this feature enabled, so if you used another ''​ffmpeg''​ build or built it yourself, you should double-check that it is active:
  
-https://​github.com/​georgmartius/​vid.stab +<​code>​ 
-now can be used without transcode but for now:+$ ffmpeg --version 
 +</​code>​ 
 + 
 +Look in the output for the ''​--enable-libvidstab''​ flag. If it is set, then your installed version of ''​ffmpeg''​ can use ''​vid.stab''​. 
 + 
 +=====Usage===== 
 + 
 +Vid.stab is a two-step process; first video must be analysed, and then it can be stabilised. 
 + 
 +Fine adjustments probably need to be made depending on the severity of the shaking in the video. Read more about the different options on [[https://​github.com/​georgmartius/​vid.stab]], and as always, practise makes perfect. Learn to identify the different "​kinds"​ of shakes by stabilising as many clips as you can; take notes on the results, and try different techniques. 
 + 
 +First, analyse a video file, using the filter ''​vidstabdetect''​:
  
 <​code>​ <​code>​
-transcode -J stabilize ​-i foo.mp4 +ffmpeg ​-i foo.mp4 -vf vidstabdetect=shakiness=10:​accuracy=15:​result="​transforms.trf"
-$ transcode ​-J transform -i foo.mp4 -y xvid -o bar.mp4+
 </​code>​ </​code>​
 +
 +There is no video output from this command, but data about the video is written to the file ''​transforms.trf''​.
 +
 +Use this data to stabilise the video, applying a slight zoom so that the transforms around the edges of the screen are not visible:
 +
 +<​code>​
 +$ ffmpeg -i foo.mp4 -vf vidstabtransform=zoom=5:​input="​mytransforms.trf"​ fooStabilized.mp4
 +</​code>​
 +
  
 <WRAP tip> <WRAP tip>
 **See Also** \\ **See Also** \\
 [[kdenlive|Kdenlive]] \\ [[kdenlive|Kdenlive]] \\
 +[[lightworks|Lightworks]] \\
 [[blender|Blender]] [[blender|Blender]]
 </​WRAP>​ </​WRAP>​
  
  
 +<WRAP centeralign>​
 +<wrap fa>​[[trelby|R]]</​wrap>​ <wrap fa>​[[start|S]]</​wrap>​ <wrap fa>​[[videogrep|Q]]</​wrap>​
 +</​WRAP>​
  
-[[{arrown.png|border:​0;​background:​none;​width:​0;​display:​inline-block;​float:​right;​}videogrep|]][[{arrowp.png|border:​0;​background:​none;​width:​0;​float:​right;​}trelby|]]