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

    Need help installing ustreamer

    Scheduled Pinned Locked Moved
    General Discussion
    8
    135
    10.9k
    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

      So my question now is have I left anything incomplete by not having this bit of code included

      libjpeg8-dev uuid-dev libbsd-dev
      
      A Former User? 1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User @luckyflyer
        last edited by

        just add them with sudo apt install libjpeg8-dev uuid-dev libbsd-dev if you don't worst thing that happens is that make fails

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

          I ran

          sudo apt-get install libjpeg8-dev uuid-dev libbsd-dev
          

          and got this,

          The following NEW packages will be installed:
            libbsd-dev libjpeg8 libjpeg8-dev
          

          Finally I think I'm getting there.

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

            Succuss, Got ustreamer to compile.

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

              I've got ustreamer compiled and it is supposed to default broadcast on http://127.0.0.1:8080
              I get,
              This site can’t be reached 127.0.0.1 refused to connect.
              This is on chrome and edge doesn't connect either. I have temporarily disabled the firewall but still no connect.
              When I try a different ip address with the start script for example 192.168.0.116:8080 I get

              ERROR [127.103 main] -- Can't bind HTTP on [192.168.0.116]:80: Cannot assign requested address
              I've tried other address's also with the same result.

              Ustreamer doesn't show anything wrong on http://127.0.0.1:8080
              below is its startup.

              pi@raspberrypi:~/ustreamer $ ./ustreamer
              -- INFO [2804.103 main] -- Installing SIGINT handler ...
              -- INFO [2804.103 main] -- Installing SIGTERM handler ...
              -- INFO [2804.103 main] -- Ignoring SIGPIPE ...
              -- INFO [2804.104 main] -- Using internal blank placeholder
              -- INFO [2804.104 main] -- Listening HTTP on [127.0.0.1]:8080
              -- INFO [2804.105 stream] -- Using V4L2 device: /dev/video0
              -- INFO [2804.105 stream] -- Using desired FPS: 0
              -- INFO [2804.105 http] -- Starting HTTP eventloop ...
              -- INFO [2804.190 stream] -- Device fd=8 opened
              -- INFO [2804.191 stream] -- Using input channel: 0
              -- INFO [2804.191 stream] -- Using TV standard: DEFAULT
              -- INFO [2804.193 stream] -- Using resolution: 640x480
              -- INFO [2804.193 stream] -- Using pixelformat: YUYV
              -- INFO [2804.195 stream] -- Using HW FPS: 0 -> 15 (coerced)
              -- INFO [2804.198 stream] -- Requested 5 HW buffers, got 5
              -- INFO [2804.202 stream] -- Capturing started
              -- INFO [2804.202 stream] -- Using JPEG quality: 80%
              -- INFO [2804.202 stream] -- Creating pool with 4 workers ...
              -- INFO [2804.202 stream] -- Capturing ...

              Help please.

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

                @luckyflyer said in Need help installing ustreamer:

                This site can’t be reached 127.0.0.1 refused to connect.

                only works on the pi, not from any other computer/device.

                @luckyflyer said in Need help installing ustreamer:

                ERROR [127.103 main] -- Can't bind HTTP on [192.168.0.116]:80: Cannot assign requested address

                dwc is probably already using port 80 so (for unknowna and unrealated reasons the script) is ignoring your :8080 somehow, should probably specify it as --host=0.0.0.0 --port=8080 to bind to all available ip addresses and port 8080?

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

                  Here's the command line I use...

                  /usr/local/bin/ustreamer -r 640x480 --static /tmp/ -m JPEG -d /dev/video0 --host=0.0.0.0 --port=8080
                  
                  1 Reply Last reply Reply Quote 0
                  • luckyflyerundefined
                    luckyflyer
                    last edited by

                    I tried chrome that's on pi (this is a standalone pi not the Duet pi) @ http://0.0.0.0:8080 and ustreamer works perfectly both snapshots and stream look good.
                    I just need to figure out why I can't get to that address with my pc.

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

                      @luckyflyer 0.0.0.0 isn't a valid IP address - won't work on your pc, surprised it works on your pi tbh.

                      but if you used --host=0.0.0.0 it would bind to all ip addresses on that host, incl 192.168.0.116, so try http://192.168.0.116:8080/ ?

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

                        I tried http://192.168.0.116:8080/ and a couple of other address's within the same range ie ending in 116, 140 and 180 on both the pc and pi and neither could connect, made sure nothing else is on that addr.

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

                          @luckyflyer what does netstat -lt4n say on the pi?

                          sudo netstat -lt4np more usefull for future ref.

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

                            @bearer said in Need help installing ustreamer:

                            netstat -lt4n

                            Active Internet connections (only servers)
                            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:22 0.0.0.0:* LISTEN

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

                              @luckyflyer would appear ustreamer isn't bound to any ports?

                              pgrep ustreamer?

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

                                @bearer said in Need help installing ustreamer:

                                pgrep ustreamer

                                Run that command?

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

                                  @luckyflyer yeah, it'll return the PID for ustreamer if its running.

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

                                    I believe I'll have a problem doing that because when ustreamer is running terminal is locked until a cont C .

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

                                      Tried it didn't work.

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

                                        Tried it on pi's terminal with ustreamer running but command did not return anything

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

                                          it wont when ustreamer isn't running, which was the goal to confirm as netstat didn't show anything bound to 8080.

                                          methinks you need to should review https://github.com/pikvm/ustreamer#tips to run this as a systemd unit

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

                                            I ssh into terminal on my pc and start ustreamer I then go in via vnc to terminal and enter pgrep ustreamer but didn't return anything.

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