Добавить
Уведомления

How to rotate a video | Video rotation video effect VFX #ffmpeg #TheFFMPEGGuy

Today, we show how to rotate a video, either once or continuously. Each shown command can of course be fully customized to suit your rotation needs. ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ EXAMPLE ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ ❶ Partial 90 degrees clockwise rotation → ffmpeg -i input.mp4 -vf rotate=PI/2 output01.mp4 with: * -i input.mp4 = Reads file «input.mp4» and … * -vf rotate = …calls the «rotate» video filter (vf) … * PI/2 = … that rotates the video clockwise by PI/2 radians (= 90 degrees) … * output01.mp4 = … and outputs the result to file «output01.mp4» ❷ Full video 90 degrees counterclockwise rotation → ffmpeg -i input.mp4 -vf rotate=-PI/2:720:1280 output02.mp4 with: * -i input.mp4 = Reads file «input.mp4» and … * -vf rotate = …calls the «rotate» video filter (vf) … * -PI/2 = … that rotates the video counterclockwise (-) by PI/2 radians (= 90 degrees) … * 720:1280 = … outputting the result to a video sized 720x1280 … * output02.mp4 = … and outputs the result to file «output02.mp4» ❸ Dynamic full spin → ffmpeg -i input.mp4 -vf rotate=2*PI*t:1280:720:c=white output03.mp4 with: * -i input.mp4 = Reads file «input.mp4» and … * -vf rotate = …calls the «rotate» video filter (vf) … * 2*PI*t = … that rotates the video clockwise with 1 rotation every second … * 1280:720 = … outputting the result to a video sized 1280x720 … * c=white = … with a white background and … * output03.mp4 = … and outputs the result to file «output03.mp4» ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ → Catch up with the FFMPEG guy Channel https://www.youtube.com/playlist?list=PLFJLws5_RlCuExg6UNOu3QCuP0uXZHT9o ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ MUSIC ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ → That One Bar Scene - RKVC ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ An FFMPEG question? Ask the FFMPEG guy ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ

Иконка канала JS Веб-гуру
73 подписчика
12+
18 просмотров
2 года назад
12+
18 просмотров
2 года назад

Today, we show how to rotate a video, either once or continuously. Each shown command can of course be fully customized to suit your rotation needs. ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ EXAMPLE ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ ❶ Partial 90 degrees clockwise rotation → ffmpeg -i input.mp4 -vf rotate=PI/2 output01.mp4 with: * -i input.mp4 = Reads file «input.mp4» and … * -vf rotate = …calls the «rotate» video filter (vf) … * PI/2 = … that rotates the video clockwise by PI/2 radians (= 90 degrees) … * output01.mp4 = … and outputs the result to file «output01.mp4» ❷ Full video 90 degrees counterclockwise rotation → ffmpeg -i input.mp4 -vf rotate=-PI/2:720:1280 output02.mp4 with: * -i input.mp4 = Reads file «input.mp4» and … * -vf rotate = …calls the «rotate» video filter (vf) … * -PI/2 = … that rotates the video counterclockwise (-) by PI/2 radians (= 90 degrees) … * 720:1280 = … outputting the result to a video sized 720x1280 … * output02.mp4 = … and outputs the result to file «output02.mp4» ❸ Dynamic full spin → ffmpeg -i input.mp4 -vf rotate=2*PI*t:1280:720:c=white output03.mp4 with: * -i input.mp4 = Reads file «input.mp4» and … * -vf rotate = …calls the «rotate» video filter (vf) … * 2*PI*t = … that rotates the video clockwise with 1 rotation every second … * 1280:720 = … outputting the result to a video sized 1280x720 … * c=white = … with a white background and … * output03.mp4 = … and outputs the result to file «output03.mp4» ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ → Catch up with the FFMPEG guy Channel https://www.youtube.com/playlist?list=PLFJLws5_RlCuExg6UNOu3QCuP0uXZHT9o ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ MUSIC ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ → That One Bar Scene - RKVC ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ An FFMPEG question? Ask the FFMPEG guy ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ

, чтобы оставлять комментарии