I want to resize a video clip in python 2.7.
For example we give "movie.mp4" with 1080p quality The result should be "movie.mp4" with 360p quality
I Think that there should be solutions with Moviepy. If you know a solution with it.
I would be grateful if you answer me.
Here is how you resize a movie with moviepy: see the mpviepy doc here
You can also tune the quality by adding the parameter
bitrate="500k"
orbitrate="5000k"
in the last line.As said above, you could also use ffmpeg directly, it will be simpler if you just need a quick script.
Why not ffmpeg?
If you use 640:-2 then, in this example, the scale filter will preserve the aspect ratio and automatically calculate the correct height.
Look at the H.264 encoding guide for additional options.