Changes between Version 19 and Version 20 of DenoiseExamples


Ignore:
Timestamp:
Jun 9, 2024, 5:25:33 PM (2 years ago)
Author:
uncoder
Comment:

Added section on codec-specific denoisers, for completeness.

Legend:

Unmodified
Added
Removed
Modified
  • DenoiseExamples

    v19 v20  
    9292}}}
    9393
    94 == Benchmarking the relative performance of denoise filters #Benchmarking
     94=== Benchmarking the relative performance of denoise filters #Benchmarking
    9595
    9696The performance of denoise filters varies depending on a number of factors, including algorithm, patch size, number of planes being processed, hardware etc.  A user can measure and compare the relative performance of a denoise filter and the selected options using the [https://ffmpeg.org/ffmpeg-filters.html#latency_002c-alatency `latency`] benchmarking filter.
    … …  
    102102 [Parsed_latency] Min latency: 156 bitrate=N/A speed=14.1x
    103103
    104 $ ffmpeg -an -dn -sn -i "${In}" -filter:v nlmeans,latency,trim=end_frame=1000 -f 'null' -
     104$ ffmpeg -an -dn -sn -i "${In}" -filter:v nlmeans,latency,trim=end_frame=1000 -f null -
    105105 [Parsed_latency] Min latency: 136 bitrate=N/A speed=0.087x
    106106
    … …  
    251251}}}
    252252
    253 Note:\\
    254 ͏    At the time of writing (FFmpeg 7.0.1), the command-line interface help suggests that all options default to 0.  The Official FFmpeg online documentation suggests that the default value of luma_spacial is `4.0` and all other default values are solved-for.  The contradiction in documentation is noted.
     253  Note: At the time of writing (FFmpeg 7.0.1), the command-line interface help suggests that all options default to 0.  The Official FFmpeg online documentation suggests that the default value of luma_spacial is `4.0` and all other default values are solved-for.  The contradiction in documentation is noted.
    255254
    256255Official FFmpeg online documentation is available at https://ffmpeg.org/ffmpeg-filters.html#hqdn3d
    … …  
    352351
    353352Official FFmpeg online documentation is available at https://ffmpeg.org/ffmpeg-filters.html#vaguedenoiser
     353
     354== Codec-specific denoisers
     355
     356It is noted that some encoders include denoise functions as private codec options.
     357  For example, the external x264 encoder supports the `--nr` option, where a user may specify a value in the range of {0...65536}, with the default being 0 (disabled).
     358
     359{{{#!shell
     360$ x264 --nr 200 -o "${Out}" "${In}"
     361
     362$ ffmpeg -i "${In}" -codec:v 'libx264' -x264opts 'nr=200' "${Out}"
     363}}}
     364
     365FFmpeg's range of denoise filters have the advantage of being codec-agnostic, can be evaluated independent of a transcode and offer a wider selection of algorithms.