Even with --verbose 0 vlc produces non-error output
I am running vlc from cron to capture a camera's video-feed for two hours per day. Unless there is an error of some kind, I don't want to receive an e-mail from cron.
Unfortunately, even if verbosity is explicitly set to 0:
vlc -I dummy --verbose 0 --run-time=7200 rtsp://user:passwd@cam-kitchen/nphMpeg4/g726-640x480 --sout "#transcode{acodec=mp3}:std{access=file,mux=mp4,dst=kitchen-date +%A
.mp4}" vlc://quit
vlc still finds something to say:
VLC media player 1.1.10 The Luggage (revision exported)
Blocked: call to setlocale(0, "")
Blocked: call to setlocale(0, "")
Blocked: call to setlocale(0, "")
Blocked: call to setlocale(0, "")
Blocked: call to setlocale(0, "")
[0x822647370] main interface error: no suitable interface module
[0x80121c1b0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x822647370] dummy interface: using the dummy interface module...
[0x8244f4d70] dummy demux: command `quit'
It ought to be possible to make it silent, unless an error occurs. In fact, unless an increased verbosity is explicitly requested, a Unix program must be silent by default. See Eric Raymond's "Rule of Silence":
- When a program has nothing surprising to say, it should say nothing.