Web Cam on new install with big lag

Hi community - hope somebody can help
After running (and updating) a Octoprint installation for several years it was time for a new installation. Main reason was, that I could not install the USB Keyboard plugin due to the fact I still had python 2 installed. I installed the latest stable image (0.18.0) on a new SD card, no backup restored, no extra plugins installed but ran into a problem with the Webcam. It has a huge lag (20-30s). On my old setup (same HW - no changes) it used to run smoothly (but I just realized not anymore)

  • Problem exists both with Firefox and Chrome
  • Webcam: Microsoft Corp. LifeCam HD-3000
  • HW: Raspberry Pi 3 Model B Rev 1.2

Information newly installed System (problem with lagging Webcam)

browser.user_agent : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36
connectivity.connection_check : 8.8.8.8:53
connectivity.connection_ok : true
connectivity.enabled : true
connectivity.online : true
connectivity.resolution_check : octoprint.org
connectivity.resolution_ok : true
env.hardware.cores : 4
env.hardware.freq : 1200
env.hardware.ram : 915722240
env.os.bits : 32
env.os.id : linux
env.os.platform : linux
env.plugins.pi_support.model : Raspberry Pi 3 Model B Rev 1.2
env.plugins.pi_support.octopi_version : 0.18.0
env.plugins.pi_support.throttle_state : 0x50000
env.python.pip : 20.3.3
env.python.version : 3.7.3
env.python.virtualenv : true
octoprint.safe_mode : false
octoprint.version : 1.5.3
printer.firmware : Prusa-Firmware 3.7.1 based on Marlin

Information old but updated System (Webcam works slightly better but not as it used to)

browser.user_agent : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36
connectivity.connection_check : 8.8.8.8:53
connectivity.connection_ok : true
connectivity.enabled : true
connectivity.online : true
connectivity.resolution_check : octoprint.org
connectivity.resolution_ok : true
env.hardware.cores : 4
env.hardware.freq : 1200
env.hardware.ram : 918192128
env.os.bits : 32
env.os.id : linux
env.os.platform : linux2
env.plugins.pi_support.model : Raspberry Pi 3 Model B Rev 1.2
env.plugins.pi_support.octopi_version : 0.15.1
env.plugins.pi_support.throttle_state : 0x50000
env.python.pip : 9.0.3
env.python.version : 2.7.13
env.python.virtualenv : true
octoprint.safe_mode : false
octoprint.version : 1.5.3
printer.firmware : Prusa-Firmware 3.7.1 based on Marl

What did you already try to solve it?

  • Tried restore the backup -> no changes
  • Tried new installation (no backup restored, complete new system) --> no changes
  • tried to change the resolution 16:9 / 4:3 -> no change
  • checked Network connection (all wired local network), no ping losses, ping time <0.5ms
  • Tried option from this side: USB webcams known to work with mjpg-streamer --> -r HD -f 20 ... not much improvement

Have you tried running in safe mode?

yes

Did running in safe mode solve the problem?

no

Complete Logs

octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support! Not log excerpts, complete logs.)

pi@3dblue:/var/log $ journalctl -u webcamd
-- Logs begin at Thu 2016-11-03 18:16:42 CET, end at Mon 2021-04-12 23:04:11 CEST. --
Apr 12 19:47:45 3dblue systemd[1]: Starting LSB: webcam daemon...
Apr 12 19:47:46 3dblue webcamd[298]: Starting Webcam Daemon: webcamd.
Apr 12 19:47:46 3dblue systemd[1]: Started LSB: webcam daemon.
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: starting application
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: MJPG Streamer Version: git rev: 821c330ea6bbb5fbed98d48e00aac156e923161b
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: Using V4L2 device.: /dev/video0
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: Desired Resolution: 640 x 480
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: Frames Per Second.: 10
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: Format............: JPEG
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: TV-Norm...........: DEFAULT
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: www-folder-path......: ./www-octopi/
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: HTTP TCP port........: 8080
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: HTTP Listen Address..: (null)
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: username:password....: disabled
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: commands.............: disabled
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: starting input plugin input_uvc.so
Apr 12 19:47:46 3dblue mjpg_streamer[400]: MJPG-streamer [400]: starting output plugin: output_http.so (ID: 00)
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: starting application
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: MJPG Streamer Version: git rev: 821c330ea6bbb5fbed98d48e00aac156e923161b
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: Using V4L2 device.: /dev/video0
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: Desired Resolution: 640 x 480
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: Frames Per Second.: 10
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: Format............: JPEG
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: TV-Norm...........: DEFAULT
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: www-folder-path......: ./www-octopi/
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: HTTP TCP port........: 8080
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: HTTP Listen Address..: (null)
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: username:password....: disabled
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: commands.............: disabled
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: starting input plugin input_uvc.so
Apr 12 22:51:26 3dblue mjpg_streamer[695]: MJPG-streamer [695]: starting output plugin: output_http.so (ID: 00)

