2>
- ругается Unable to find a suitable output format for '2>'#!/bin/bash
cmd="ffmpeg -re -i "xx.m3u8" -c:v copy -c:a aac -b:a 128k -ac 2 -strict -2 -f flv rtmp://localhost:1935/hls/home5 2> /var/log/nginx/home5.log"
$cmd
until $cmd ; do
echo "restarting ffmpeg command..."
sleep 2
done
function myfunc {
ffmpeg ... >> out.log
}