Skip to content

Instantly share code, notes, and snippets.


Hao Wu Hao-Wu

  • Beijing
View GitHub Profile
Hao-Wu / gist:c6a3d0dbdf4ed8f34cd7b42ff7114d55
Created Feb 26, 2018
FFMPEG compress mp4 video file to specific width with the same aspect ratio
View gist:c6a3d0dbdf4ed8f34cd7b42ff7114d55
ffmpeg -i input.mp4 -vf scale=302:-1 -vcodec h264 -acodec aac output.mp4
You can’t perform that action at this time.