1
0
Fork 0

update ffmpeg

This commit is contained in:
VirtuBox 2019-10-01 18:05:49 +02:00
parent 7bbb9c3bcb
commit e21916dc2e
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 4 additions and 20 deletions

View File

@ -88,16 +88,16 @@ DD_BENCHMARK_DISK() {
ffmpeg_start_time() {
if [ "${#}" = "0" ]; then
if [ "$#" = "0" ]; then
echo "ffmpeg-cut-start <start-time> <input> <duration(optional)>"
echo ""
echo "example : ffmpeg-cut-start 00:34:24.85 file.mp4 300"
else
FFMPEG_ARGS="$1 -i \"$2\""
FFMPEG_ARGS=""
if [ -n "$3" ]; then
FFMPEG_ARGS="$FFMPEG_ARGS -t $3 -c copy -movflags +faststart ${2%.mp4}-output.mp4"
FFMPEG_ARGS="$FFMPEG_ARGS $1 -y -i \"$2\" -t $3 -c copy -movflags +faststart ${2%.mp4}-output.mp4"
else
FFMPEG_ARGS="$FFMPEG_ARGS -c copy -movflags +faststart ${2%.mp4}-output.mp4"
FFMPEG_ARGS="$FFMPEG_ARGS $1 -y -i \"$2\" -c copy -movflags +faststart \"${2%.mp4}-output.mp4\""
fi
ffmpeg -ss "$FFMPEG_ARGS"
fi
@ -286,22 +286,6 @@ _PERM_FOLDER() {
find . -type d -exec chmod "$1" {} \;
}
_FIX_NETDATA() {
echo 1 > /sys/kernel/mm/ksm/run
echo 1000 > /sys/kernel/mm/ksm/sleep_millisecs
rm -f /etc/cron.daily/netdata-updater
wget -O kickstart.sh https://my-netdata.io/kickstart.sh
chmod +x kickstart.sh
echo "Installing Netdata"
./kickstart.sh all --dont-wait --no-updates >> /tmp/ubuntu-nginx-web-server.log 2>&1
echo "Installation finished"
rm kickstart.sh
sudo sed -i 's/SEND_EMAIL="YES"/SEND_EMAIL="NO"/' /usr/lib/netdata/conf.d/health_alarm_notify.conf
sudo service netdata restart
}
_NGINX_EE() {
wget -qO /tmp/nginx-ee vtb.cx/nginx-ee