WEEE-Open / weeelab-telegram-bot

Telegram bot for querying the weeelab log and some additional cool stuff.
GNU General Public License v3.0
8 stars 4 forks source link

Suppress stderr when VLC can't open a window #48

Closed e-caste closed 4 years ago

e-caste commented 4 years ago

Like this:

[6a024940] gl vout display error: parent window not available
[6a024940] gles2 vout display error: parent window not available
[6a024940] xcb vout display error: window not available
[6a024940] xcb vout display error: window not available
[6a024940] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device)
[6a0371f8] main video output error: video output creation failed
[6d8646d0] main decoder error: failed to create video output
[h264 @ 0x88f220] get_buffer() failed
[h264 @ 0x88f220] thread_get_buffer() failed
[h264 @ 0x88f220] decode_slice_header error
[h264 @ 0x88f220] no frame!
e-caste commented 4 years ago

This is done by passing '-q' to the Instance constructor in stream_yt_audio.py and by adding an empty environment variable for Environment="XDG_RUNTIME_DIR=" in the bot service. Closing.