[FFmpeg-cvslog] doc/filters: add one more example for ssim/psnr
Paul B Mahol
git at videolan.org
Fri Oct 25 23:36:52 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Oct 25 22:35:02 2019 +0200| [487a1f28e283f22351397c0fbbfffb90b431e890] | committer: Paul B Mahol
doc/filters: add one more example for ssim/psnr
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=487a1f28e283f22351397c0fbbfffb90b431e890
---
doc/filters.texi | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/doc/filters.texi b/doc/filters.texi
index 68441f8e28..3a414d577f 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -14857,6 +14857,9 @@ Maximum allowed value for each channel, and average over all
channels.
@end table
+ at subsection Examples
+ at itemize
+ at item
For example:
@example
movie=ref_movie.mpg, setpts=PTS-STARTPTS [main];
@@ -14867,6 +14870,13 @@ On this example the input file being processed is compared with the
reference file @file{ref_movie.mpg}. The PSNR of each individual frame
is stored in @file{stats.log}.
+ at item
+Another example with different containers:
+ at example
+ffmpeg -i main.mpg -i ref.mkv -lavfi "[0:v]settb=1/AVTB,setpts=PTS-STARTPTS[main];[1:v]settb=1/AVTB,setpts=PTS-STARTPTS[ref];[main][ref]psnr" -f null -
+ at end example
+ at end itemize
+
@anchor{pullup}
@section pullup
@@ -16908,6 +16918,9 @@ Same as above but in dB representation.
This filter also supports the @ref{framesync} options.
+ at subsection Examples
+ at itemize
+ at item
For example:
@example
movie=ref_movie.mpg, setpts=PTS-STARTPTS [main];
@@ -16918,11 +16931,19 @@ On this example the input file being processed is compared with the
reference file @file{ref_movie.mpg}. The SSIM of each individual frame
is stored in @file{stats.log}.
+ at item
Another example with both psnr and ssim at same time:
@example
ffmpeg -i main.mpg -i ref.mpg -lavfi "ssim;[0:v][1:v]psnr" -f null -
@end example
+ at item
+Another example with different containers:
+ at example
+ffmpeg -i main.mpg -i ref.mkv -lavfi "[0:v]settb=1/AVTB,setpts=PTS-STARTPTS[main];[1:v]settb=1/AVTB,setpts=PTS-STARTPTS[ref];[main][ref]ssim" -f null -
+ at end example
+ at end itemize
+
@section stereo3d
Convert between different stereoscopic image formats.
More information about the ffmpeg-cvslog
mailing list