Last active
December 5, 2020 21:01
-
-
Save weavermedia/8951731 to your computer and use it in GitHub Desktop.
Quick FFMPEG test on DigitalOcean droplet.From https://www.digitalocean.com/community/articles/how-to-convert-videos-with-ffmpeg-on-centos-6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a CentOS 6.4 x64 droplet with minimal spec | |
# SSH in to new droplet | |
# Install ATRPMS Repository | |
rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms | |
rpm -ivh http://dl.atrpms.net/all/atrpms-repo-6-7.el6.x86_64.rpm | |
# Install FFMPEG | |
yum -y --enablerepo=atrpms install ffmpeg | |
# Check FFMPEG version and formats | |
ffmpeg -version | |
ffmpeg -formats | |
# Get a file | |
wget "http://domain.com/your_file.mov" | |
# Convert | |
ffmpeg -i your_file.mov your_file.webm | |
# Convert with options (MP4 experimental and 700k video bitrate) | |
ffmpeg -i your_file.mov -strict -2 -b:v 700k your_file.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment