Scaling Down Video Size
ffmpeg -i /home/vids/vid.mp4 -vf "[in] scale=1280:720, fps=fps=8" /home/vids/vid_sml.mp4
Many times, video hosting sites have limits to how large a video is. Also, we may want to use lighterweight videos for components in our sites. Here is some code that can help your downscale your video dimensions and frame rate:
Downsizes the framerate to 8fps and scales down to 1280×720. Shaved 90% of size of video at 24fps 1920×1080