rescale_video
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| rescale_video [2017/08/17 18:08] – created walkeradmin | rescale_video [2017/08/17 18:14] (current) – walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Rescale Video ====== | ====== Rescale Video ====== | ||
| + | <color # | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | ---- | ||
| + | As well as transcoding video, we can rescale video, handy for converting HD to SD or UHD to HD. Rescaling can be done when transcoding, | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | This is how to rescale the video, where you specify the framesize: | ||
| + | \\ | ||
| + | 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.1502993332.txt.gz · Last modified: (external edit)