#######################
octoprint log:
##########################
2021-04-12 21:16:28,732 - octoprint.startup - INFO - ******************************************************************************
2021-04-12 21:16:28,735 - octoprint.startup - INFO - Starting OctoPrint 1.5.3
2021-04-12 21:16:28,736 - octoprint.startup - INFO - ******************************************************************************
2021-04-12 21:16:29,230 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity changed from offline to online
2021-04-12 21:16:29,254 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online
2021-04-12 21:16:29,254 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 8.8.8.8:53 is working
2021-04-12 21:16:29,254 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working
2021-04-12 21:16:29,618 - octoprint.startup - INFO - Blacklist processing done, adding 12 blacklisted plugin versions: roomtemp (any), GcodeEditor (0.1.1), GcodeEditor (0.2.0), GcodeEditor (0.2.1), GcodeEditor (0.2.2), GcodeEditor (0.2.3), GcodeEditor (0.2.4), GcodeEditor (0.2.5), GcodeEditor (0.2.6), GcodeEditor (0.2.8), gcodeleveling (0.1.0), gcodeleveling (0.1.1)
2021-04-12 21:16:29,673 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2021-04-12 21:16:31,020 - octoprint.startup - INFO - Added settings overlay from plugin firmware_check
2021-04-12 21:16:31,022 - octoprint.plugin.core - INFO - Found 17 plugin(s) providing 17 mixin implementations, 34 hook handlers
2021-04-12 21:16:31,181 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2021-04-12 21:16:31,191 - octoprint.server - INFO - Intermediary server started
2021-04-12 21:16:31,223 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2021-04-12 21:16:31,225 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2021-04-12 21:16:31,229 - octoprint.server - INFO - Added new permission from plugin action_command_notification: PLUGIN_ACTION_COMMAND_NOTIFICATION_SHOW (needs: "Need(method='role', value='plugin_action_command_notification_show')")
2021-04-12 21:16:31,230 - octoprint.server - INFO - Added new permission from plugin action_command_notification: PLUGIN_ACTION_COMMAND_NOTIFICATION_CLEAR (needs: "Need(method='role', value='plugin_action_command_notification_clear')")
2021-04-12 21:16:31,231 - octoprint.server - INFO - Added new permission from plugin action_command_prompt: PLUGIN_ACTION_COMMAND_PROMPT_INTERACT (needs: "Need(method='role', value='plugin_action_command_prompt_interact')")
2021-04-12 21:16:31,231 - octoprint.server - INFO - Added new permission from plugin announcements: PLUGIN_ANNOUNCEMENTS_READ (needs: "Need(method='role', value='plugin_announcements_read')")
2021-04-12 21:16:31,232 - octoprint.server - INFO - Added new permission from plugin announcements: PLUGIN_ANNOUNCEMENTS_MANAGE (needs: "Need(method='role', value='plugin_announcements_read'), Need(method='role', value='plugin_announcements_manage')")
2021-04-12 21:16:31,233 - octoprint.server - INFO - Added new permission from plugin appkeys: PLUGIN_APPKEYS_ADMIN (needs: "Need(method='role', value='plugin_appkeys_admin')")
2021-04-12 21:16:31,233 - octoprint.server - INFO - Added new permission from plugin backup: PLUGIN_BACKUP_ACCESS (needs: "Need(method='role', value='plugin_backup_access')")
2021-04-12 21:16:31,234 - octoprint.server - INFO - Added new permission from plugin firmware_check: PLUGIN_FIRMWARE_CHECK_DISPLAY (needs: "Need(method='role', value='plugin_firmware_check_display')")
2021-04-12 21:16:31,235 - octoprint.server - INFO - Added new permission from plugin logging: PLUGIN_LOGGING_MANAGE (needs: "Need(method='role', value='plugin_logging_manage')")
2021-04-12 21:16:31,237 - octoprint.server - INFO - Added new permission from plugin pi_support: PLUGIN_PI_SUPPORT_STATUS (needs: "Need(method='role', value='plugin_pi_support_check')")
2021-04-12 21:16:31,240 - octoprint.server - INFO - Added new permission from plugin pluginmanager: PLUGIN_PLUGINMANAGER_MANAGE (needs: "Need(method='role', value='plugin_pluginmanager_manage')")
2021-04-12 21:16:31,243 - octoprint.server - INFO - Added new permission from plugin pluginmanager: PLUGIN_PLUGINMANAGER_INSTALL (needs: "Need(method='role', value='plugin_pluginmanager_manage'), Need(method='role', value='plugin_pluginmanager_install')")
2021-04-12 21:16:31,245 - octoprint.server - INFO - Added new permission from plugin softwareupdate: PLUGIN_SOFTWAREUPDATE_CHECK (needs: "Need(method='role', value='plugin_softwareupdate_check')")
2021-04-12 21:16:31,247 - octoprint.server - INFO - Added new permission from plugin softwareupdate: PLUGIN_SOFTWAREUPDATE_UPDATE (needs: "Need(method='role', value='plugin_softwareupdate_update')")
2021-04-12 21:16:31,248 - octoprint.server - INFO - Added new permission from plugin softwareupdate: PLUGIN_SOFTWAREUPDATE_CONFIGURE (needs: "Need(method='role', value='plugin_softwareupdate_configure')")
2021-04-12 21:16:32,380 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python3 -m pip" as command to invoke pip
2021-04-12 21:16:33,347 - octoprint.util.pip - INFO - Version of pip is 20.3.3
2021-04-12 21:16:33,349 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python3.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2021-04-12 21:16:33,350 - octoprint.util.pip - INFO - ==> pip ok -> yes
2021-04-12 21:16:33,385 - octoprint.plugins.softwareupdate - INFO - Version cache was created for another version of OctoPrint, not using it
2021-04-12 21:16:33,416 - octoprint.plugin.core - INFO - Initialized 17 plugin implementation(s)
2021-04-12 21:16:33,434 - octoprint.plugin.core - INFO - 17 plugin(s) registered with the system:
| Action Command Notification Support (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/action_command_notification
| Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/action_command_prompt
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/announcements
| Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/tracking
| Application Keys Plugin (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/appkeys
| Backup & Restore (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/backup
| Core Wizard (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/corewizard
| Discovery (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/discovery
| Error Tracking (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/errortracking
| File Check (2021.2.23) (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint_file_check
| Firmware Check (2021.2.4) (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint_firmware_check
| GCode Viewer (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/gcodeviewer
| Logging (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/logging
| Pi Support Plugin (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/pi_support
| Plugin Manager (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/pluginmanager
| Software Update (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/softwareupdate
| Virtual Printer (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/virtual_printer
Prefix legend: ! = disabled, # = blacklisted, * = incompatible
2021-04-12 21:16:33,467 - octoprint.plugins.pi_support - WARNING - This Raspberry Pi is reporting problems that might lead to bad performance or errors caused by overheating or insufficient power.
!!! UNDERVOLTAGE REPORTED !!! Make sure that the power supply and power cable are capable of supplying enough voltage and current to your Pi.
2021-04-12 21:16:33,479 - octoprint.environment - INFO - Detected environment is Python 3.7.3 under Linux (linux). Details:
| hardware:
| cores: 4
| freq: 1200.0
| ram: 915722240
| os:
| bits: 32
| id: linux
| platform: linux
| plugins:
| pi_support:
| model: Raspberry Pi 3 Model B Rev 1.2
| octopi_version: 0.18.0
| throttle_state: '0x50000'
| python:
| pip: 20.3.3
| version: 3.7.3
| virtualenv: /home/pi/oprint
2021-04-12 21:16:33,494 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2021-04-12 21:16:33,520 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2021-04-12 21:16:34,395 - octoprint.server - INFO - Shutting down intermediary server...
2021-04-12 21:16:34,470 - octoprint.server - INFO - Intermediary server shut down
2021-04-12 21:16:34,474 - octoprint.events - INFO - Processing startup event, this is our first event
2021-04-12 21:16:34,474 - octoprint.events - INFO - Adding 2 events to queue that were held back before startup event
2021-04-12 21:16:34,475 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2021-04-12 21:16:34,490 - octoprint.server.util.watchdog - INFO - Running initial scan on watched folder...
2021-04-12 21:16:34,491 - octoprint.plugins.softwareupdate - INFO - Fetching check overlays from ....
2021-04-12 21:16:34,508 - octoprint.server.util.watchdog - INFO - ... initial scan done.
2021-04-12 21:16:34,536 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2021-04-12 21:16:34,548 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2021-04-12 21:16:35,010 - octoprint.plugins.tracking - INFO - Sent tracking event system_unthrottled, payload: {'throttled_now': False, 'throttled_past': True, 'throttled_mask': 327680, 'throttled_voltage_now': False, 'throttled_voltage_past': True, 'throttled_overheat_now': False, 'throttled_overheat_past': False}
2021-04-12 21:16:35,475 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi._http._tcp.local.' for _http._tcp.local.
2021-04-12 21:16:36,346 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi._octoprint._tcp.local.' for _octoprint._tcp.local.
2021-04-12 21:16:36,389 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2021-04-12 21:16:36,525 - octoprint.server - INFO - Listening on ......
2021-04-12 21:16:36,843 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2021-04-12 21:16:36,876 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.101
2021-04-12 21:16:37,134 - octoprint.plugins.tracking - INFO - Sent tracking event system_throttled, payload: {'throttled_now': True, 'throttled_past': True, 'throttled_mask': 327685, 'throttled_voltage_now': True, 'throttled_voltage_past': True, 'throttled_overheat_now': False, 'throttled_overheat_past': False}
2021-04-12 21:16:37,756 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python3 -m pip" as command to invoke pip
2021-04-12 21:16:37,757 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python3.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2021-04-12 21:16:37,758 - octoprint.util.pip - INFO - ==> pip ok -> yes
2021-04-12 21:16:37,887 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.101
2021-04-12 21:16:38,274 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.101
2021-04-12 21:16:38,305 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2021-04-12 21:16:38,408 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.0.101
2021-04-12 21:16:38,633 - octoprint.server.util.flask - INFO - Passively logging in user bib from ::ffff:192.168.0.101
2021-04-12 21:16:38,635 - octoprint.access.users - INFO - Logged in user: bib
2021-04-12 21:16:38,782 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python3 -m pip" as command to invoke pip
2021-04-12 21:16:38,790 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python3.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2021-04-12 21:16:38,791 - octoprint.util.pip - INFO - ==> pip ok -> yes
2021-04-12 21:16:38,890 - octoprint.plugins.softwareupdate - INFO - Minimum free storage across all update relevant locations is 12.0GB. That is considered sufficient for updating.
2021-04-12 21:16:39,756 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 8}
2021-04-12 21:16:40,111 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': '.......', 'path': '/', 'query_string': 'l10n=de'}
2021-04-12 21:16:40,239 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2021-04-12 21:16:40,333 - octoprint.plugins.tracking - INFO - Sent tracking event pong, payload: {'version': '1.5.3', 'os': 'linux', 'bits': 32, 'python': '3.7.3', 'pip': '20.3.3', 'cores': 4, 'freq': 1200.0, 'ram': 915722240, 'pi_model': 'Raspberry Pi 3 Model B Rev 1.2', 'octopi_version': '0.18.0', 'plugins': ''}
2021-04-12 21:16:40,837 - octoprint.plugins.tracking - INFO - Sent tracking event startup, payload: {'version': '1.5.3', 'os': 'linux', 'bits': 32, 'python': '3.7.3', 'pip': '20.3.3', 'cores': 4, 'freq': 1200.0, 'ram': 915722240, 'pi_model': 'Raspberry Pi 3 Model B Rev 1.2', 'octopi_version': '0.18.0'}
2021-04-12 21:16:42,362 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2021-04-12 21:16:44,633 - octoprint.server.util.flask - INFO - Passively logging in user bib from ::ffff:192.168.0.101
2021-04-12 21:16:44,634 - octoprint.access.users - INFO - Logged in user: bib
2021-04-12 21:16:44,655 - octoprint.server.util.sockjs - INFO - User bib logged in on the socket from client ::ffff:192.168.0.101
2021-04-12 21:16:44,753 - octoprint.plugins.tracking - INFO - Sent tracking event system_unthrottled, payload: {'throttled_now': False, 'throttled_past': True, 'throttled_mask': 327680, 'throttled_voltage_now': False, 'throttled_voltage_past': True, 'throttled_overheat_now': False, 'throttled_overheat_past': False}
2021-04-12 21:16:47,188 - octoprint.server.util.sockjs - INFO - User bib logged in on the socket from client ::ffff:192.168.0.101
2021-04-12 21:16:58,422 - octoprint.server.preemptive_cache - INFO - ... done in 18.31s
2021-04-12 21:16:58,423 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': '...../', 'path': '/', 'query_string': 'l10n=de'}
2021-04-12 21:16:58,789 - octoprint.server.preemptive_cache - INFO - ... done in 0.37s
2021-04-12 21:16:59,783 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 13.69ms
2021-04-12 21:16:59,808 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 15.13ms
2021-04-12 21:16:59,843 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 13.79ms
2021-04-12 21:16:59,864 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 11.53ms
2021-04-12 21:16:59,901 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 11.72ms
2021-04-12 21:16:59,954 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 8.26ms
2021-04-12 21:17:00,006 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 8.25ms
2021-04-12 21:17:00,060 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 9.38ms
2021-04-12 21:17:00,103 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 8.58ms
2021-04-12 21:17:00,156 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 8.13ms
2021-04-12 21:17:09,001 - octoprint.server.util.flask - INFO - Passively logging in user bib from ::ffff:192.168.0.101
2021-04-12 21:17:09,002 - octoprint.access.users - INFO - Logged in user: bib
2021-04-12 21:17:09,146 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.0.101
2021-04-12 21:17:23,456 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.101
2021-04-12 21:17:23,547 - octoprint.server.util.flask - INFO - Passively logging in user bib from ::ffff:192.168.0.101
2021-04-12 21:17:23,548 - octoprint.access.users - INFO - Logged in user: bib
2021-04-12 21:17:25,027 - octoprint.server.util.sockjs - INFO - User bib logged in on the socket from client ::ffff:192.168.0.101
2021-04-12 21:17:31,520 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 13.76ms
2021-04-12 21:17:31,542 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 15.79ms
2021-04-12 21:17:31,606 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 11.58ms
2021-04-12 21:17:31,622 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 10.39ms
2021-04-12 21:17:31,682 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 10.21ms
2021-04-12 21:17:31,767 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 15.31ms
2021-04-12 21:17:31,822 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 10.14ms
2021-04-12 21:17:31,878 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 10.84ms
2021-04-12 21:17:31,934 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 10.59ms
2021-04-12 21:17:31,989 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 10.58ms
2021-04-12 21:18:01,501 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 16.90ms
2021-04-12 21:18:01,526 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 13.68ms
2021-04-12 21:18:01,560 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 9.15ms
2021-04-12 21:18:01,591 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 7.30ms
2021-04-12 21:18:01,665 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 7.59ms
2021-04-12 21:18:01,753 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 8.65ms
2021-04-12 21:18:01,805 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 7.74ms
2021-04-12 21:18:01,861 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 7.56ms
2021-04-12 21:18:01,915 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 7.24ms
2021-04-12 21:18:01,967 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 7.04ms
2021-04-12 21:18:31,496 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 14.93ms
2021-04-12 21:18:31,516 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 14.01ms
2021-04-12 21:18:31,584 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 8.95ms
2021-04-12 21:18:32,580 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 13.68ms
2021-04-12 21:18:32,640 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 11.60ms
2021-04-12 21:18:32,699 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 12.93ms
2021-04-12 21:18:32,757 - tornado.access - WARNING - 403 GET /api/printer (::ffff:192.168.178.249) 10.57ms
2021-04-12 21:18:32,816 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 10.81ms
2021-04-12 21:18:32,873 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 10.80ms
2021-04-12 21:18:32,929 - tornado.access - WARNING - 403 GET /api/job (::ffff:192.168.178.249) 10.44ms
2021-04-12 21:18:33,236 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial connection"
2021-04-12 21:18:33,298 - octoprint.util.comm - INFO - Serial detection: Performing autodetection with 7 port/baudrate candidates: /dev/ttyACM0@115200, /dev/ttyACM0@250000, /dev/ttyACM0@230400, /dev/ttyACM0@57600, /dev/ttyACM0@38400, /dev/ttyACM0@19200, /dev/ttyACM0@9600
2021-04-12 21:18:33,298 - octoprint.util.comm - INFO - Serial detection: Trying port /dev/ttyACM0, baudrate 115200
2021-04-12 21:18:33,299 - octoprint.util.comm - INFO - Connecting to port /dev/ttyACM0, baudrate 115200
2021-04-12 21:18:33,377 - octoprint.util.comm - INFO - Serial detection: Handshake attempt #1 with timeout 2.0s
2021-04-12 21:18:33,395 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2021-04-12 21:18:34,477 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Operational"
2021-04-12 21:18:34,541 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2021-04-12 21:18:35,580 - octoprint.util.comm - INFO - Printer reports firmware name "Prusa-Firmware 3.7.1 based on Marlin"
2021-04-12 21:18:35,963 - octoprint.plugins.tracking - INFO - Sent tracking event printer_connected, payload: {'firmware_name': 'Prusa-Firmware 3.7.1 based on Marlin', 'printer_port': 'AUTO', 'printer_baudrate': 0}

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

WRITE HERE

Does it run smoother in a separate tab? Sometimes with everything else in the OctoPrint UI, the browser skips frames. Unfortunately in many cases it's also not smart enough to skip back to live, and you end up with a delay.

You can open the webcam URL separately and test it, see what the result is.

There is a huge difference between OctoPi 0.15 and OctoPi 0.18, mostly from the base image from the Raspberry Pi Foundation. So there may be an issue somewhere.

Before doing anything else, get your system an adequate power supply, the one it has right now is not sufficient. You need to rule out this is caused by your existing undervoltage condition.

Thanks a lot for pointing this out. I exchanged the cable. New one has a lower resistance (Power supply delivers up to 4A).
Now monitoring the log file via

tail -f /home/pi/.octoprint/logs/octoprint.log |grep "UNDERVOLTAGE"

Undervoltage seems not to happen anymore (ran for several hours)

Also tried different command líne option by running mjpeg_streamer directly

./mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 15" -o "output_http.so -w ./www-octopi -n"

accessing the stream directly http:///webcam/?action=stream

Unfortunately no success...

No success, as in: still lagging, or not able to access the stream?

The URL you suggested there (http:///webcam/?action=stream) is not valid, you need the IP address or hostname part. For example, with octopi.local, it is http://octopi.local/webcam/?action=stream.

No success as in still lagging. :wink:
I'm now (presumingly) access directly the stream of mjpeg-streamer (without nginx in the middle?) via the URL http://IP:8080/?action=stream

--> no change

Additional information: I also measure network bandwith with iperf - just to make sure, got about 40Mbit...

Year - http:///webcam/?action=stream was missleading
had an

http://<ip>/webcam/?action=stream

there ... the IP which was removed