Need help installing ustreamer
-
You're running DuetLapse, ustreamer and DuetSoftwareFramework all on the same Pi yes?
-
Yes, same pi.
-
systemctl status,
CGroup: / ├─user.slice │ └─user-1000.slice │ ├─session-c3.scope │ │ ├─8794 sshd: pi [priv] │ │ ├─8805 sshd: pi@pts/1 │ │ ├─8808 -bash │ │ ├─9859 systemctl status │ │ └─9860 pager │ ├─session-c6.scope │ │ ├─9742 sshd: pi [priv] │ │ ├─9753 sshd: pi@pts/2 │ │ ├─9756 -bash │ │ ├─9827 python3 ./DuetLapse.py -camera web -weburl http://localhost:8080/stream -duet localhost -seconds 5 -detect none │ │ ├─9838 /bin/sh -c wget --auth-no-challenge -nv -O /tmp/DuetLapse/IMG00000001.jpeg "http://localhost:8080/stream" │ │ └─9839 wget --auth-no-challenge -nv -O /tmp/DuetLapse/IMG00000001.jpeg http://localhost:8080/stream │ ├─user@1000.service │ │ ├─obex.service │ │ │ └─924 /usr/lib/bluetooth/obexd │ │ ├─pulseaudio.service │ │ │ └─780 /usr/bin/pulseaudio --daemonize=no │ │ ├─gvfs-gphoto2-volume-monitor.service │ │ │ └─842 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor │ │ ├─dbus.service │ │ │ └─696 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only │ │ ├─gvfs-udisks2-volume-monitor.service │ │ │ └─832 /usr/lib/gvfs/gvfs-udisks2-volume-monitor │ │ ├─gvfs-mtp-volume-monitor.service │ │ │ └─838 /usr/lib/gvfs/gvfs-mtp-volume-monitor │ │ ├─gvfs-goa-volume-monitor.service │ │ │ └─852 /usr/lib/gvfs/gvfs-goa-volume-monitor │ │ ├─gvfs-afc-volume-monitor.service │ │ │ └─847 /usr/lib/gvfs/gvfs-afc-volume-monitor │ │ ├─init.scope │ │ │ ├─616 /lib/systemd/systemd --user │ │ │ └─619 (sd-pam) │ │ └─gvfs-daemon.service │ │ ├─719 /usr/lib/gvfs/gvfsd │ │ ├─724 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes │ │ └─860 /usr/lib/gvfs/gvfsd-trash --spawner :1.4 /org/gtk/gvfs/exec_spaw/0 │ ├─session-c1.scope │ │ ├─ 607 lightdm --session-child 14 17 │ │ ├─ 683 /usr/bin/lxsession -s LXDE -e LXDE │ │ ├─ 712 /usr/bin/ssh-agent x-session-manager │ │ ├─ 735 openbox --config-file /home/pi/.config/openbox/lxde-rc.xml │ │ ├─ 737 lxpolkit │ │ ├─ 740 lxpanel --profile LXDE │ │ ├─ 741 pcmanfm --desktop --profile LXDE │ │ ├─ 744 /bin/bash /usr/bin/launch-dwc │ │ ├─ 748 /usr/lib/chromium-browser/chromium-browser-v7 --disable-quic --enable-tcp-fast-open --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-a │ │ ├─ 750 /usr/bin/ssh-agent -s │ │ ├─ 752 /usr/bin/python3 /usr/bin/blueman-applet
Net stat partial,
pi@duet3:~ $ netstat -a less Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:http-alt 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN tcp 0 0 localhost:ipp 0.0.0.0:* LISTEN tcp 0 0 localhost:33497 localhost:46644 ESTABLISHED tcp 0 0 192.168.0.181:http-alt 192.168.0.100:62936 ESTABLISHED tcp 0 0 192.168.0.181:ssh 192.168.0.100:63776 ESTABLISHED tcp 580 0 192.168.0.181:41818 dfw25s26-in-f14.1:https ESTABLISHED tcp 0 0 192.168.0.181:ssh 192.168.0.100:54678 ESTABLISHED tcp 0 0 192.168.0.181:53956 dfw25s27-in-f3.1e:https TIME_WAIT tcp 0 0 192.168.0.181:41816 dfw25s26-in-f14.1:https ESTABLISHED tcp 0 0 localhost:51108 localhost:http-alt TIME_WAIT tcp 0 0 localhost:46644 localhost:33497 ESTABLISHED tcp 0 0 192.168.0.181:5900 192.168.0.100:63153 ESTABLISHED tcp 0 256 192.168.0.181:ssh 192.168.0.100:63873 ESTABLISHED tcp 0 0 192.168.0.181:ssh 192.168.0.100:63001 ESTABLISHED tcp 0 9 localhost:35552 duet3:http ESTABLISHED tcp6 0 0 [::]:5900 [::]:* LISTEN tcp6 0 0 [::]:http [::]:* LISTEN tcp6 0 0 [::]:ssh [::]:* LISTEN tcp6 0 0 localhost:ipp [::]:* LISTEN tcp6 0 70 192.168.0.181:http 192.168.0.100:56198 ESTABLISHED tcp6 0 0 duet3:http localhost:35552 ESTABLISHED tcp6 1 0 localhost:45790 localhost:ipp CLOSE_WAIT tcp6 1 0 localhost:45788 localhost:ipp CLOSE_WAIT udp 0 0 0.0.0.0:38957 0.0.0.0:* udp 0 0 0.0.0.0:bootpc 0.0.0.0:* udp 0 0 0.0.0.0:ipp 0.0.0.0:* udp 0 0 224.0.0.251:mdns 0.0.0.0:* udp 0 0 224.0.0.251:mdns 0.0.0.0:* udp 0 0 0.0.0.0:mdns 0.0.0.0:* udp6 0 0 [::]:43679 [::]:* udp6 0 0 [::]:mdns [::]:* raw6 0 0 [::]:ipv6-icmp [::]:*
I apologize, I'm not able to gather any useful information from this , Hopefully others can.
-
@luckyflyer ustreamer isn't started. You'd see
0.0.0.0:8080
in the local address column.So again, run
sudo journalctl -fu ustreamer@video0
on one window and in another runsudo systemctl stop ustreamer@video0
thensudo systemctl enable ustreamer@video0
, thensudo systemctl start ustreamer@video0
Now check what journalctl is telling you and run
sudo netstat -antp
. -
@gtj0 said in Need help installing ustreamer:
You'd see 0.0.0.0:8080 in the local address column.
he ran netstat without any options ( -n ), so 0.0.0.0:http-alt would be 0.0.0.0:8080
(I guess i'll be more specific next time)
-
Ran all commands,
pi@duet3:~ $ sudo systemctl stop ustreamer@video0 pi@duet3:~ $ sudo systemctl enable ustreamer@video0 pi@duet3:~ $ sudo systemctl start ustreamer@video0 pi@duet3:~ $ sudo netstat -antp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 465/vncserver-x11-c tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1725/ustreamer tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 485/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 376/cupsd tcp 0 0 127.0.0.1:36329 127.0.0.1:36054 ESTABLISHED 790/vncserverui tcp 0 0 192.168.0.181:22 192.168.0.100:53077 ESTABLISHED 1472/sshd: pi [priv tcp 0 280040 192.168.0.181:8080 192.168.0.100:53229 ESTABLISHED 1725/ustreamer tcp 0 0 127.0.0.1:36054 127.0.0.1:36329 ESTABLISHED 465/vncserver-x11-c tcp 0 0 192.168.0.181:22 192.168.0.100:53112 ESTABLISHED 1558/sshd: pi [priv tcp 0 208 192.168.0.181:22 192.168.0.100:53086 ESTABLISHED 1523/sshd: pi [priv tcp 0 0 127.0.0.1:51236 127.0.1.1:80 ESTABLISHED 932/chromium-browse tcp6 0 0 :::5900 :::* LISTEN 465/vncserver-x11-c tcp6 0 0 :::80 :::* LISTEN 453/DuetWebServer tcp6 0 0 :::22 :::* LISTEN 485/sshd tcp6 0 0 ::1:631 :::* LISTEN 376/cupsd tcp6 0 0 192.168.0.181:80 192.168.0.100:53121 TIME_WAIT - tcp6 1 0 ::1:36158 ::1:631 CLOSE_WAIT 442/cups-browsed tcp6 1 0 ::1:36156 ::1:631 CLOSE_WAIT 442/cups-browsed tcp6 0 0 127.0.1.1:80 127.0.0.1:51236 ESTABLISHED 453/DuetWebServer tcp6 0 0 192.168.0.181:80 192.168.0.100:52855 ESTABLISHED 453/DuetWebServer pi@duet3:~ $
This is what I have,
This is what Duetlapse returnedpi@duet3:~ $ ./DuetLapse.py -camera web -weburl http://localhost:8080/stream -du et localhost -seconds 5 -detect none Attempting to connect to printer at localhost Connected to a Duet V3 printer at http://localhost ################################## # Options in force for this run: # # camera = web # # printer = localhost # # seconds = 5.0 # # detect = none # # pause = no # # camparms = # # vidparms = # # movehead = 0.00 0.00 # # dontwait = False # ################################## Waiting for print to start on printer localhost Will take pictures when printing starts, and make video when printing ends. Or, press Ctrl+C one time to move directly to conversion step. Print start sensed. End of print will be sensed, and frames will be converted into video. Or, press Ctrl+C one time to move directly to conversion step. Capturing frame 0 after 27.95 seconds elapsed. failed: Connection refused.
sudo journalctl -fu ustreamer@video0
5 HW buffers, got 5 May 31 16:59:00 duet3 ustreamer[1725]: -- INFO [675.553 stream] -- Capturing started May 31 16:59:00 duet3 ustreamer[1725]: -- INFO [675.553 stream] -- Using JPE G quality: 80% May 31 16:59:00 duet3 ustreamer[1725]: -- INFO [675.553 stream] -- Creating pool with 4 workers ... May 31 16:59:00 duet3 ustreamer[1725]: -- INFO [675.554 stream] -- Capturing ... May 31 16:59:00 duet3 ustreamer[1725]: -- INFO [675.553 stream] -- Using JPE G quality: 80% May 31 16:59:00 duet3 ustreamer[1725]: -- INFO [675.553 stream] -- Creating pool with 4 workers ... May 31 16:59:00 duet3 ustreamer[1725]: -- INFO [675.554 stream] -- Capturing ... May 31 16:59:04 duet3 ustreamer[1725]: -- INFO [679.389 http] -- HTTP: Reg istered the new stream client: [192.168.0.100]:53229, id=d66596d6-6c20-427a-b97a -06b1e15307a8; clients now: 1 May 31 17:03:30 duet3 ustreamer[1725]: -- INFO [945.139 http] -- HTTP: Reg istered the new stream client: [127.0.0.1]:38592, id=3e9ec971-decd-4c3b-a7c7-c19 ee9a22261; clients now: 2 May 31 17:06:53 duet3 ustreamer[1725]: -- INFO [1148.478 http] -- HTTP: Di sconnected the stream client: [127.0.0.1]:38592; clients now: 1 May 31 17:11:37 duet3 ustreamer[1725]: -- INFO [1432.190 http] -- HTTP: Re gistered the new stream client: [127.0.0.1]:38616, id=47dbcc78-fb2f-4178-bb95-90 70175cde34; clients now: 2 May 31 17:19:21 duet3 ustreamer[1725]: -- INFO [1897.003 http] -- HTTP: Di sconnected the stream client: [127.0.0.1]:38616; clients now: 1 May 31 17:20:03 duet3 ustreamer[1725]: -- INFO [1938.732 http] -- HTTP: Re gistered the new stream client: [127.0.0.1]:38642, id=73fb5a45-3617-4d48-b9bd-96 cecb5c01a9; clients now: 2 ^C pi@duet3:~ $
But I'm getting connection refused from Duet lapse.
-
@luckyflyer OK so ustreamer is running now. I'm wondering if DuetLapse isn't connecting properly.
So now try this to see if DuetLapse can connect directly to the camera,,,
$ sudo systemctl stop ustreamer@video0 $ ./DuetLapse.py -camera usb -duet localhost -seconds 5 -dontwait -detect none
-
@luckyflyer OK, I know what the issue is... You need to use a different URL for ustreamer...
Substitute
/stream
with/snapshot
./DuetLapse.py -camera web -weburl http://localhost:8080/snapshot -duet localhost -seconds 5 -detect none
DuetLapse expects a since JPEG image, not a stream. Sorry about that.
-
@gtj0 @bearer,
I thought I had tried snapshot yesterday and it did not work, I got the same connection refused error as with streaming and aborted.
Tonight I tried it again with your exact start command. The sequence is,
Ustreamer is running,
launch Duetlapse,
start print wait for heaters to come to temp.While heaters are heating I notice that Duetlapse has not loaded either correctly or completely so I ctl C and restart. This time it loads completely . When the print starts it indicates it is grabbing a snapshot every 5 or so seconds and reports things are normal. It does this up until about the 61st snapshot. Then it starts reporting connection refused until the end of the print. When the print ends it then makes the MP4. What is really odd is that the terminal over wrote the the first 61 snapshots that had indicated that things were progressing normally with the connection refused message.
So after the print has finished I go into Duet pie to tmp to look at the snapshots thinking that there would only be 61 of them. To my surprise all 231 of them are there and they correctly show the progress of the print. The MP4 also displays the print progress correctly.
This is a head scratcher for me even with the errors being displayed in terminal it worked. I'm now wondering if I had left the first start of Duetlapse continue to run instead of aborting with ctl C would Duetlapse worked. If it does it again on a small test print I'll just let it run and see.So to conclude, it works but seems to be somewhat buggy, at least from a terminal view standpoint.
Capturing frame 0 after 5.47 seconds elapsed. failed: Connection refused. ./DuetLapse.py -camera web -weburl http://localhost:8080/snapshot -duet localhost -seconds 5 -detect none ^C Now making 1 frames into a video at 10 frames per second. Video processing complete. Video file is in home directory, named ~/DuetLapse0531202051.mp4 pi@duet3:~ $ ./DuetLapse.py -camera web -weburl http://localhost:8080/snapshot -duet localhost -seconds 5 -detect none Attempting to connect to printer at localhost Connected to a Duet V3 printer at http://localhost ################################## # Options in force for this run: # # camera = web # # printer = localhost # # seconds = 5.0 # # detect = none # # pause = no # # camparms = # # vidparms = # # movehead = 0.00 0.00 # # dontwait = False # ################################## Waiting for print to start on printer localhost Will take pictures when printing starts, and make video when printing ends. Or, press Ctrl+C one time to move directly to conversion step. Print start sensed. End of print will be sensed, and frames will be converted into video. Or, press Ctrl+C one time to move directly to conversion step. Capturing frame 0 after 5.21 seconds elapsed. failed: Connection refused. 2020-05-31 20:51:31 URL:http://localhost:8080/snapshot [36968/36968] -> "/tmp/DuetLapse/IMG00000001.jpeg" [1] Capturing frame 1 after 5.15 seconds elapsed. failed: Connection refused. 2020-05-31 20:51:36 URL:http://localhost:8080/snapshot [37251/37251] -> "/tmp/DuetLapse/IMG00000002.jpeg" [1] Capturing frame 2 after 5.21 seconds elapsed. failed: Connection refused. 2020-05-31 20:51:41 URL:http://localhost:8080/snapshot [38061/38061] -> "/tmp/DuetLapse/IMG00000003.jpeg" [1] Capturing frame 3 after 5.15 seconds elapsed. failed: Connection refused. 2020-05-31 20:51:47 URL:http://localhost:8080/snapshot [35270/35270] -> "/tmp/DuetLapse/IMG00000004.jpeg" [1] Capturing frame 4 after 5.15 seconds elapsed. failed: Connection refused. 2020-05-31 20:51:52 URL:http://localhost:8080/snapshot [37182/37182] -> "/tmp/DuetLapse/IMG00000005.jpeg" [1] Capturing frame 5 after 5.36 seconds elapsed. failed: Connection refused. 2020-05-31 20:51:57 URL:http://localhost:8080/snapshot [38000/38000] -> "/tmp/DuetLapse/IMG00000006.jpeg" [1] Capturing frame 6 after 5.18 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:02 URL:http://localhost:8080/snapshot [35576/35576] -> "/tmp/DuetLapse/IMG00000007.jpeg" [1] Capturing frame 7 after 5.20 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:08 URL:http://localhost:8080/snapshot [36464/36464] -> "/tmp/DuetLapse/IMG00000008.jpeg" [1] Capturing frame 8 after 5.16 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:13 URL:http://localhost:8080/snapshot [37557/37557] -> "/tmp/DuetLapse/IMG00000009.jpeg" [1] Capturing frame 9 after 5.29 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:18 URL:http://localhost:8080/snapshot [36294/36294] -> "/tmp/DuetLapse/IMG00000010.jpeg" [1] Capturing frame 10 after 5.16 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:23 URL:http://localhost:8080/snapshot [36486/36486] -> "/tmp/DuetLapse/IMG00000011.jpeg" [1] Capturing frame 11 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:29 URL:http://localhost:8080/snapshot [36864/36864] -> "/tmp/DuetLapse/IMG00000012.jpeg" [1] Capturing frame 12 after 5.26 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:34 URL:http://localhost:8080/snapshot [34687/34687] -> "/tmp/DuetLapse/IMG00000013.jpeg" [1] Capturing frame 13 after 5.20 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:39 URL:http://localhost:8080/snapshot [36152/36152] -> "/tmp/DuetLapse/IMG00000014.jpeg" [1] Capturing frame 14 after 5.17 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:44 URL:http://localhost:8080/snapshot [36835/36835] -> "/tmp/DuetLapse/IMG00000015.jpeg" [1] Capturing frame 15 after 5.24 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:50 URL:http://localhost:8080/snapshot [36592/36592] -> "/tmp/DuetLapse/IMG00000016.jpeg" [1] Capturing frame 16 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:52:55 URL:http://localhost:8080/snapshot [36446/36446] -> "/tmp/DuetLapse/IMG00000017.jpeg" [1] Capturing frame 17 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:00 URL:http://localhost:8080/snapshot [36808/36808] -> "/tmp/DuetLapse/IMG00000018.jpeg" [1] Capturing frame 18 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:05 URL:http://localhost:8080/snapshot [37415/37415] -> "/tmp/DuetLapse/IMG00000019.jpeg" [1] Capturing frame 19 after 5.20 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:10 URL:http://localhost:8080/snapshot [35174/35174] -> "/tmp/DuetLapse/IMG00000020.jpeg" [1] Capturing frame 20 after 5.16 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:16 URL:http://localhost:8080/snapshot [37039/37039] -> "/tmp/DuetLapse/IMG00000021.jpeg" [1] Capturing frame 21 after 5.24 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:21 URL:http://localhost:8080/snapshot [35770/35770] -> "/tmp/DuetLapse/IMG00000022.jpeg" [1] Capturing frame 22 after 5.23 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:26 URL:http://localhost:8080/snapshot [35607/35607] -> "/tmp/DuetLapse/IMG00000023.jpeg" [1] Capturing frame 23 after 5.16 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:31 URL:http://localhost:8080/snapshot [36140/36140] -> "/tmp/DuetLapse/IMG00000024.jpeg" [1] Capturing frame 24 after 5.22 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:37 URL:http://localhost:8080/snapshot [37324/37324] -> "/tmp/DuetLapse/IMG00000025.jpeg" [1] Capturing frame 25 after 5.33 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:42 URL:http://localhost:8080/snapshot [36094/36094] -> "/tmp/DuetLapse/IMG00000026.jpeg" [1] Capturing frame 26 after 5.26 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:47 URL:http://localhost:8080/snapshot [35385/35385] -> "/tmp/DuetLapse/IMG00000027.jpeg" [1] Capturing frame 27 after 5.20 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:53 URL:http://localhost:8080/snapshot [37835/37835] -> "/tmp/DuetLapse/IMG00000028.jpeg" [1] Capturing frame 28 after 5.20 seconds elapsed. failed: Connection refused. 2020-05-31 20:53:58 URL:http://localhost:8080/snapshot [36230/36230] -> "/tmp/DuetLapse/IMG00000029.jpeg" [1] Capturing frame 29 after 5.24 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:03 URL:http://localhost:8080/snapshot [36599/36599] -> "/tmp/DuetLapse/IMG00000030.jpeg" [1] Capturing frame 30 after 5.17 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:08 URL:http://localhost:8080/snapshot [37202/37202] -> "/tmp/DuetLapse/IMG00000031.jpeg" [1] Capturing frame 31 after 5.21 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:13 URL:http://localhost:8080/snapshot [36813/36813] -> "/tmp/DuetLapse/IMG00000032.jpeg" [1] Capturing frame 32 after 5.25 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:19 URL:http://localhost:8080/snapshot [35596/35596] -> "/tmp/DuetLapse/IMG00000033.jpeg" [1] Capturing frame 33 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:24 URL:http://localhost:8080/snapshot [37521/37521] -> "/tmp/DuetLapse/IMG00000034.jpeg" [1] Capturing frame 34 after 5.22 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:29 URL:http://localhost:8080/snapshot [35888/35888] -> "/tmp/DuetLapse/IMG00000035.jpeg" [1] Capturing frame 35 after 5.20 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:34 URL:http://localhost:8080/snapshot [36722/36722] -> "/tmp/DuetLapse/IMG00000036.jpeg" [1] Capturing frame 36 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:40 URL:http://localhost:8080/snapshot [37791/37791] -> "/tmp/DuetLapse/IMG00000037.jpeg" [1] Capturing frame 37 after 5.21 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:45 URL:http://localhost:8080/snapshot [36483/36483] -> "/tmp/DuetLapse/IMG00000038.jpeg" [1] Capturing frame 38 after 5.21 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:50 URL:http://localhost:8080/snapshot [34874/34874] -> "/tmp/DuetLapse/IMG00000039.jpeg" [1] Capturing frame 39 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:54:55 URL:http://localhost:8080/snapshot [36506/36506] -> "/tmp/DuetLapse/IMG00000040.jpeg" [1] Capturing frame 40 after 5.23 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:01 URL:http://localhost:8080/snapshot [37586/37586] -> "/tmp/DuetLapse/IMG00000041.jpeg" [1] Capturing frame 41 after 5.23 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:06 URL:http://localhost:8080/snapshot [37439/37439] -> "/tmp/DuetLapse/IMG00000042.jpeg" [1] Capturing frame 42 after 5.28 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:11 URL:http://localhost:8080/snapshot [35734/35734] -> "/tmp/DuetLapse/IMG00000043.jpeg" [1] Capturing frame 43 after 5.20 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:16 URL:http://localhost:8080/snapshot [37531/37531] -> "/tmp/DuetLapse/IMG00000044.jpeg" [1] Capturing frame 44 after 5.29 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:22 URL:http://localhost:8080/snapshot [36796/36796] -> "/tmp/DuetLapse/IMG00000045.jpeg" [1] Capturing frame 45 after 5.17 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:27 URL:http://localhost:8080/snapshot [36077/36077] -> "/tmp/DuetLapse/IMG00000046.jpeg" [1] Capturing frame 46 after 5.17 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:32 URL:http://localhost:8080/snapshot [37227/37227] -> "/tmp/DuetLapse/IMG00000047.jpeg" [1] Capturing frame 47 after 5.25 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:37 URL:http://localhost:8080/snapshot [37333/37333] -> "/tmp/DuetLapse/IMG00000048.jpeg" [1] Capturing frame 48 after 5.25 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:43 URL:http://localhost:8080/snapshot [36256/36256] -> "/tmp/DuetLapse/IMG00000049.jpeg" [1] Capturing frame 49 after 5.22 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:48 URL:http://localhost:8080/snapshot [36174/36174] -> "/tmp/DuetLapse/IMG00000050.jpeg" [1] Capturing frame 50 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:53 URL:http://localhost:8080/snapshot [38207/38207] -> "/tmp/DuetLapse/IMG00000051.jpeg" [1] Capturing frame 51 after 5.28 seconds elapsed. failed: Connection refused. 2020-05-31 20:55:59 URL:http://localhost:8080/snapshot [35222/35222] -> "/tmp/DuetLapse/IMG00000052.jpeg" [1] Capturing frame 52 after 5.18 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:04 URL:http://localhost:8080/snapshot [36233/36233] -> "/tmp/DuetLapse/IMG00000053.jpeg" [1] Capturing frame 53 after 5.24 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:09 URL:http://localhost:8080/snapshot [37362/37362] -> "/tmp/DuetLapse/IMG00000054.jpeg" [1] Capturing frame 54 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:14 URL:http://localhost:8080/snapshot [37556/37556] -> "/tmp/DuetLapse/IMG00000055.jpeg" [1] Capturing frame 55 after 5.19 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:20 URL:http://localhost:8080/snapshot [36674/36674] -> "/tmp/DuetLapse/IMG00000056.jpeg" [1] Capturing frame 56 after 5.28 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:25 URL:http://localhost:8080/snapshot [36470/36470] -> "/tmp/DuetLapse/IMG00000057.jpeg" [1] Capturing frame 57 after 5.23 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:30 URL:http://localhost:8080/snapshot [35404/35404] -> "/tmp/DuetLapse/IMG00000058.jpeg" [1] Capturing frame 58 after 5.22 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:35 URL:http://localhost:8080/snapshot [36417/36417] -> "/tmp/DuetLapse/IMG00000059.jpeg" [1] Capturing frame 59 after 5.20 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:41 URL:http://localhost:8080/snapshot [36323/36323] -> "/tmp/DuetLapse/IMG00000060.jpeg" [1] Capturing frame 60 after 5.28 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:46 URL:http://localhost:8080/snapshot [37183/37183] -> "/tmp/DuetLapse/IMG00000061.jpeg" [1] Capturing frame 61 after 5.22 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:51 URL:http://localhost:8080/snapshot [36991/36991] -> "/tmp/DuetLapse/IMG00000062.jpeg" [1] Capturing frame 62 after 5.24 seconds elapsed. failed: Connection refused. 2020-05-31 20:56:56 URL:http://localhost:8080/snapshot [36436/36436] -> "/tmp/DuetLapse/IMG00000063.jpeg" [1] Capturing frame 63 after 5.26 seconds elapsed. failed: Connection refused. Capturing frame 209 after 5.38 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:03 URL:http://localhost:8080/snapshot [37650/37650] -> "/tmp/DuetLapse/IMG00000210.jpeg" [1] Capturing frame 210 after 5.40 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:09 URL:http://localhost:8080/snapshot [36749/36749] -> "/tmp/DuetLapse/IMG00000211.jpeg" [1] Capturing frame 211 after 5.37 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:14 URL:http://localhost:8080/snapshot [38441/38441] -> "/tmp/DuetLapse/IMG00000212.jpeg" [1] Capturing frame 212 after 5.31 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:19 URL:http://localhost:8080/snapshot [37230/37230] -> "/tmp/DuetLapse/IMG00000213.jpeg" [1] Capturing frame 213 after 5.40 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:25 URL:http://localhost:8080/snapshot [36194/36194] -> "/tmp/DuetLapse/IMG00000214.jpeg" [1] Capturing frame 214 after 5.41 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:30 URL:http://localhost:8080/snapshot [37734/37734] -> "/tmp/DuetLapse/IMG00000215.jpeg" [1] Capturing frame 215 after 5.46 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:36 URL:http://localhost:8080/snapshot [37454/37454] -> "/tmp/DuetLapse/IMG00000216.jpeg" [1] Capturing frame 216 after 5.31 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:41 URL:http://localhost:8080/snapshot [36840/36840] -> "/tmp/DuetLapse/IMG00000217.jpeg" [1] Capturing frame 217 after 5.41 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:46 URL:http://localhost:8080/snapshot [35435/35435] -> "/tmp/DuetLapse/IMG00000218.jpeg" [1] Capturing frame 218 after 5.45 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:52 URL:http://localhost:8080/snapshot [35467/35467] -> "/tmp/DuetLapse/IMG00000219.jpeg" [1] Capturing frame 219 after 5.33 seconds elapsed. failed: Connection refused. 2020-05-31 21:10:57 URL:http://localhost:8080/snapshot [35740/35740] -> "/tmp/DuetLapse/IMG00000220.jpeg" [1] Capturing frame 220 after 5.43 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:03 URL:http://localhost:8080/snapshot [35546/35546] -> "/tmp/DuetLapse/IMG00000221.jpeg" [1] Capturing frame 221 after 5.42 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:08 URL:http://localhost:8080/snapshot [36889/36889] -> "/tmp/DuetLapse/IMG00000222.jpeg" [1] Capturing frame 222 after 5.38 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:14 URL:http://localhost:8080/snapshot [34566/34566] -> "/tmp/DuetLapse/IMG00000223.jpeg" [1] Capturing frame 223 after 5.37 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:19 URL:http://localhost:8080/snapshot [36918/36918] -> "/tmp/DuetLapse/IMG00000224.jpeg" [1] Capturing frame 224 after 5.40 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:24 URL:http://localhost:8080/snapshot [36146/36146] -> "/tmp/DuetLapse/IMG00000225.jpeg" [1] Capturing frame 225 after 5.34 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:30 URL:http://localhost:8080/snapshot [36890/36890] -> "/tmp/DuetLapse/IMG00000226.jpeg" [1] Capturing frame 226 after 5.38 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:35 URL:http://localhost:8080/snapshot [35081/35081] -> "/tmp/DuetLapse/IMG00000227.jpeg" [1] Capturing frame 227 after 5.40 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:41 URL:http://localhost:8080/snapshot [35125/35125] -> "/tmp/DuetLapse/IMG00000228.jpeg" [1] Capturing frame 228 after 5.39 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:46 URL:http://localhost:8080/snapshot [34728/34728] -> "/tmp/DuetLapse/IMG00000229.jpeg" [1] Capturing frame 229 after 5.40 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:52 URL:http://localhost:8080/snapshot [35264/35264] -> "/tmp/DuetLapse/IMG00000230.jpeg" [1] Capturing frame 230 after 5.41 seconds elapsed. failed: Connection refused. 2020-05-31 21:11:57 URL:http://localhost:8080/snapshot [35933/35933] -> "/tmp/DuetLapse/IMG00000231.jpeg" [1] Now making 231 frames into a video at 10 frames per second. Video processing complete. Video file is in home directory, named ~/DuetLapse0531202112.mp4 pi@duet3:~ $
And thanks for all of your efforts on this, it is appreciated.
-
@luckyflyer Glad to help!
-
@luckyflyer said in Need help installing ustreamer:
@gtj0 @bearer,
I thought I had tried snapshot yesterday and it did not work, I got the same connection refused error as with streaming and aborted....
So to conclude, it works but seems to be somewhat buggy, at least from a terminal view standpoint.
Capturing frame 0 after 5.21 seconds elapsed. failed: Connection refused. 2020-05-31 20:51:31 URL:http://localhost:8080/snapshot [36968/36968] -> "/tmp/DuetLapse/IMG00000001.jpeg" [1] Capturing frame 1 after 5.15 seconds elapsed. failed: Connection refused.
@luckyflyer - I'm just setting up
ustreamer
andDuetLapse
as well. If you replacelocalhost
with the assigned DNS name for your Pi, the error will go away. You could also use the IP address.It has something to do with how the
wget
command parses its arguments. https://en.wikipedia.org/wiki/WgetFor example:
./DuetLapse.py -duet railcore.localdomain -camera web -weburl http://octocore.localdomain:8081/snapshot -detect none -dontwait -seconds 2
John