* Fung <fungm...@qq.com> [2013-09-23 14:52]: > just install pure-ftpd and ffmpeg > > when convert *.avi to *.mp4 without reencoding in normal shell, the command > is > # ffmpeg -i inputname.avi -strict -2 -vcodec copy inputname.mp4 > > > now with pure-uploadscript , need Automatically run ffmpeg after a > successful *.avi upload , converting to *.mp4 > the ouput file name should be the same as input file name except extension > name. > > so how to wright this script ? > > ###not finish Example!!! > #! /bin/sh > /usr/local/bin/ffmpeg -i $1 -strict -2 -vcodec copy ????? > ###not finish Example!!!
/usr/local/bin/ffmpeg -i $1 -strict -2 -vcodec copy ${1%%avi}mp4 -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services GmbH, http://bsws.de, Full-Service ISP Secure Hosting, Mail and DNS Services. Dedicated Servers, Root to Fully Managed Henning Brauer Consulting, http://henningbrauer.com/