OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9959a76
)
vf_pad: add an example employing the sar variable
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Sat, 30 Jul 2011 16:23:24 +0000
(18:23 +0200)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Sat, 30 Jul 2011 16:31:10 +0000
(18:31 +0200)
doc/filters.texi
patch
|
blob
|
history
diff --git
a/doc/filters.texi
b/doc/filters.texi
index
68a82b7
..
2747402
100644
(file)
--- 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"