Video Stream halts after 9 mins

Hi,

I am using the latest AstroPi image (0.10.1) hosted on a Raspberry Pi 2 B, connected to a Vellerman K8200 3D printer (Marlin firmware). I use a Chrome browser to access the AstroPi. The video is provided by the RaspiCam. I find that when printing via the AstroPi the video feed freezes after 9 minutes (9min 9 second actually). I can restore the video feed if I refresh the browser page I then get another 9 mins of video.

I have tried Firefox but I get the same problem.

Any ideas as to why the video only works for this 9 min period?

The log file shows the following (IP address redacted):-

2016-11-11 12:03:54,301 - octoprint.server.util - INFO - New connection from client [IP address: XXX.XXX.XXX.XXX, Session id: uu7w0p_n]
2016-11-11 12:14:08,217 - octoprint.server.util - INFO - Client connection closed [Session id: uu7w0p_n]
2016-11-11 12:14:08,223 - astroprint.webrtc - INFO - There are 0 peers left.

We have inactivity timers because video takes a lot of bandwidth. Are you constantly looking at it?

Hi Daniel,

Yes, I do tend to monitor the printer constantly. I could do this OK with Octoprint, which uses a more resource heavy video streaming technology (mjpegStreamer) I believe - which I agree does cause various printer issues. I would say that the AstroPi box seems to be capable of sending the WebRTC video and operating the printer at full speed concurrently so its a shame that the video stops after approx. 10 mins…

Is there a setting in one of the configuration files that I could change to make the video constant?

Octoprint can’t send video over the Internet, only local network. The technologies used are very different.

If the window stays open, it might be a bug. We’re anyway reworking the whole video system. Let’s check again on 0.10(2)

I’m not too concerned about video over the internet, the local network is fine for me but I appreciate that others would find the facility valuable. I also noticed that Chrome and Firefox on my iPad don’t seem to support WebRTC. I look forward to trying out 0.10(2). Keep up the good work!

@James I just published an article to give people an alternative camera system based on MJPEG-Steamer. Take a look and let me know if this serves your needs:

https://astroprint.zendesk.com/hc/en-us/articles/216985186-Alternative-Camera-System-for-Raspberry-Pi

HI Daniel,

I tried the alternative video system as you suggested but I got the following error:-

Camera Error: It is not possible to get the camera capabilities…etc.

The camera settings are:-

mmal service 16.1
Raw video
Low (640 x 480)
5 FPS

my config.yaml settings are:-

camera:
size: 1280x720
source: raspicam
manager: mjpeg

Any ideas?

Jim

Oh forgot about the raspicam. I’ll need to test that next week again.

Here is the contents of the log file:-

2016-11-12 13:04:57,237 - octoprint.server - INFO - Starting AstroBox (AstroBox - v0.10(1)) - Commit (0c84836344c9f20c95582a5f703e9a1b1292b732)
2016-11-12 13:04:57,245 - astroprint.migration - INFO - Checking for settings migrations…
2016-11-12 13:04:57,247 - astroprint.migration - INFO - Performed 0 settings migrations.
2016-11-12 13:04:58,336 - astroprint.printfiles.gcode - INFO - Migrating metadata if necessary…
2016-11-12 13:04:58,338 - astroprint.printfiles.gcode - INFO - Updated 0 sets of metadata to new format
2016-11-12 13:05:03,093 - astroprint.camera.v4l2.mjpeg - INFO - MPJEG Camera Manager initialized
2016-11-12 13:05:03,310 - astroprint.network.debian - INFO - NetworkManagerEvents is listening for signals
2016-11-12 13:05:03,377 - astroprint.network.debian - INFO - Network Manager reports state: [connected_global]
2016-11-12 13:05:03,460 - astroprint.boxrouter - INFO - This box has id 4778a…
2016-11-12 13:05:03,612 - astroprint.network.debian - INFO - Active Connection is now eth0 (XXX.XXX.XXX.XXX)
2016-11-12 13:05:03,616 - astroprint.boxrouter - INFO - Device is online. Attempting to connect to box router.
2016-11-12 13:05:04,486 - astroprint.discovery - INFO - Registered astrobox for SSDP
2016-11-12 13:05:04,564 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2016-11-12 13:05:32,453 - octoprint.server.util - INFO - New connection from client [IP address: XXX.XXX.XXX.XXX, Session id: 778eufxb]

Was this resolved? I’m not having any luck with the mjpeg approach.