You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-31Lines changed: 43 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,31 +23,31 @@ A video acquired using a hand-held camera or a camera mounted on a vehicle, typi
23
23
* Single pass filter for streaming applications(only with Transcode).
24
24
* Virtual-tripod-mode to get a tripod experience.
25
25
26
-
**NOTE:** This readme focuses mainly on using vidstab with Ffmpeg. See
26
+
**NOTE:** This readme focuses mainly on using vidstab with Ffmpeg. See
27
27
[here](http://public.hronopik.de/vid.stab) for information regarding installation, usage and examples for using vidstab with Transcode. Or contact me at georg dot martius @ web dot de
28
-
28
+
29
29
## System Requirements
30
30
* A Linux-based system
31
31
* ffmpeg source code
32
32
* Cmake
33
-
33
+
34
34
## Installation Instructions
35
35
36
36
For using vidstab library with ffmpeg, ffmpeg must to be configured using `--enable-libvidstab ` option.
**Currently with ffmpeg, vidstab library must run in two-pass mode.** The first pass employs the **vidstabdetect** filter and the second pass uses the **vidstabtransform** filter.
85
+
**Currently with ffmpeg, vidstab library must run in two-pass mode.** The first pass employs the **vidstabdetect** filter and the second pass uses the **vidstabtransform** filter.
86
86
87
-
*Single pass filter with vidstab library is only available with Transcode. The
87
+
*Single pass filter with vidstab library is only available with Transcode. The
88
88
[deshake](http://www.ffmpeg.org/ffmpeg-filters.html#deshake) filter of ffmpeg can be used for a single-pass encoding, though using the vidstab two-pass filters will give superior results.*
89
89
90
90
The vidstabdetect filter (in first pass) will generate a file with relative-translation and rotation-transform information about subsequent frames. This information will then be read by vidstabtransform filter (in second pass) to compensate for the jerky motions and produce a stable video output.
91
91
92
92
Make sure that you use [unsharp](http://www.ffmpeg.org/ffmpeg-filters.html#unsharp-1) filter provided by ffmpeg for best results (only in second pass).
93
93
94
+
NOTE: 10-bit 4:2:2 video must be downsampled to 8-bit 4:2:0 to avoid distortions like chroma shift or color bleed/smearing (see `format=yuv420p` example below).
95
+
94
96
*See [the list of ffmpeg filters](http://www.ffmpeg.org/ffmpeg-filters.html) to know more about vidstabdetect, vidstabtransform and all other filters available with ffmpeg.*
95
97
96
98
### Available options with vidstab filters:
@@ -115,32 +117,37 @@ Make sure that you use [unsharp](http://www.ffmpeg.org/ffmpeg-filters.html#unsha
115
117
<dd>Show fields and transforms in the resulting frames for visual analysis. It accepts an integer in the range 0-2. Default value is 0, which disables any visualization.</dd>
116
118
</dl>
117
119
118
-
120
+
119
121
120
122
##### Examples:
121
123
Use default values:
122
124
```shell
123
125
ffmpeg -i input.mp4 -vf vidstabdetect -f null -
124
-
```
125
-
126
+
```
127
+
126
128
*` -f null - ` makes sure that no output is produced as this is just the first pass. This in-turn results in faster speed.*
127
-
129
+
128
130
Analyzing strongly shaky video and putting the results in file `mytransforms.trf`:
<br>NOTE: If this mode has been used in first pass then only it should be used in second pass.</dd>
184
191
<dt><b>debug</b></dt>
185
192
<dd>Increase log verbosity if set to 1. Also the detected global motions are written to the temporary file <b>global_motions.trf</b> . Default value is 0. </dd>
0 commit comments