summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-30 18:23:24 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-30 18:31:10 +0200
commit3b5ddf07c0c4ab6a0d347d92ff8d9cfbac6b66ed (patch)
tree136d82ca4fe44cd2c9e001f2833a299223b971f4 /doc
parent9959a76782861a438f5a007086509bbc507022d8 (diff)
downloadffmpeg-3b5ddf07c0c4ab6a0d347d92ff8d9cfbac6b66ed.tar.gz
vf_pad: add an example employing the sar variable
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 68a82b79e8..27474024a9 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1264,6 +1264,12 @@ pad="max(iw\,ih):ow:(ow-iw)/2:(oh-ih)/2"
# pad the input to get a final w/h ratio of 16:9
pad="ih*16/9:ih:(ow-iw)/2:(oh-ih)/2"
+# for anamorphic video, in order to set the output display aspect ratio,
+# it is necessary to use sar in the expression, according to the relation:
+# (ih * X / ih) * sar = output_dar
+# X = output_dar / sar
+pad="ih*16/9/sar:ih:(ow-iw)/2:(oh-ih)/2"
+
# double output size and put the input video in the bottom-right
# corner of the output padded area
pad="2*iw:2*ih:ow-iw:oh-ih"