Downscaling video from 1080p to 720p

I was searching for a single line to downscale 1080p video to 720p / H264. Here we are :

gst-launch filesrc location=in.avi ! decodebin ! videoscale ! \
video/x-raw-yuv, width=1280, height=720 ! x264enc pass=quant ! \
avimux ! filesink location=out.avi

Very good quality, work like a charm 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.