Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Need help installing ustreamer

    Scheduled Pinned Locked Moved
    General Discussion
    8
    135
    10.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • luckyflyerundefined
      luckyflyer
      last edited by

      ok colon now gone,

      pi@duet3:~ $ ls -al /etc/systemd/system
      total 76
      drwxr-xr-x 17 root root 4096 May 31 00:25 .
      drwxr-xr-x  5 root root 4096 May 19 06:26 ..
      -rw-r--r--  1 root root 1551 Apr  7 06:06 autologin@.service
      drwxr-xr-x  2 root root 4096 May 19 07:56 basic.target.wants
      drwxr-xr-x  2 root root 4096 May 19 06:36 bluetooth.target.wants
      lrwxrwxrwx  1 root root   42 May 19 06:38 dbus-fi.w1.wpa_supplicant1.service -> /lib/systemd/system/wpa_supplicant.service
      lrwxrwxrwx  1 root root   37 May 19 06:36 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
      lrwxrwxrwx  1 root root   40 May 19 06:37 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
      lrwxrwxrwx  1 root root   45 May 19 06:26 dbus-org.freedesktop.timesync1.service -> /lib/systemd/system/systemd-timesyncd.service
      lrwxrwxrwx  1 root root   34 May 19 06:38 dhcpcd5.service -> /lib/systemd/system/dhcpcd.service
      lrwxrwxrwx  1 root root   35 May 19 07:58 display-manager.service -> /lib/systemd/system/lightdm.service
      drwxr-xr-x  2 root root 4096 May 19 06:26 getty.target.wants
      drwxr-xr-x  2 root root 4096 May 19 06:31 getty@tty1.service.d
      drwxr-xr-x  2 root root 4096 May 19 07:58 graphical.target.wants
      drwxr-xr-x  2 root root 4096 May 19 06:35 halt.target.wants
      drwxr-xr-x  2 root root 4096 May 25 20:04 multi-user.target.wants
      drwxr-xr-x  2 root root 4096 May 19 06:28 network-online.target.wants
      drwxr-xr-x  2 root root 4096 May 19 06:35 poweroff.target.wants
      drwxr-xr-x  2 root root 4096 May 19 06:38 rc-local.service.d
      drwxr-xr-x  2 root root 4096 May 19 06:35 reboot.target.wants
      drwxr-xr-x  2 root root 4096 May 19 06:36 remote-fs.target.wants
      drwxr-xr-x  2 root root 4096 May 19 08:03 sockets.target.wants
      lrwxrwxrwx  1 root root   31 May 19 06:36 sshd.service -> /lib/systemd/system/ssh.service
      drwxr-xr-x  2 root root 4096 May 19 06:36 sysinit.target.wants
      lrwxrwxrwx  1 root root   35 May 19 06:28 syslog.service -> /lib/systemd/system/rsyslog.service
      drwxr-xr-x  2 root root 4096 May 19 06:29 timers.target.wants
      -rwxr-xr-x  1 root root  217 May 30 12:24 ustreamer@.service
      pi@duet3:~ $
      
      A Former User? 1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User @luckyflyer
        last edited by

        @luckyflyer said in Need help installing ustreamer:

        ok colon now gone,

        should help, do the daemon-reload and start stuff again?

        luckyflyerundefined 1 Reply Last reply Reply Quote 0
        • luckyflyerundefined
          luckyflyer
          last edited by

          Now,

          cat /etc/systemd/system/ustreamer@.service
          

          looks like,

          pi@duet3:~ $ cat /etc/systemd/system/ustreamer@.service
          [Unit]
          Description=UStreamer for %I
          [Service]
          Type=simple
          ExecStart=/usr/local/bin/ustreamer --exit-on-parent-death -r 640x480 --static /tmp/ -d /dev/%i --host=0.0.0.0 --port=8080
          [Install]
          WantedBy=multi-user.target
          pi@duet3:~ $
          
          1 Reply Last reply Reply Quote 0
          • luckyflyerundefined
            luckyflyer @A Former User
            last edited by

            should help, do the daemon-reload and start stuff again?

            daemon-reload? Sorry 12:30 am I pretty dingy can't last much longer.

            A Former User? 1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User @luckyflyer
              last edited by

              @luckyflyer said in Need help installing ustreamer:

              should help, do the daemon-reload and start stuff again?

              daemon-reload? Sorry 12:30 am I pretty dingy can't last much longer.

              this post https://forum.duet3d.com/post/157829

              1 Reply Last reply Reply Quote 0
              • luckyflyerundefined
                luckyflyer
                last edited by

                It took it all now rebooting

                1 Reply Last reply Reply Quote 0
                • luckyflyerundefined
                  luckyflyer
                  last edited by

                  Rebooted and logged on, went to http://192.168.0.181:8080/stream but no image. When I manually start pgm image is there.

                  1 Reply Last reply Reply Quote 0
                  • A Former User?
                    A Former User @gtj0
                    last edited by

                    in Need help installing ustreamer:

                    ###  When the Pi is back up, check the status of the service...
                    $ sudo systemctl status ustreamer@video0
                    

                    anyways, i've got to see a lighthouse about a dog.

                    1 Reply Last reply Reply Quote 0
                    • luckyflyerundefined
                      luckyflyer
                      last edited by

                      It's see a man about a horse over here, anyway....

                      sudo systemctl status ustreamer@video0
                      
                      pi@duet3:~ $ sudo systemctl status ustreamer@video0
                      ● ustreamer@video0.service - UStreamer for video0
                         Loaded: loaded (/etc/systemd/system/ustreamer@.service; enabled; vendor prese
                         Active: failed (Result: exit-code) since Sun 2020-05-31 00:35:26 MDT; 9min ag
                        Process: 351 ExecStart=/usr/local/bin/ustreamer --exit-on-parent-death -r 640x
                       Main PID: 351 (code=exited, status=203/EXEC)
                      
                      May 31 00:35:25 duet3 systemd[1]: Started UStreamer for video0.
                      May 31 00:35:25 duet3 systemd[351]: ustreamer@video0.service: Failed to execute
                      May 31 00:35:25 duet3 systemd[351]: ustreamer@video0.service: Failed at step EXE
                      May 31 00:35:26 duet3 systemd[1]: ustreamer@video0.service: Main process exited,
                      May 31 00:35:26 duet3 systemd[1]: ustreamer@video0.service: Failed with result '
                      
                      pi@duet3:~ $
                      
                      A Former User? 1 Reply Last reply Reply Quote 0
                      • luckyflyerundefined
                        luckyflyer
                        last edited by luckyflyer

                        @bearer I'll pick up on it in 6 to 7 hours pretty worthless now, thanks again.

                        gtj0undefined 1 Reply Last reply Reply Quote 0
                        • gtj0undefined
                          gtj0 @luckyflyer
                          last edited by

                          @luckyflyer @bearer Well, it looks like you guys made some progress anyway. 🙂

                          ### Make sure ustreamer is where the service file thinks it is...
                          $ ls -al /usr/local/bin/ustreamer
                          ### In a separate terminal window, monitor the service.
                          $ sudo journalctl -fu ustreamer@video0
                          ### Back in the other terminal window....
                          $ sudo systemctl start ustreamer@video0
                          ### What shows up in the monitor?
                          
                          1 Reply Last reply Reply Quote 0
                          • A Former User?
                            A Former User @luckyflyer
                            last edited by

                            @luckyflyer said in Need help installing ustreamer:

                            It's see a man about a horse over here, anyway....

                            I did go see an actual lighthouse, anyways OT.

                            sadly the status output cropped all the interesting bits, but i suspect the issue is you haven't installed ustreamer to /usr/local/bin/ustreamer

                            and should change

                            @luckyflyer said in Need help installing ustreamer:

                            Line 6 ExecStart=/usr/local/bin/ustreamer --exit-on-parent-death -r 640x480 --static /tmp/ -d /dev/%i --host=0.0.0.0 --port=8080

                            to ExecStart=/home/pi/ustreamer/ustreamer --exit-on-parent-death -r 640x480 --static /tmp/ -d /dev/%i --host=0.0.0.0 --port=8080

                            or install it to /usr/local

                            gtj0undefined 1 Reply Last reply Reply Quote 0
                            • gtj0undefined
                              gtj0 @A Former User
                              last edited by

                              @bearer Now what are the odds that we'd post pretty much the same thoughts at exactly the same time after almost 7 hours????? 🙂

                              A Former User? 1 Reply Last reply Reply Quote 0
                              • A Former User?
                                A Former User @gtj0
                                last edited by A Former User

                                @gtj0 said in Need help installing ustreamer:

                                @bearer Now what are the odds that we'd post pretty much the same thoughts at exactly the same time after almost 7 hours????? 🙂

                                cant answer now on my way to buy lottery ticket 😉

                                1 Reply Last reply Reply Quote 0
                                • luckyflyerundefined
                                  luckyflyer
                                  last edited by luckyflyer

                                  My goodness, I can't believe my bloodshot eyes IT WORKS.
                                  Loaded the changes, rebooted and 192.168.0.181 popped up immediately.

                                  @bearer and @gtj0 I wish I could buy you guys your favorite beverage.
                                  Thanks for staying with it till the end, I'm taking the rest of the day off. 👏 🤙 😁

                                  1 Reply Last reply Reply Quote 1
                                  • luckyflyerundefined
                                    luckyflyer
                                    last edited by

                                    I may have spoken a little too soon. When I load @gtj0 's Duetlapse start command (I added the -dontwait so I don't need to start a print)

                                    /DuetLapse.py -camera web -weburl http://localhost:8080/stream -duet localhost -seconds 2 -detect none -dontwait
                                    

                                    I get,

                                    Capturing frame     0 after 2.70 seconds elapsed.
                                    failed: Connection refused.
                                    

                                    I played around with this a little yesterday. Duetlapse is not getting the image from

                                    localhost:8080/stream
                                    

                                    for some reason. Any thoughts on this?

                                    A Former User? gtj0undefined 2 Replies Last reply Reply Quote 0
                                    • A Former User?
                                      A Former User @luckyflyer
                                      last edited by

                                      @luckyflyer said in Need help installing ustreamer:

                                      Any thoughts on this?

                                      use the force lucky

                                      i.e. netstat and systemctl status

                                      1 Reply Last reply Reply Quote 1
                                      • gtj0undefined
                                        gtj0 @luckyflyer
                                        last edited by

                                        @luckyflyer

                                        You're running DuetLapse, ustreamer and DuetSoftwareFramework all on the same Pi yes?

                                        1 Reply Last reply Reply Quote 0
                                        • luckyflyerundefined
                                          luckyflyer
                                          last edited by

                                          Yes, same pi.

                                          1 Reply Last reply Reply Quote 0
                                          • luckyflyerundefined
                                            luckyflyer
                                            last edited by

                                            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.

                                            gtj0undefined 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA