asmirnou / watsor

Object detection for video surveillance
MIT License
252 stars 32 forks source link

Broken Pipe #12

Closed Eeeeeediot closed 3 years ago

Eeeeeediot commented 4 years ago

Hi,

Running the 64bit Pi4 addon on a Pi4 with Coral USB. I get the error below on startup or somtimes soon afterwards. The metrics then all report 0 and there is no camera feed on the Ui page.

mount: /tmp/tmpmount/console: special device /dev/console does not exist.
umount: /dev: target is busy.
MainThread       werkzeug                 INFO    : Listening on ('0.0.0.0', 8080)
MainThread       root                     INFO    : Starting Watsor on bf72466c-watsor.pi4 with PID 7
front            FFmpegDecoder            INFO    : av_interleaved_write_frame(): Broken pipe
front            FFmpegDecoder            INFO    :     Last message repeated 61 times
front            FFmpegDecoder            INFO    : Error writing trailer of pipe:: Broken pipe
asmirnou commented 4 years ago

The first two lines about mounting can be ignored as it doesn't affect the application.

Error writing trailer of pipe:: Broken pipe

This is most probably due to incorrect configuration of the FFmpeg encoder. First of all, do you really need it? The encoder is optional and the entire section can be excluded from the config. If you need to record the video, check that output option of the camera is set. To broadcast the video stream check that -f mpegts command line flags are specified for FFmpeg encoder. To say more, post your config file here, sanitized if necessary.

asmirnou commented 3 years ago

Feel free to reopen if it is still actual.