How to completely disable vlc output from bash script?

I have a script that I wrote for myself, and it uses vlc somewhere near the end, and I need it to stop outputting anything that it wants, but keep my own outputs (so there is no β€œclear”) .

I used the options: "-q" and "--no-sout-x264-quiet", but to no avail, it still displays ugly msgs, that is: "Warning: call to rand ()" and "Blocked: ... "and" Gtk-WARNING ** ... "

I tried redirecting 'vlc ...> err.log', it will not help ...

(change [forgot to add]: redirecting '>' does not work, file is empty)

I searched in vlc -H, but its massive is> 20 "silent" keywords, without which, it seems, they would help

Please help me: '(

+3
source share
2 answers

Normal redirection with ">" will simply redirect "standard output". You should use "2>" to redirect the "standard error" stream.

vlc .. > out.log 2> err.log
+6
source

The "great" redirection guide in bash(both STDOUT and STDERR) can be found here

+2
source

All Articles