



Original article was published on ALT IT Consulting Miami. Our IT consultants can help you with any custom software or automation project. Ls -f /home/vids/*.flv | while read -r file Įcho ffmpeg -y -i $name.flv -c:v libx264 -crf 19 -strict experimental $name.mp4ĪLT IT Consulting is a full service IT services firm. In this particular example, both input output files are located in /home/vids. Once added, run update to get the ffmpeg package listing: Sudo add-apt-repository ppa:mc3man/trusty-media If you don't have FFmpeg installed, you have to run this command first to add the repository: LINUX: UBUNTU 14.04 IPTV ENCODER SCRIPT AUTO INSTALL FFMPEG AND NGINX WITH 1 CHANNEL READY TO TEST IN ONE CLICKCOMMANDLINES:rootwww: wget. FFmpeg doesn't come with Ubuntu 14.04 and a package repository needs to be added manually first. Converted videos can be moved elsewhere upon completion.Īs mentioned, we've used ffmpeg to accomplish this task, running under Ubuntu 14.04. sudo add-apt-repository ppa:archivematica/. We would like to share this small script, which our IT specialists have used for one of our video conversion projects. It parses a directory, finds all flv (Flash video) files and converts them to mp4. This script can be added to a cronjob to run on a scheduled basis. Install ffmpeg from Archivematicas PPA, which works for both Ubuntu 12.04 (precise) and Ubuntu 14.04 (trusty). FFmpeg is a command line based tools which allows to do very neat video manipulations. There are many tools, including free ones that allow for video conversion, however, many of them use GUIs and don't allow for automation of tasks.
