Hello all!
On my server started multiple ffmpeg processes, every process writing output from stderr and stdout to file with pipe. Something like this:
How to make this logfile "/logs/192.168.1.10/ffmpeg.log" rotatable with cleaning old ones? Server might be handling about 600 - 1000 ffmpeg processes. What kind of options in FreeBSD to do it?
On my server started multiple ffmpeg processes, every process writing output from stderr and stdout to file with pipe. Something like this:
nohup ffmpeg -nostdin -nostats -hide_banner -y -loglevel debug -threads 0 -rtsp_transport tcp -skip_initial_bytes 70000000 -analyzeduration 10000000 -i rtsp://192.168.1.10:554 -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_on_network_error 1 [some other ffmpeg parameters] -b:a:3 500k -var_stream_map 'v:0,a:0,name:1080 v:1,a:1,name:720 v:2,a:2,name:480 v:3,a:3,name:320' 2>&1 &> /logs/192.168.1.10/ffmpeg.log &
How to make this logfile "/logs/192.168.1.10/ffmpeg.log" rotatable with cleaning old ones? Server might be handling about 600 - 1000 ffmpeg processes. What kind of options in FreeBSD to do it?