Changes between Version 12 and Version 13 of DenoiseExamples
- Timestamp:
- Jun 9, 2024, 3:48:52 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DenoiseExamples
v12 v13 42 42 For example, when an analog source is digitized, there may be a disproportionate amount of noise in the chroma plane. The following will produce a 4x4 mosaic containing `{original, luma, Cb, Cr}`, similar to the tools such as [https://www.neatvideo.com/support/tutorials/nv5/building-noise-profile Neat Video noise-preview]. Frames are converted to yuv444p (or yuv444p10le for 10-bit) in order to remove chroma-subsampling of a yuv422p or yuv420p source, where chroma-planes are encoded at a lower resolution. 43 43 44 {{{ 45 $ ffplay -f 'lavfi' "movie='${In}', \44 {{{#!shell 45 $ ffplay -f 'lavfi' "movie='${In}', \ 46 46 format=pix_fmts='yuv444p',split=2[split1][split2]; \ 47 47 [split2]extractplanes='y+u+v'[y][u][v]; \ … … 64 64 The visual effect of a denoise filter is subjective. A user is encouraged to compare denoise filters. The following command will compare `null` (no-operation) filter on the left of the player window with the `hqdn3d` filter (with default properties) on the right of the center-line. 65 65 66 {{{ 66 {{{#!shell 67 67 $ ffplay -f 'lavfi' "movie='${In}', \ 68 68 split=2[split1][split2]; \ … … 76 76 It is possible to extend the above command to cycle through the `{ combined, luma, Cb, Cr }` planes using FFplay's ''"cycle video filters or show modes"'' using the `w` key. 77 77 78 {{{ 78 {{{#!shell 79 79 $ ffplay -f 'lavfi' "movie='${In}', \ 80 80 split=2[split1][split2]; \ … … 96 96 For example, here is a comparison of the relative performance of the `hqdn3d` and the `nlmeans` filters across 1000 video frames. These comparisons and values are not recommendations, but are to demonstrate how algorithm and options selection can have a major impact on performance. 97 97 98 {{{ 98 {{{#!shell 99 99 $ ffmpeg -an -dn -sn -i "${In}" -filter:v hqdn3d,latency,trim=end_frame=1000 -f null - 100 100 [Parsed_latency] Min latency: 156 bitrate=N/A speed=14.1x … … 119 119 120 120 Simple usage with default options... 121 {{{ 121 {{{#!shell 122 122 $ ffmpeg -i "${In}" -vf atadenoise "${Out}" 123 123 … … 126 126 127 127 Advanced options usage... 128 {{{ 128 {{{#!shell 129 129 $ ffmpeg -i "${In}" \ 130 130 -filter:v "atadenoise=0a=0.02:0b=0.04:1a=0.02:1b=0.04:2a=0.02:2b=0.04:s=9:p=7:a='p':0s=32767:1s=32767:2s=32767" \ … … 135 135 136 136 Command-line help is available at the terminal prompt... 137 {{{ 137 {{{#!shell 138 138 $ ffmpeg -hide_banner -h filter=atadenoise 139 139 }}} … … 146 146 147 147 Simple usage with default options... 148 {{{ 148 {{{#!shell 149 149 $ ffmpeg -i "${In}" -vf bm3d "${Out}" 150 150 … … 153 153 154 154 Advanced options usage... 155 {{{ 155 {{{#!shell 156 156 $ ffmpeg -i "${In}" \ 157 157 -filter:v "bm3d=sigma=1.0:block=8:bstep=4:group=1:range=9:mstep=1:thmse=0:hdthr=2.70:estim='basic':ref='disabled':planes=7" \ … … 162 162 163 163 Command-line help is available at the terminal prompt... 164 {{{ 164 {{{#!shell 165 165 $ ffmpeg -hide_banner -h filter=bm3d 166 166 }}} … … 173 173 174 174 Simple usage with default options... 175 {{{ 175 {{{#!shell 176 176 $ ffmpeg -i "${In}" -vf dctdnoiz "${Out}" 177 177 … … 180 180 181 181 Advanced options usage... 182 {{{ 182 {{{#!shell 183 183 $ ffmpeg -i "${In}" \ 184 184 -filter:v "dctdnoiz=sigma=0:overlap=-1:n=3" \ … … 189 189 190 190 Command-line help is available at the terminal prompt... 191 {{{ 191 {{{#!shell 192 192 $ ffmpeg -hide_banner -h filter=dctdnoiz 193 193 }}} … … 200 200 201 201 Simple usage with default options... 202 {{{ 202 {{{#!shell 203 203 $ ffmpeg -i "${In}" -vf fftdnoiz "${Out}" 204 204 … … 207 207 208 208 Advanced options usage... 209 {{{ 209 {{{#!shell 210 210 $ ffmpeg -i "${In}" \ 211 211 -filter:v "fftdnoiz=sigma=1:amount=1:block=32:overlap=0.5:method='wiener':prev=0:next=0:planes=7:window='hann'" \ … … 216 216 217 217 Command-line help is available at the terminal prompt... 218 {{{ 218 {{{#!shell 219 219 $ ffmpeg -hide_banner -h filter=fftdnoiz 220 220 }}} … … 229 229 230 230 Simple usage with default options... 231 {{{ 231 {{{#!shell 232 232 $ ffmpeg -i "${In}" -vf hqdn3d "${Out}" 233 233 … … 236 236 237 237 Advanced options... 238 {{{ 238 {{{#!shell 239 239 $ ffmpeg -i "${In}" \ 240 240 -filter:v "hqdn3d=hqdn3d=luma_spatial=4.00:chroma_spatial=3.00:luma_tmp=6.00:chroma_tmp=4.5" \ … … 245 245 246 246 Command-line help is available at the terminal prompt... 247 {{{ 247 {{{#!shell 248 248 $ ffmpeg -hide_banner -h filter=hqdn3d 249 249 }}} … … 264 264 265 265 Simple usage with default options... 266 {{{ 266 {{{#!shell 267 267 $ ffmpeg -i "${In}" -vf nlmeans "${Out}" 268 268 … … 271 271 272 272 Advanced options usage... 273 {{{ 273 {{{#!shell 274 274 $ ffmpeg -i "${In}" \ 275 275 -filter:v "nlmeans=s=1.00:p=7:pc=0:r=15:rc=0" \ … … 280 280 281 281 Command-line help is available at the terminal prompt... 282 {{{ 282 {{{#!shell 283 283 $ ffmpeg -hide_banner -h filter=nlmeans 284 284 $ ffmpeg -hide_banner -h filter=nlmeans_opencl … … 301 301 302 302 Simple usage with default options... 303 {{{ 303 {{{#!shell 304 304 $ ffmpeg -i "${In}" -vf owdenoise "${Out}" 305 305 … … 308 308 309 309 Advanced options usage... 310 {{{ 310 {{{#!shell 311 311 $ ffmpeg -i "${In}" \ 312 312 -filter:v "fftdnoiz=owdenoise=depth=8:luma_strength=1:chroma_strength=1 " \ … … 317 317 318 318 Command-line help is available at the terminal prompt... 319 {{{ 319 {{{#!shell 320 320 $ ffmpeg -hide_banner -h filter=owdenoise 321 321 }}} … … 328 328 329 329 Simple usage with default options... 330 {{{ 330 {{{#!shell 331 331 $ ffmpeg -i "${In}" -vf vaguedenoiser "${Out}" 332 332 … … 335 335 336 336 Advanced options usage... 337 {{{ 337 {{{#!shell 338 338 $ ffmpeg -i "${In}" \ 339 339 -filter:v "vaguedenoiser=threshold=2:method='garrote':nsteps=6:percent=85:planes=7:type='universal'" \ … … 344 344 345 345 Command-line help is available at the terminal prompt... 346 {{{ 346 {{{#!shell 347 347 $ ffmpeg -hide_banner -h filter=vaguedenoiser 348 348 }}}
