mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.82k stars 423 forks source link

How to remove outputs like `[NOTICE] /home/raspi/v4l2rtspserver/main.cpp:247` #329

Open fplanque opened 3 months ago

fplanque commented 3 months ago

Hello,

In addition to the normal stdout, I get "debug" info telling me the line number of each printf in the source code. See example below.

This makes things very hard to read for me.

I would imagine there is some parameter to use with cmake / when building the sever but I could not find it.

How can I remove the [NOTICE] lines?

Thank you.


Example:

[NOTICE] /home/raspi/v4l2rtspserver/main.cpp:247
    Version: 0.3.8-8-g5cf22b4 live555 version:2024.03.08
[NOTICE] /home/raspi/v4l2rtspserver/src/V4l2RTSPServer.cpp:37
    Create V4L2 Source.../dev/video1
[NOTICE] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:133
    driver:uvcvideo capabilities:84a00001 mandatory:4000001
[NOTICE] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:136
    /dev/video1 support capture
[NOTICE] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:139
    /dev/video1 support streaming
[ERROR] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:212
    /dev/video1: Cannot set pixelformat to:HEVC format is:MJPG
[ERROR] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:212
    /dev/video1: Cannot set pixelformat to:H264 format is:MJPG
[NOTICE] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:225
    /dev/video1:MJPG size:1024x768 bufferSize:1573453
[NOTICE] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:246
    fps:1/30
[NOTICE] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:247
    nbBuffer:0
[NOTICE] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:49
    Device /dev/video1
[NOTICE] /home/raspi/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:73
    Device /dev/video1 nb buffer:10
[NOTICE] /home/raspi/v4l2rtspserver/src/V4l2RTSPServer.cpp:62
    Create Source .../dev/video1
[NOTICE] /home/raspi/v4l2rtspserver/src/V4L2DeviceSource.cpp:96
    begin thread
[NOTICE] /home/raspi/v4l2rtspserver/inc/BaseServerMediaSubsession.h:49
    format:video/JPEG