[FFmpeg-user] Stream to UDP and record log file only with some errors

Raúl Mansilla raul.mansilla at overon.es
Fri May 30 17:18:11 CEST 2014


Hello,

 

I´m using blackdetect and silencedetect filters for logging video and audio
failures and help me to raise an alarm in a monitoring system, so for that
purpose I´m redirecting the logs to a file that will only write what I´m
GREPing....but it doesn´t work as I can´t get nothing to be written....any
suggestion?

 

I´ve tested with:

 

-f mpegts -mpegts_flags resend_headers -flags cgop -sc_threshold 1000000000
-movflags +faststart -f mpegts -muxrate 6M
"udp://224.168.223.202:2010&buffer_size=1131250" 2>&1 >/dev/null | grep
blackdetect | tee /home/ffmpeg/errors.txt

 

And

 

-f mpegts -mpegts_flags resend_headers -flags cgop -sc_threshold 1000000000
-movflags +faststart -f mpegts -muxrate 6M
"udp://224.168.223.202:2010&buffer_size=1131250" 2>&1 >/dev/null | grep
blackdetect > /home/ffmpeg/errors.txt

 

The only thing I´ve achived is create errors.txt file :-(

	

Thanks!

Raúl.

 

 



More information about the ffmpeg-user mailing list