1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-07-11 14:30:22 +02:00

doc/filters: add one more example for ssim/psnr

This commit is contained in:
Paul B Mahol
2019-10-25 22:35:02 +02:00
parent 9e283aa24e
commit 487a1f28e2

View File

@ -14857,6 +14857,9 @@ Maximum allowed value for each channel, and average over all
channels. channels.
@end table @end table
@subsection Examples
@itemize
@item
For example: For example:
@example @example
movie=ref_movie.mpg, setpts=PTS-STARTPTS [main]; 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 reference file @file{ref_movie.mpg}. The PSNR of each individual frame
is stored in @file{stats.log}. is stored in @file{stats.log}.
@item
Another example with different containers:
@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 -
@end example
@end itemize
@anchor{pullup} @anchor{pullup}
@section pullup @section pullup
@ -16908,6 +16918,9 @@ Same as above but in dB representation.
This filter also supports the @ref{framesync} options. This filter also supports the @ref{framesync} options.
@subsection Examples
@itemize
@item
For example: For example:
@example @example
movie=ref_movie.mpg, setpts=PTS-STARTPTS [main]; 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 reference file @file{ref_movie.mpg}. The SSIM of each individual frame
is stored in @file{stats.log}. is stored in @file{stats.log}.
@item
Another example with both psnr and ssim at same time: Another example with both psnr and ssim at same time:
@example @example
ffmpeg -i main.mpg -i ref.mpg -lavfi "ssim;[0:v][1:v]psnr" -f null - ffmpeg -i main.mpg -i ref.mpg -lavfi "ssim;[0:v][1:v]psnr" -f null -
@end example @end example
@item
Another example with different containers:
@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 -
@end example
@end itemize
@section stereo3d @section stereo3d
Convert between different stereoscopic image formats. Convert between different stereoscopic image formats.