Write a simple python script using these 2 commands for a video file.

Python

Video file script

Write a simple python script using these 2 commands for a video file

  1. $ ffmpeg -i video.mp4 video.avi
  2. $ ffmpeg -i input.mp4 -filter:v scale=1280:720 -c:a copy output.mp4