rescale_video
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rescale_video [2017/08/17 19:11] – walkeradmin | rescale_video [2017/08/17 19:14] – walkeradmin | ||
---|---|---|---|
Line 8: | Line 8: | ||
\\ | \\ | ||
\\ | \\ | ||
+ | |||
+ | ---- | ||
+ | |||
This is how to rescale the video, where you specify the framesize: | This is how to rescale the video, where you specify the framesize: | ||
- | \\ | ||
\\ | \\ | ||
ffmpeg -i input.mov -vf scale=320: | ffmpeg -i input.mov -vf scale=320: | ||
\\ | \\ | ||
+ | |||
+ | ---- | ||
+ | You can also rescale without specifying the exact aspect ratio, so here we have specified the width, and the height will be worked out automatically from the original aspect ratio. | ||
+ | \\ | ||
+ | ffmpeg -i input.mp4 -vf scale=320: | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | To transcode and rescale in one go, you can use the following example: | ||
+ | \\ | ||
+ | ffmpeg -i source.mov -vcodec h264 -b:v 50M -vf scale=960: | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
rescale_video.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1