Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
41317da3
Commit
41317da3
authored
Feb 19, 2018
by
Tomas Härdin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -vf scale example for making pixels square
This is a common use case.
parent
fd76e7be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
filters.texi
doc/filters.texi
+13
-0
No files found.
doc/filters.texi
View file @
41317da3
...
@@ -13721,6 +13721,19 @@ keeping the same aspect ratio as the input:
...
@@ -13721,6 +13721,19 @@ keeping the same aspect ratio as the input:
@example
@example
scale=w='min(500\, iw*3/2):h=-1'
scale=w='min(500\, iw*3/2):h=-1'
@end example
@end example
@item
Make pixels square by combining scale and setsar:
@example
scale='trunc(ih*dar):ih',setsar=1/1
@end example
@item
Make pixels square by combining scale and setsar,
making sure the resulting resolution is even (required by some codecs):
@example
scale='trunc(ih*dar/2)*2:trunc(ih/2)*2',setsar=1/1
@end example
@end itemize
@end itemize
@subsection Commands
@subsection Commands
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment