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 luckyflyer

      Maybe a linux guy can help me out. I'm struggling (as I usually do with linux) to install ustreamer. The build for raspbian requires,

      sudo apt install libevent-dev libevent-pthreads-2.1-6-dev libjpeg8-dev uuid-dev libbsd-dev
      

      I get this error,

      E: Unable to locate package libevent-pthreads-2.1-6-dev
      E: Couldn't find any package by glob 'libevent-pthreads-2.1-6-dev'
      E: Couldn't find any package by regex 'libevent-pthreads-2.1-6-dev'
      

      I do some checking and see that 2.1.6-dev is now 2.1.8-stable so I change to,

      sudo apt install libevent-dev libevent-pthreads-2.1-8 libjpeg8-dev uuid-dev libbsd-dev
      

      and get the same error.
      What do I need to do to get this to work? Everything is up to date on the pi, Ustreamer is here.
      https://github.com/pikvm/ustreamer

      My ultimate goal is to use ustreamer along with duetlapse like here,

      @gtj0 said in DuetLapse available for Alpha testing:

      Just FYI if you need streaming as well as time lapse. I set up ustreamer as the "owner" of the camera and pointed DuetLapse at its "/snapshot" URL. That way I have both a live stream and the time lapse at the same time.

      Live stream is very helpful for me since the printer is about forty paces from my pc, thanks.

      1 Reply Last reply Reply Quote 0
      • aidarundefined
        aidar
        last edited by

        I am not linux guy but , isnt this command "sudo apt-get install ......"?

        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
        • jay_s_ukundefined
          jay_s_uk @aidar
          last edited by

          @aidar said in Need help installing ustreamer:

          I am not linux guy but , isnt this command "sudo apt-get install ......"?

          not anymore. They binned off using "-get" a while ago

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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

            I tried

            sudo apt-get install libevent-dev libevent-pthreads-2.1-8 libjpeg8-dev uuid-dev libbsd-dev
            

            and got the same error.

            1 Reply Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk
              last edited by

              have you tried without specifying a version?

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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

                Tried,

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

                got the same error.

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

                  @luckyflyer You don't have to specify libevent-pthreads. It's automatically installed when you install libevent

                  Also have you run an apt-get update lately?

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

                    @gtj0

                    Yes, pi software install was new this morning with these on a stand alone pi3B+,

                    sudo apt-get update
                    sudo apt-get upgrade
                    sudo reboot
                    

                    I want to get it right on the standalone pi before I try it on the Duet pi. I'll try just libevent.

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

                      @gtj0

                      I ran this,

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

                      and got this,

                      pi@raspberrypi:~ $ sudo apt-get install libevent libjpeg8-dev uuid-dev libbsd-dev
                      Reading package lists... Done
                      Building dependency tree
                      Reading state information... Done
                      E: Unable to locate package libevent
                      

                      I'm running the full desktop version of raspbian buster.

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

                        if you're building something you probaby need sudo apt install libevent-dev ?

                        also could you be running into ipv6 issues, every now and then my pi or debian systems insist on using ipv6 mirrors but it usually looks different. long shot, but might help someone else stumbling onto the thread https://www.vultr.com/docs/force-apt-get-to-ipv4-or-ipv6-on-ubuntu-or-debian

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

                          @bearer
                          That worked and is now installed.

                          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:

                            That worked

                            which one? >D

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

                              @bearer

                              sudo apt install libevent-dev
                              
                              1 Reply Last reply Reply Quote 0
                              • A Former User?
                                A Former User
                                last edited by

                                confused; thats what you started with after having not just skimmed the thread. gtj0 was right then

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

                                  No one is more confused than I am, lol.
                                  I think the difference is I tried this complete line

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

                                  I did not specify -dev and also yours did not have this at the end

                                  libjpeg8-dev uuid-dev libbsd-dev
                                  

                                  Man I appreciate the fact that linux is compact and efficient. But it's a real challenge to figure it out. Its very unforgiving.

                                  1 Reply Last reply Reply Quote 0
                                  • 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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA