| 11 | | These filters basically smooth away blocking and other artifacts from low quality sources.The parameter QP is chosen by the encoder used to create the video, VCD, DVD, etc. Lower QP for the encoder results in higher bitrate and higher quality encoding. If no "QP" parameter is specified by the user to the Postprocessing filter then it uses the one that is stored in the encoded file for the specific area. In particular, the quantization parameter QP regulates how much spatial detail is saved. When QP is very small, almost all that detail is retained. As QP is increased, some of that detail is aggregated so that the bit rate drops – but at the price of some increase in distortion and some loss of quality. |
| | 7 | * {{{spp}}} - Simple Postprocessing |
| | 8 | * {{{uspp}}} - Ultra Simple or Slow Postprocessing |
| | 9 | * {{{fspp}}} - Fast Simple Postprocessing |
| | 10 | * {{{pp7}}} - Postprocessing 7 |
| | 11 | * {{{pp}}} - libpostproc wrapper |
| 13 | | USPP uses an encoder, hence, should be used only when one has a powerful CPU. Also, USPP is very slow as compared to other filters. Therefore, for processing large amount of data, FSPP is a good option (It gives good results if parameters are chosen wisely). |
| | 13 | These filters basically smooth away blocking and other artifacts from low quality sources. The QP parameter is chosen by the encoder used to create the video, VCD, DVD, etc. Lower QP for the encoder results in higher bitrate and higher quality encoding. If no "QP" parameter is specified by the user to postprocessing filter uses the one that is stored in the encoded file for the specific area. In particular, the quantization parameter QP regulates how much spatial detail is saved. When QP is very small, almost all detail is retained. As QP is increased, some of that detail is aggregated so that the bit rate drops – but at the price of some increase in distortion and some loss of quality. |
| | 14 | |
| | 15 | {{{uspp}}} uses an encoder, hence, should be used only when one has a powerful CPU. Also, {{{uspp}}} is very slow as compared to other filters. Therefore, for processing large amount of data, {{{fspp}}} is a good option (It gives good results if parameters are chosen wisely). |
| | 16 | |
| | 17 | Postprocessing filters can be used on the {{{ffmpeg}}} commandline like this: |
| | 18 | {{{ |
| | 19 | ffmpeg -i INPUT ... -vf PP OUTPUT |
| | 20 | }}} |
| | 21 | |
| | 22 | or can be used to playback the input with {{{ffplay}}} like this: |
| | 23 | {{{ |
| | 24 | ffplay INPUT -vf PP |
| | 25 | }}} |
| | 26 | |
| | 27 | where PP is the postprocessing filter with its parameters. |
| | 28 | |
| | 29 | When using postprocessing filters before encoding, keep in mind that even if encoding artifacts will be removed by the filter, new artifacts will be added by the new encoding. In some cases the postprocessing filters though will increase the visual quality (or even reduce the encoding output size). |