Skip to content

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

@fplanque

Description

@fplanque

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions