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

issues installing on PI 3 B+

Scheduled Pinned Locked Moved
Third-party software
4
58
2.6k
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.
  • undefined
    sankafola @stuartofmt
    last edited by 19 Dec 2023, 19:30

    @stuartofmt

    1-am using the SKR PRO and yes running rerap

    not sure about the object model but i do have a file under the system called boards.txt

    // Board Hardware configuration file for SKR Pro
    // generated by RepRapFirmware Configuration Tool (LPC Version) v3.1.10+1-LPC
    // on Tue Dec 22 2020 13:55:26 GMT-0500 (Eastern Standard Time)

    //Note: Each line should be less than 120 characters.
    // : Unwanted options can be commented out or set to NoPin. Lines commented out will get default values
    // : for pins the default is NoPin.
    // : Values for Arrays need to be contained within { and }
    // : Comments can be defined with // or # (comments are not supported inside arrays)
    // : Each config entry must be all on a single line.

    lpc.board = biquskrpro_1.1;

    //LED blinks to indicate Platform is spinning or other diagnostic
    //Comment out or set to NoPin if not wanted.
    leds.diagnostic = NoPin;

    //Internal SDCard SPI Frequency.
    lpc.internalSDCard.spiFrequencyHz = 25000000;

    //Only supports 1 External SDCard
    //externalSDCard.csPin = NoPin;
    //externalSDCard.cardDetectPin = NoPin;
    //lpc.externalSDCard.spiFrequencyHz = 4000000;
    //lpc.externalSDCard.spiChannel = 0;

    heat.tempSensePins = {bedtemp, e0temp}; //Max of 3 entries
    //heat.spiTempSensorCSPins = { }; //Max of 2 entries

    //Analogue to Digital prefilter
    adc.prefilter.enable = true

    //ESP Settings
    

    //8266wifi.espDataReadyPin = A.8;
    //8266wifi.lpcTfrReadyPin = G.4;
    //8266wifi.espResetPin = F.12;
    //ESP RX/TX Settings
    //8266wifi.serialRxTxPins = { C.7, C.6 } ;
    //serial.aux.rxTxPins = {NoPin, NoPin};
    //serial.aux.rxTxPins = {PA.10, PA.9}

    //WiFi pins
    8266wifi.espDataReadyPin = PG_10
    8266wifi.TfrReadyPin = PF_11
    8266wifi.espResetPin = PF_12

    //ESP32 RX/TX Settings
    8266wifi.serialRxTxPins = { PD_9, PD_8 }
    serial.aux.rxTxPins = { PA_10, PA_9 }
    heat.tempSensePins = { PF_6, PF_3, PF_4, PF_5 }

    			//TMC Smart Drivers
    

    stepper.numSmartDrivers = 4;
    accelerometer.spiChannel = 2

    //heat.spiTempSensorCSPins = {NoPin, NoPin, NoPin, NoPin, NoPin, NoPin, NoPin, NoPin}

    as for the http://10.0.1.126//machine/status i get the same results as before which is above when i open the rr...

    undefined 1 Reply Last reply 19 Dec 2023, 22:06 Reply Quote 0
    • undefined
      sankafola @sankafola
      last edited by 19 Dec 2023, 22:06

      @stuartofmt
      hi , some update

      1-i fixed the video stream so i do have now http://10.0.1.110/stream giving a pic

      the DuetLapse running a bet more now here is the log

      2023-12-19 17:03:20,353 - MainThread - DuetLapse3 Version --- 5.3.3
      2023-12-19 17:03:20,354 - MainThread - Requires Duet3d Version --- 3.5.0-rc.1
      2023-12-19 17:03:20,354 - MainThread - Process Id --- 2393
      2023-12-19 17:03:20,355 - MainThread - -------------------------------------------------------------------------------

      2023-12-19 17:03:20,357 - MainThread - seconds has been changed to 30
      2023-12-19 17:03:20,358 - MainThread - poll has been changed to 10
      2023-12-19 17:03:20,360 - MainThread - dontwait has been changed to True
      2023-12-19 17:03:20,361 - MainThread - ################### Options at start of this print job #####################
      2023-12-19 17:03:20,361 - MainThread - # Simulate
      2023-12-19 17:03:20,362 - MainThread - -simulate = off
      2023-12-19 17:03:20,363 - MainThread - # Environment
      2023-12-19 17:03:20,363 - MainThread - -duet = 10.0.1.126
      2023-12-19 17:03:20,364 - MainThread - -password = reprap
      2023-12-19 17:03:20,364 - MainThread - -basedir = /home/pi/DuetLapse
      2023-12-19 17:03:20,364 - MainThread - -poll = 10
      2023-12-19 17:03:20,364 - MainThread - -instances = single
      2023-12-19 17:03:20,365 - MainThread - -logtype = both
      2023-12-19 17:03:20,365 - MainThread - -nolog = False
      2023-12-19 17:03:20,365 - MainThread - -verbose = True
      2023-12-19 17:03:20,366 - MainThread - -host = 0.0.0.0
      2023-12-19 17:03:20,366 - MainThread - -port = 8081
      2023-12-19 17:03:20,366 - MainThread - -keeplogs = False
      2023-12-19 17:03:20,366 - MainThread - -novideo = False
      2023-12-19 17:03:20,367 - MainThread - -deletepics = False
      2023-12-19 17:03:20,367 - MainThread - -maxffmpeg = 2
      2023-12-19 17:03:20,367 - MainThread - -keepfiles = False
      2023-12-19 17:03:20,367 - MainThread - # Execution
      2023-12-19 17:03:20,368 - MainThread - -dontwait = True
      2023-12-19 17:03:20,368 - MainThread - -seconds = 30
      2023-12-19 17:03:20,368 - MainThread - -detect = none
      2023-12-19 17:03:20,369 - MainThread - -pause = no
      2023-12-19 17:03:20,369 - MainThread - -numlayers = 1
      2023-12-19 17:03:20,369 - MainThread - -movehead = [0, 0]
      2023-12-19 17:03:20,369 - MainThread - -rest = 1
      2023-12-19 17:03:20,370 - MainThread - -standby = False
      2023-12-19 17:03:20,370 - MainThread - -restart = False
      2023-12-19 17:03:20,370 - MainThread - # Camera
      2023-12-19 17:03:20,371 - MainThread - -camera1 = web
      2023-12-19 17:03:20,371 - MainThread - -camera2
      2023-12-19 17:03:20,371 - MainThread - -weburl1 = http://10.0.1.110/stream
      2023-12-19 17:03:20,371 - MainThread - -weburl2
      2023-12-19 17:03:20,372 - MainThread - # Video
      2023-12-19 17:03:20,372 - MainThread - -extratime = 0
      2023-12-19 17:03:20,372 - MainThread - -fps = 10
      2023-12-19 17:03:20,373 - MainThread - -minvideo = 5
      2023-12-19 17:03:20,374 - MainThread - -maxvideo = 0
      2023-12-19 17:03:20,374 - MainThread - # Overrides
      2023-12-19 17:03:20,374 - MainThread - -camparam1
      2023-12-19 17:03:20,374 - MainThread - -camparam2
      2023-12-19 17:03:20,375 - MainThread - -vidparam1
      2023-12-19 17:03:20,375 - MainThread - -vidparam2
      2023-12-19 17:03:20,375 - MainThread - # UI
      2023-12-19 17:03:20,376 - MainThread - -hidebuttons = False
      2023-12-19 17:03:20,376 - MainThread - # Special Functions
      2023-12-19 17:03:20,376 - MainThread - -execkey
      2023-12-19 17:03:20,377 - MainThread - -M3291 = M3291
      2023-12-19 17:03:20,377 - MainThread - -----------------------------------------------------------------------

      2023-12-19 17:03:20,378 - MainThread - ************************************************************************************
      2023-12-19 17:03:20,378 - MainThread - Warning: -seconds 30 and -detect none
      2023-12-19 17:03:20,379 - MainThread - This combination implies -dontwait and will be set automatically
      2023-12-19 17:03:20,379 - MainThread - ************************************************************************************

      2023-12-19 17:03:20,381 - MainThread - ##########################################################
      2023-12-19 17:03:20,381 - MainThread - Will start capturing images immediately
      2023-12-19 17:03:20,382 - MainThread - ##########################################################

      2023-12-19 17:03:20,382 - MainThread - ##########################################################
      2023-12-19 17:03:20,383 - MainThread - Video will be created when printing ends
      2023-12-19 17:03:20,383 - MainThread - or if requested from the UI or M3291 P"DuetLapse3.completed"
      2023-12-19 17:03:20,384 - MainThread - ##########################################################

      2023-12-19 17:03:20,384 - MainThread - ##########################################################
      2023-12-19 17:03:20,384 - MainThread - If running from a console using the command line
      2023-12-19 17:03:20,385 - MainThread - Press Ctrl+C one time to stop the program and create a video.
      2023-12-19 17:03:20,386 - MainThread - ##########################################################

      2023-12-19 17:03:20,386 - MainThread - ***** Initializing state and counters *****
      2023-12-19 17:03:20,402 - MainThread - ##########################################################
      2023-12-19 17:03:20,403 - MainThread - ***** Started http listener *****
      2023-12-19 17:03:20,404 - MainThread - ##########################################################

      2023-12-19 17:03:20,405 - MainThread - Logging in to Printer
      2023-12-19 17:03:20,405 - MainThread - 0 url: http://10.0.1.126/rr_disconnect post: False
      2023-12-19 17:03:23,554 - MainThread - Cannot connect to the printer

      2023-12-19 17:03:23,555 - MainThread - HTTPConnectionPool(host='10.0.1.126', port=80): Max retries exceeded with url: /rr_disconnect (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75cd3988>: Failed to establish a new connection: [Errno 113] No route to host'))
      2023-12-19 17:03:23,555 - MainThread - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      2023-12-19 17:03:24,557 - MainThread - 1 url: http://10.0.1.126/rr_disconnect post: False
      2023-12-19 17:03:26,675 - MainThread - Cannot connect to the printer

      2023-12-19 17:03:26,676 - MainThread - HTTPConnectionPool(host='10.0.1.126', port=80): Max retries exceeded with url: /rr_disconnect (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75cd3da8>: Failed to establish a new connection: [Errno 113] No route to host'))
      2023-12-19 17:03:26,677 - MainThread - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      2023-12-19 17:03:27,680 - MainThread - 0 url: http://10.0.1.126/rr_connect?password=reprap post: False
      2023-12-19 17:03:28,415 - MainThread - Terminating because of Ctl + C (SIGINT)
      2023-12-19 17:03:28,416 - MainThread - !!!!! Forced Termination !!!!!

      undefined 1 Reply Last reply 19 Dec 2023, 22:42 Reply Quote 0
      • undefined
        stuartofmt @sankafola
        last edited by 19 Dec 2023, 22:42

        @sankafola

        I think you are out of luck.

        Duetlapse3 was developed to run with duet hardware and firmware. Part of this means that it needs to support the DWC/ DSF api framework.
        I’m away from my printer and test-bed. But it’s failing to log on and likely unable to resolve basic information from the object model.

        If all is as it should be - you should have an object model menu item (left hand pane) in DWC and be able to get object model information.

        There is not much I can do if this is not the case.

        Maybe the SKF pro is fully supported. I do not know. Perhaps @T3P3Tony can clarify.

        undefined T3P3Tonyundefined 2 Replies Last reply 19 Dec 2023, 23:18 Reply Quote 0
        • undefined
          sankafola @stuartofmt
          last edited by 19 Dec 2023, 23:18

          @stuartofmt

          no no dont give up i found it here it is i had to start a plugin to see it on the left

          screen shot.jpg

          now what i need to do ,

          undefined 1 Reply Last reply 20 Dec 2023, 10:46 Reply Quote 0
          • undefined
            stuartofmt @sankafola
            last edited by 20 Dec 2023, 10:46

            @sankafola
            Great ! I can see now see that it should be returning a vaild version. The question is why it is not?

            Try this version. Its just got a bit more error checking in it.

            For this check:
            Make sure the printer is on but not printing.
            Start DuetLapse3 Make sure you are running with -verbose .
            Send me the log file.

            Something strange is happening with the connection to the printer. I need to understand what is happening.

            DuetLapse3.py

            undefined 1 Reply Last reply 20 Dec 2023, 12:56 Reply Quote 0
            • undefined
              sankafola @stuartofmt
              last edited by sankafola 20 Dec 2023, 12:56

              @stuartofmt
              hi , the printer is on not printing , the 10.0.1.110:8082 not opening

              2023-12-20 07:53:33,364 - MainThread - DuetLapse3 Version --- 5.3.4
              2023-12-20 07:53:33,365 - MainThread - Requires Duet3d Version --- 3.5.0-rc.1
              2023-12-20 07:53:33,366 - MainThread - Process Id --- 3438
              2023-12-20 07:53:33,366 - MainThread - -------------------------------------------------------------------------------

              2023-12-20 07:53:33,368 - MainThread - seconds has been changed to 30
              2023-12-20 07:53:33,369 - MainThread - poll has been changed to 10
              2023-12-20 07:53:33,370 - MainThread - dontwait has been changed to True
              2023-12-20 07:53:33,371 - MainThread - ################### Options at start of this print job #####################
              2023-12-20 07:53:33,372 - MainThread - # Simulate
              2023-12-20 07:53:33,373 - MainThread - -simulate = off
              2023-12-20 07:53:33,373 - MainThread - # Environment
              2023-12-20 07:53:33,374 - MainThread - -duet = 10.0.1.126
              2023-12-20 07:53:33,375 - MainThread - -password = reprap
              2023-12-20 07:53:33,375 - MainThread - -basedir = /home/pi/DuetLapse
              2023-12-20 07:53:33,376 - MainThread - -poll = 10
              2023-12-20 07:53:33,377 - MainThread - -instances = single
              2023-12-20 07:53:33,377 - MainThread - -logtype = both
              2023-12-20 07:53:33,378 - MainThread - -nolog = False
              2023-12-20 07:53:33,379 - MainThread - -verbose = True
              2023-12-20 07:53:33,379 - MainThread - -host = 0.0.0.0
              2023-12-20 07:53:33,380 - MainThread - -port = 8082
              2023-12-20 07:53:33,381 - MainThread - -keeplogs = False
              2023-12-20 07:53:33,382 - MainThread - -novideo = False
              2023-12-20 07:53:33,383 - MainThread - -deletepics = False
              2023-12-20 07:53:33,383 - MainThread - -maxffmpeg = 2
              2023-12-20 07:53:33,384 - MainThread - -keepfiles = False
              2023-12-20 07:53:33,384 - MainThread - # Execution
              2023-12-20 07:53:33,385 - MainThread - -dontwait = True
              2023-12-20 07:53:33,386 - MainThread - -seconds = 30
              2023-12-20 07:53:33,386 - MainThread - -detect = none
              2023-12-20 07:53:33,387 - MainThread - -pause = no
              2023-12-20 07:53:33,387 - MainThread - -numlayers = 1
              2023-12-20 07:53:33,388 - MainThread - -movehead = [0, 0]
              2023-12-20 07:53:33,389 - MainThread - -rest = 1
              2023-12-20 07:53:33,389 - MainThread - -standby = False
              2023-12-20 07:53:33,390 - MainThread - -restart = False
              2023-12-20 07:53:33,391 - MainThread - # Camera
              2023-12-20 07:53:33,391 - MainThread - -camera1 = stream
              2023-12-20 07:53:33,393 - MainThread - -camera2
              2023-12-20 07:53:33,393 - MainThread - -weburl1 = http://10.0.1.110/stream
              2023-12-20 07:53:33,394 - MainThread - -weburl2
              2023-12-20 07:53:33,395 - MainThread - # Video
              2023-12-20 07:53:33,395 - MainThread - -extratime = 0
              2023-12-20 07:53:33,396 - MainThread - -fps = 10
              2023-12-20 07:53:33,396 - MainThread - -minvideo = 5
              2023-12-20 07:53:33,397 - MainThread - -maxvideo = 0
              2023-12-20 07:53:33,398 - MainThread - # Overrides
              2023-12-20 07:53:33,398 - MainThread - -camparam1
              2023-12-20 07:53:33,399 - MainThread - -camparam2
              2023-12-20 07:53:33,399 - MainThread - -vidparam1
              2023-12-20 07:53:33,401 - MainThread - -vidparam2
              2023-12-20 07:53:33,402 - MainThread - # UI
              2023-12-20 07:53:33,403 - MainThread - -hidebuttons = False
              2023-12-20 07:53:33,404 - MainThread - # Special Functions
              2023-12-20 07:53:33,405 - MainThread - -execkey
              2023-12-20 07:53:33,407 - MainThread - -M3291 = M3291
              2023-12-20 07:53:33,408 - MainThread - -----------------------------------------------------------------------

              2023-12-20 07:53:33,409 - MainThread - ************************************************************************************
              2023-12-20 07:53:33,410 - MainThread - Warning: -seconds 30 and -detect none
              2023-12-20 07:53:33,411 - MainThread - This combination implies -dontwait and will be set automatically
              2023-12-20 07:53:33,412 - MainThread - ************************************************************************************

              2023-12-20 07:53:33,416 - MainThread - ##########################################################
              2023-12-20 07:53:33,417 - MainThread - Will start capturing images immediately
              2023-12-20 07:53:33,418 - MainThread - ##########################################################

              2023-12-20 07:53:33,419 - MainThread - ##########################################################
              2023-12-20 07:53:33,419 - MainThread - Video will be created when printing ends
              2023-12-20 07:53:33,421 - MainThread - or if requested from the UI or M3291 P"DuetLapse3.completed"
              2023-12-20 07:53:33,422 - MainThread - ##########################################################

              2023-12-20 07:53:33,422 - MainThread - ##########################################################
              2023-12-20 07:53:33,422 - MainThread - If running from a console using the command line
              2023-12-20 07:53:33,423 - MainThread - Press Ctrl+C one time to stop the program and create a video.
              2023-12-20 07:53:33,423 - MainThread - ##########################################################

              2023-12-20 07:53:33,423 - MainThread - ***** Initializing state and counters *****
              2023-12-20 07:53:33,425 - MainThread - ##########################################################
              2023-12-20 07:53:33,426 - MainThread - ***** Started http listener *****
              2023-12-20 07:53:33,426 - MainThread - ##########################################################

              2023-12-20 07:53:33,427 - MainThread - Logging in to Printer
              2023-12-20 07:53:33,427 - MainThread - 0 url: http://10.0.1.126/rr_disconnect post: False
              2023-12-20 07:53:33,486 - MainThread - 0 url: http://10.0.1.126/rr_connect?password=reprap post: False
              2023-12-20 07:53:33,522 - MainThread - !!!!! Connected to printer Standalone !!!!!
              2023-12-20 07:53:33,523 - MainThread - !!!!! Checking for firmware version 3.5.0-rc.1 !!!!!
              2023-12-20 07:53:33,524 - MainThread - 0 url: http://10.0.1.126/rr_model?key=boards post: False
              2023-12-20 07:53:33,545 - MainThread - Version Check returned --> 3.5.0-rc.1+102
              2023-12-20 07:53:33,545 - MainThread - ###############################################################
              2023-12-20 07:53:33,546 - MainThread - Connected to printer at 10.0.1.126
              2023-12-20 07:53:33,546 - MainThread - Using Duet version 3.5.0-rc.1+102
              2023-12-20 07:53:33,546 - MainThread - Using API interface rr_model
              2023-12-20 07:53:33,547 - MainThread - ###############################################################

              2023-12-20 07:53:33,547 - MainThread - isPlugin ignored - only valid for SBC
              2023-12-20 07:53:33,547 - MainThread - Initializing DL3msg queue
              2023-12-20 07:53:33,547 - MainThread - 0 url: http://10.0.1.126/rr_gcode?gcode=M3291 B"Clear" post: False
              2023-12-20 07:53:33,578 - mainLoop - ###########################
              2023-12-20 07:53:33,579 - mainLoop - Starting mainLoop
              2023-12-20 07:53:33,579 - MainThread - Initiating with action set to start
              2023-12-20 07:53:33,579 - mainLoop - ###########################

              2023-12-20 07:53:33,580 - MainThread - Calling nextaction start from main --> startup --> nextAction
              2023-12-20 07:53:33,580 - mainLoop - Calling Status from run --> mainLoop --> getDuet
              2023-12-20 07:53:33,581 - MainThread - ++++++ start state requested ++++++
              2023-12-20 07:53:33,581 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
              2023-12-20 07:53:33,581 - MainThread - nextAction requested stopCaptureLoop
              2023-12-20 07:53:33,583 - MainThread - captureLoop is not running
              2023-12-20 07:53:33,589 - MainThread - nextAction satisfied waitforCaptureLoop
              2023-12-20 07:53:33,592 - MainThread - ++++++ Determining next logical action ++++++
              2023-12-20 07:53:33,593 - MainThread - ++++++ Entering start state ++++++
              2023-12-20 07:53:33,593 - MainThread - nextAction exiting normally
              2023-12-20 07:53:33,617 - mainLoop - Standalone Status is idle
              2023-12-20 07:53:33,618 - mainLoop - Error Processing message queue
              2023-12-20 07:53:33,618 - mainLoop - 'global'
              2023-12-20 07:53:38,624 - mainLoop - Calling Status from run --> mainLoop --> getDuet
              2023-12-20 07:53:38,625 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
              2023-12-20 07:53:38,720 - mainLoop - Standalone Status is idle
              2023-12-20 07:53:38,721 - mainLoop - Error Processing message queue
              2023-12-20 07:53:38,721 - mainLoop - 'global'
              2023-12-20 07:53:43,727 - mainLoop - Calling Status from run --> mainLoop --> getDuet
              2023-12-20 07:53:43,728 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
              2023-12-20 07:53:43,823 - mainLoop - Standalone Status is idle
              2023-12-20 07:53:43,824 - mainLoop - Error Processing message queue
              2023-12-20 07:53:43,824 - mainLoop - 'global'
              2023-12-20 07:53:43,825 - mainLoop - ****** Duet status changed to: idle from unknown *****
              2023-12-20 07:53:43,826 - mainLoop - ****** stateMachine:
              2023-12-20 07:53:43,827 - mainLoop - newstate = Capturing
              2023-12-20 07:53:43,827 - mainLoop - currentState = Waiting
              2023-12-20 07:53:43,827 - mainLoop - duetStatus = idle
              2023-12-20 07:53:43,828 - mainLoop - lastDuetStatus = unknown
              2023-12-20 07:53:43,828 - mainLoop - dontwait = True
              2023-12-20 07:53:43,829 - mainLoop - detect = none
              2023-12-20 07:53:43,829 - mainLoop - terminateState = -1
              2023-12-20 07:53:43,830 - mainLoop - ******
              2023-12-20 07:53:43,831 - mainLoop - ****** Print State changed to: Capturing from Waiting*****
              2023-12-20 07:53:43,831 - mainLoop - Calling oneInterval for Camera 1
              2023-12-20 07:53:43,832 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
              2023-12-20 07:53:43,832 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
              2023-12-20 07:53:43,855 - mainLoop - Current Layer is -1
              2023-12-20 07:53:43,856 - mainLoop - elapsed: 10.432576417922974
              2023-12-20 07:53:43,857 - mainLoop - ****** stateMachine:
              2023-12-20 07:53:43,858 - mainLoop - newstate = Waiting
              2023-12-20 07:53:43,858 - mainLoop - currentState = Capturing
              2023-12-20 07:53:43,859 - mainLoop - duetStatus = idle
              2023-12-20 07:53:43,859 - mainLoop - lastDuetStatus = unknown
              2023-12-20 07:53:43,859 - mainLoop - dontwait = True
              2023-12-20 07:53:43,860 - mainLoop - detect = none
              2023-12-20 07:53:43,861 - mainLoop - terminateState = -1
              2023-12-20 07:53:43,861 - mainLoop - ******
              2023-12-20 07:53:43,861 - mainLoop - ****** Print State changed to: Waiting from Capturing*****
              2023-12-20 07:53:48,868 - mainLoop - Calling Status from run --> mainLoop --> getDuet
              2023-12-20 07:53:48,869 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
              2023-12-20 07:53:48,944 - mainLoop - Standalone Status is idle
              2023-12-20 07:53:48,945 - mainLoop - Error Processing message queue
              2023-12-20 07:53:48,945 - mainLoop - 'global'
              2023-12-20 07:53:53,951 - mainLoop - Calling Status from run --> mainLoop --> getDuet
              2023-12-20 07:53:53,952 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
              2023-12-20 07:53:54,074 - mainLoop - Standalone Status is idle
              2023-12-20 07:53:54,075 - mainLoop - Error Processing message queue
              2023-12-20 07:53:54,075 - mainLoop - 'global'
              2023-12-20 07:53:54,075 - mainLoop - ****** stateMachine:
              2023-12-20 07:53:54,076 - mainLoop - newstate = Capturing
              2023-12-20 07:53:54,076 - mainLoop - currentState = Waiting
              2023-12-20 07:53:54,076 - mainLoop - duetStatus = idle
              2023-12-20 07:53:54,077 - mainLoop - lastDuetStatus = idle
              2023-12-20 07:53:54,077 - mainLoop - dontwait = True
              2023-12-20 07:53:54,077 - mainLoop - detect = none
              2023-12-20 07:53:54,077 - mainLoop - terminateState = -1
              2023-12-20 07:53:54,078 - mainLoop - ******
              2023-12-20 07:53:54,078 - mainLoop - ****** Print State changed to: Capturing from Waiting*****
              2023-12-20 07:53:54,079 - mainLoop - Calling oneInterval for Camera 1
              2023-12-20 07:53:54,079 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
              2023-12-20 07:53:54,080 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
              2023-12-20 07:53:54,107 - mainLoop - Current Layer is -1
              2023-12-20 07:53:54,108 - mainLoop - elapsed: 20.684492111206055
              2023-12-20 07:53:54,110 - mainLoop - ****** stateMachine:
              2023-12-20 07:53:54,110 - mainLoop - newstate = Waiting
              2023-12-20 07:53:54,111 - mainLoop - currentState = Capturing
              2023-12-20 07:53:54,111 - mainLoop - duetStatus = idle
              2023-12-20 07:53:54,112 - mainLoop - lastDuetStatus = idle
              2023-12-20 07:53:54,112 - mainLoop - dontwait = True
              2023-12-20 07:53:54,113 - mainLoop - detect = none
              2023-12-20 07:53:54,113 - mainLoop - terminateState = -1
              2023-12-20 07:53:54,114 - mainLoop - ******
              2023-12-20 07:53:54,114 - mainLoop - ****** Print State changed to: Waiting from Capturing*****
              2023-12-20 07:53:59,120 - mainLoop - Calling Status from run --> mainLoop --> getDuet
              2023-12-20 07:53:59,121 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
              2023-12-20 07:53:59,184 - mainLoop - Standalone Status is idle
              2023-12-20 07:53:59,185 - mainLoop - Error Processing message queue
              2023-12-20 07:53:59,185 - mainLoop - 'global'
              2023-12-20 07:54:04,191 - mainLoop - Calling Status from run --> mainLoop --> getDuet
              2023-12-20 07:54:04,192 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
              2023-12-20 07:54:04,311 - mainLoop - Standalone Status is idle
              2023-12-20 07:54:04,311 - mainLoop - Error Processing message queue
              2023-12-20 07:54:04,312 - mainLoop - 'global'
              2023-12-20 07:54:04,312 - mainLoop - ****** stateMachine:
              2023-12-20 07:54:04,312 - mainLoop - newstate = Capturing
              2023-12-20 07:54:04,313 - mainLoop - currentState = Waiting
              2023-12-20 07:54:04,313 - mainLoop - duetStatus = idle
              2023-12-20 07:54:04,313 - mainLoop - lastDuetStatus = idle
              2023-12-20 07:54:04,314 - mainLoop - dontwait = True
              2023-12-20 07:54:04,314 - mainLoop - detect = none
              2023-12-20 07:54:04,314 - mainLoop - terminateState = -1
              2023-12-20 07:54:04,314 - mainLoop - ******
              2023-12-20 07:54:04,314 - mainLoop - ****** Print State changed to: Capturing from Waiting*****
              2023-12-20 07:54:04,315 - mainLoop - Calling oneInterval for Camera 1
              2023-12-20 07:54:04,315 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
              2023-12-20 07:54:04,315 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
              2023-12-20 07:54:04,332 - mainLoop - Current Layer is -1
              2023-12-20 07:54:04,333 - mainLoop - elapsed: 30.909065008163452
              2023-12-20 07:54:04,333 - mainLoop - Time - Camera1: capturing frame 1 at layer None after 30 seconds
              2023-12-20 07:54:04,333 - mainLoop - Calling stack oneInterval --> onePhoto --> createworkingDir
              2023-12-20 07:54:04,334 - mainLoop - Created working directory: /home/pi/DuetLapse/raspberrypi/10-0-1-126/3438_1
              2023-12-20 07:54:04,334 - mainLoop - Calling stack onePhoto --> createworkingDir --> renamelogfile
              2023-12-20 07:54:04,336 - mainLoop - Calling Jobname from onePhoto --> renameworkingDir --> getDuet
              2023-12-20 07:54:04,336 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.file.fileName post: False
              2023-12-20 07:54:04,360 - mainLoop - jobname was not available
              2023-12-20 07:54:06,054 - mainLoop - Command Exception: ffmpeg -threads 1 -loglevel quiet -y -i http://10.0.1.110/stream -vframes 1 -threads 1 /home/pi/DuetLapse/raspberrypi/10-0-1-126/3438_1/Camera1_00000001.jpeg
              2023-12-20 07:54:06,055 - mainLoop - Exception = Command 'ffmpeg -threads 1 -loglevel quiet -y -i http://10.0.1.110/stream -vframes 1 -threads 1 /home/pi/DuetLapse/raspberrypi/10-0-1-126/3438_1/Camera1_00000001.jpeg' returned non-zero exit status 1.
              2023-12-20 07:54:06,056 - mainLoop - !!!!! There was a problem capturing an image !!!!!
              2023-12-20 07:54:06,057 - mainLoop - ****** stateMachine:
              2023-12-20 07:54:06,058 - mainLoop - newstate = Waiting
              2023-12-20 07:54:06,059 - mainLoop - currentState = Capturing
              2023-12-20 07:54:06,061 - mainLoop - duetStatus = idle
              2023-12-20 07:54:06,062 - mainLoop - lastDuetStatus = idle
              2023-12-20 07:54:06,063 - mainLoop - dontwait = True
              2023-12-20 07:54:06,064 - mainLoop - detect = none
              2023-12-20 07:54:06,065 - mainLoop - terminateState = -1
              2023-12-20 07:54:06,065 - mainLoop - ******
              2023-12-20 07:54:06,066 - mainLoop - ****** Print State changed to: Waiting from Capturing*****
              2023-12-20 07:54:08,702 - MainThread - Terminating because of Ctl + C (SIGINT)
              2023-12-20 07:54:08,704 - MainThread - !!!!! Forced Termination !!!!!

              and when i open manualy that address i get this

              2023-12-20-081317_1346x163_scrot.png

              undefined 1 Reply Last reply 20 Dec 2023, 16:40 Reply Quote 0
              • undefined
                stuartofmt @sankafola
                last edited by 20 Dec 2023, 16:40

                @sankafola

                Broadly speaking. It's working ... up to a point. Note that I did not change anything other than some additional debugging.
                Notwithstanding the error calling the M3291 macro (which we will tackle last) - tha main error is that ffmpeg is unable to get an image from your image stream.

                This could be a problem with your version of ffmpeg or the stream.

                Can you repeat the test with this version (just some more instrumentation).
                Can you verify that http://10.0.1.110/stream displays a video stream in your browser?
                what is the output from ffmpeg -version

                DuetLapse3.py

                undefined 1 Reply Last reply 20 Dec 2023, 16:51 Reply Quote 0
                • undefined
                  sankafola @stuartofmt
                  last edited by sankafola 20 Dec 2023, 16:51

                  @stuartofmt

                  the ffmpeg is as follow

                  2023-12-20-114852_624x601_scrot.png

                  as for the stream i have a real hard time to make the videostream works because of the failing link

                  sudo pip3 install opencv-contrib-python==3.4.4.19

                  i used the last file you gave me and here are the results seem to be working and connecting now but the main issue now maybe the videostream here are the screen shots and the log file
                  2023-12-20-115604_988x345_scrot.png 2023-12-20-115550_486x386_scrot.png

                  2023-12-20 11:58:45,832 - MainThread - DuetLapse3 Version --- 5.3.5
                  2023-12-20 11:58:45,833 - MainThread - Requires Duet3d Version --- 3.5.0-rc.1
                  2023-12-20 11:58:45,834 - MainThread - Process Id --- 2368
                  2023-12-20 11:58:45,834 - MainThread - -------------------------------------------------------------------------------

                  2023-12-20 11:58:45,835 - MainThread - seconds has been changed to 30
                  2023-12-20 11:58:45,836 - MainThread - poll has been changed to 10
                  2023-12-20 11:58:45,838 - MainThread - dontwait has been changed to True
                  2023-12-20 11:58:45,839 - MainThread - ################### Options at start of this print job #####################
                  2023-12-20 11:58:45,840 - MainThread - # Simulate
                  2023-12-20 11:58:45,840 - MainThread - -simulate = off
                  2023-12-20 11:58:45,841 - MainThread - # Environment
                  2023-12-20 11:58:45,841 - MainThread - -duet = 10.0.1.126
                  2023-12-20 11:58:45,842 - MainThread - -password = reprap
                  2023-12-20 11:58:45,842 - MainThread - -basedir = /home/pi/DuetLapse
                  2023-12-20 11:58:45,843 - MainThread - -poll = 10
                  2023-12-20 11:58:45,843 - MainThread - -instances = single
                  2023-12-20 11:58:45,843 - MainThread - -logtype = both
                  2023-12-20 11:58:45,843 - MainThread - -nolog = False
                  2023-12-20 11:58:45,844 - MainThread - -verbose = True
                  2023-12-20 11:58:45,844 - MainThread - -host = 0.0.0.0
                  2023-12-20 11:58:45,844 - MainThread - -port = 8082
                  2023-12-20 11:58:45,844 - MainThread - -keeplogs = False
                  2023-12-20 11:58:45,845 - MainThread - -novideo = False
                  2023-12-20 11:58:45,845 - MainThread - -deletepics = False
                  2023-12-20 11:58:45,845 - MainThread - -maxffmpeg = 2
                  2023-12-20 11:58:45,846 - MainThread - -keepfiles = False
                  2023-12-20 11:58:45,846 - MainThread - # Execution
                  2023-12-20 11:58:45,846 - MainThread - -dontwait = True
                  2023-12-20 11:58:45,846 - MainThread - -seconds = 30
                  2023-12-20 11:58:45,847 - MainThread - -detect = none
                  2023-12-20 11:58:45,847 - MainThread - -pause = no
                  2023-12-20 11:58:45,848 - MainThread - -numlayers = 1
                  2023-12-20 11:58:45,849 - MainThread - -movehead = [0, 0]
                  2023-12-20 11:58:45,850 - MainThread - -rest = 1
                  2023-12-20 11:58:45,850 - MainThread - -standby = False
                  2023-12-20 11:58:45,851 - MainThread - -restart = False
                  2023-12-20 11:58:45,851 - MainThread - # Camera
                  2023-12-20 11:58:45,852 - MainThread - -camera1 = stream
                  2023-12-20 11:58:45,852 - MainThread - -camera2
                  2023-12-20 11:58:45,853 - MainThread - -weburl1 = http://10.0.1.110/stream
                  2023-12-20 11:58:45,853 - MainThread - -weburl2
                  2023-12-20 11:58:45,854 - MainThread - # Video
                  2023-12-20 11:58:45,854 - MainThread - -extratime = 0
                  2023-12-20 11:58:45,855 - MainThread - -fps = 10
                  2023-12-20 11:58:45,855 - MainThread - -minvideo = 5
                  2023-12-20 11:58:45,855 - MainThread - -maxvideo = 0
                  2023-12-20 11:58:45,856 - MainThread - # Overrides
                  2023-12-20 11:58:45,856 - MainThread - -camparam1
                  2023-12-20 11:58:45,857 - MainThread - -camparam2
                  2023-12-20 11:58:45,857 - MainThread - -vidparam1
                  2023-12-20 11:58:45,858 - MainThread - -vidparam2
                  2023-12-20 11:58:45,859 - MainThread - # UI
                  2023-12-20 11:58:45,859 - MainThread - -hidebuttons = False
                  2023-12-20 11:58:45,860 - MainThread - # Special Functions
                  2023-12-20 11:58:45,860 - MainThread - -execkey
                  2023-12-20 11:58:45,861 - MainThread - -M3291 = M3291
                  2023-12-20 11:58:45,861 - MainThread - -----------------------------------------------------------------------

                  2023-12-20 11:58:45,862 - MainThread - ************************************************************************************
                  2023-12-20 11:58:45,862 - MainThread - Warning: -seconds 30 and -detect none
                  2023-12-20 11:58:45,863 - MainThread - This combination implies -dontwait and will be set automatically
                  2023-12-20 11:58:45,863 - MainThread - ************************************************************************************

                  2023-12-20 11:58:45,865 - MainThread - ##########################################################
                  2023-12-20 11:58:45,866 - MainThread - Will start capturing images immediately
                  2023-12-20 11:58:45,867 - MainThread - ##########################################################

                  2023-12-20 11:58:45,868 - MainThread - ##########################################################
                  2023-12-20 11:58:45,869 - MainThread - Video will be created when printing ends
                  2023-12-20 11:58:45,870 - MainThread - or if requested from the UI or M3291 P"DuetLapse3.completed"
                  2023-12-20 11:58:45,871 - MainThread - ##########################################################

                  2023-12-20 11:58:45,873 - MainThread - ##########################################################
                  2023-12-20 11:58:45,874 - MainThread - If running from a console using the command line
                  2023-12-20 11:58:45,874 - MainThread - Press Ctrl+C one time to stop the program and create a video.
                  2023-12-20 11:58:45,875 - MainThread - ##########################################################

                  2023-12-20 11:58:45,877 - MainThread - ***** Initializing state and counters *****
                  2023-12-20 11:58:45,880 - MainThread - ##########################################################
                  2023-12-20 11:58:45,880 - MainThread - ***** Started http listener on port 8082*****
                  2023-12-20 11:58:45,881 - MainThread - ##########################################################

                  2023-12-20 11:58:45,882 - MainThread - Logging in to Printer
                  2023-12-20 11:58:45,882 - MainThread - 0 url: http://10.0.1.126/rr_disconnect post: False
                  2023-12-20 11:58:46,036 - MainThread - 0 url: http://10.0.1.126/rr_connect?password=reprap post: False
                  2023-12-20 11:58:46,086 - MainThread - !!!!! Connected to printer Standalone !!!!!
                  2023-12-20 11:58:46,087 - MainThread - !!!!! Checking for firmware version 3.5.0-rc.1 !!!!!
                  2023-12-20 11:58:46,087 - MainThread - 0 url: http://10.0.1.126/rr_model?key=boards post: False
                  2023-12-20 11:58:46,151 - MainThread - Version Check returned --> 3.5.0-rc.1+102
                  2023-12-20 11:58:46,152 - MainThread - ###############################################################
                  2023-12-20 11:58:46,152 - MainThread - Connected to printer at 10.0.1.126
                  2023-12-20 11:58:46,152 - MainThread - Using Duet version 3.5.0-rc.1+102
                  2023-12-20 11:58:46,152 - MainThread - Using API interface rr_model
                  2023-12-20 11:58:46,153 - MainThread - ###############################################################

                  2023-12-20 11:58:46,153 - MainThread - isPlugin ignored - only valid for SBC
                  2023-12-20 11:58:46,153 - MainThread - Initializing DL3msg queue
                  2023-12-20 11:58:46,153 - MainThread - 0 url: http://10.0.1.126/rr_gcode?gcode=M3291 B"Clear" post: False
                  2023-12-20 11:58:46,198 - mainLoop - ###########################
                  2023-12-20 11:58:46,199 - MainThread - Initiating with action set to start
                  2023-12-20 11:58:46,199 - mainLoop - Starting mainLoop
                  2023-12-20 11:58:46,199 - MainThread - Calling nextaction start from main --> startup --> nextAction
                  2023-12-20 11:58:46,200 - mainLoop - ###########################

                  2023-12-20 11:58:46,200 - MainThread - ++++++ start state requested ++++++
                  2023-12-20 11:58:46,200 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                  2023-12-20 11:58:46,201 - MainThread - nextAction requested stopCaptureLoop
                  2023-12-20 11:58:46,201 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                  2023-12-20 11:58:46,201 - MainThread - captureLoop is not running
                  2023-12-20 11:58:46,203 - MainThread - nextAction satisfied waitforCaptureLoop
                  2023-12-20 11:58:46,209 - MainThread - ++++++ Determining next logical action ++++++
                  2023-12-20 11:58:46,210 - MainThread - ++++++ Entering start state ++++++
                  2023-12-20 11:58:46,210 - MainThread - nextAction exiting normally
                  2023-12-20 11:58:46,227 - mainLoop - Standalone Status is busy
                  2023-12-20 11:58:46,228 - mainLoop - Error Processing message queue
                  2023-12-20 11:58:46,228 - mainLoop - 'global'
                  2023-12-20 11:58:51,234 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                  2023-12-20 11:58:51,235 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                  2023-12-20 11:58:51,267 - mainLoop - Standalone Status is idle
                  2023-12-20 11:58:51,267 - mainLoop - Error Processing message queue
                  2023-12-20 11:58:51,268 - mainLoop - 'global'
                  2023-12-20 11:58:56,273 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                  2023-12-20 11:58:56,273 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                  2023-12-20 11:58:56,529 - mainLoop - Standalone Status is idle
                  2023-12-20 11:58:56,529 - mainLoop - Error Processing message queue
                  2023-12-20 11:58:56,530 - mainLoop - 'global'
                  2023-12-20 11:58:56,530 - mainLoop - ****** Duet status changed to: idle from unknown *****
                  2023-12-20 11:58:56,530 - mainLoop - ****** stateMachine:
                  2023-12-20 11:58:56,531 - mainLoop - newstate = Capturing
                  2023-12-20 11:58:56,531 - mainLoop - currentState = Waiting
                  2023-12-20 11:58:56,531 - mainLoop - duetStatus = idle
                  2023-12-20 11:58:56,532 - mainLoop - lastDuetStatus = unknown
                  2023-12-20 11:58:56,532 - mainLoop - dontwait = True
                  2023-12-20 11:58:56,532 - mainLoop - detect = none
                  2023-12-20 11:58:56,532 - mainLoop - terminateState = -1
                  2023-12-20 11:58:56,533 - mainLoop - ******
                  2023-12-20 11:58:56,533 - mainLoop - ****** Print State changed to: Capturing from Waiting*****
                  2023-12-20 11:58:56,533 - mainLoop - Calling oneInterval for Camera 1
                  2023-12-20 11:58:56,533 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
                  2023-12-20 11:58:56,534 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
                  2023-12-20 11:58:56,612 - mainLoop - Current Layer is -1
                  2023-12-20 11:58:56,613 - mainLoop - elapsed: 10.735199928283691
                  2023-12-20 11:58:56,613 - mainLoop - ****** stateMachine:
                  2023-12-20 11:58:56,613 - mainLoop - newstate = Waiting
                  2023-12-20 11:58:56,614 - mainLoop - currentState = Capturing
                  2023-12-20 11:58:56,614 - mainLoop - duetStatus = idle
                  2023-12-20 11:58:56,614 - mainLoop - lastDuetStatus = unknown
                  2023-12-20 11:58:56,614 - mainLoop - dontwait = True
                  2023-12-20 11:58:56,615 - mainLoop - detect = none
                  2023-12-20 11:58:56,615 - mainLoop - terminateState = -1
                  2023-12-20 11:58:56,615 - mainLoop - ******
                  2023-12-20 11:58:56,615 - mainLoop - ****** Print State changed to: Waiting from Capturing*****
                  2023-12-20 11:59:01,621 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                  2023-12-20 11:59:01,622 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                  2023-12-20 11:59:01,783 - mainLoop - Standalone Status is idle
                  2023-12-20 11:59:01,785 - mainLoop - Error Processing message queue
                  2023-12-20 11:59:01,785 - mainLoop - 'global'
                  2023-12-20 11:59:06,792 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                  2023-12-20 11:59:06,793 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                  2023-12-20 11:59:07,242 - mainLoop - Standalone Status is idle
                  2023-12-20 11:59:07,243 - mainLoop - Error Processing message queue
                  2023-12-20 11:59:07,244 - mainLoop - 'global'
                  2023-12-20 11:59:07,245 - mainLoop - ****** stateMachine:
                  2023-12-20 11:59:07,245 - mainLoop - newstate = Capturing
                  2023-12-20 11:59:07,246 - mainLoop - currentState = Waiting
                  2023-12-20 11:59:07,246 - mainLoop - duetStatus = idle
                  2023-12-20 11:59:07,247 - mainLoop - lastDuetStatus = idle
                  2023-12-20 11:59:07,247 - mainLoop - dontwait = True
                  2023-12-20 11:59:07,248 - mainLoop - detect = none
                  2023-12-20 11:59:07,249 - mainLoop - terminateState = -1
                  2023-12-20 11:59:07,249 - mainLoop - ******
                  2023-12-20 11:59:07,250 - mainLoop - ****** Print State changed to: Capturing from Waiting*****
                  2023-12-20 11:59:07,250 - mainLoop - Calling oneInterval for Camera 1
                  2023-12-20 11:59:07,251 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
                  2023-12-20 11:59:07,252 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
                  2023-12-20 11:59:07,611 - mainLoop - Current Layer is -1
                  2023-12-20 11:59:07,612 - mainLoop - elapsed: 21.73440194129944
                  2023-12-20 11:59:07,613 - mainLoop - ****** stateMachine:
                  2023-12-20 11:59:07,614 - mainLoop - newstate = Waiting
                  2023-12-20 11:59:07,614 - mainLoop - currentState = Capturing
                  2023-12-20 11:59:07,615 - mainLoop - duetStatus = idle
                  2023-12-20 11:59:07,615 - mainLoop - lastDuetStatus = idle
                  2023-12-20 11:59:07,616 - mainLoop - dontwait = True
                  2023-12-20 11:59:07,616 - mainLoop - detect = none
                  2023-12-20 11:59:07,617 - mainLoop - terminateState = -1
                  2023-12-20 11:59:07,617 - mainLoop - ******
                  2023-12-20 11:59:07,618 - mainLoop - ****** Print State changed to: Waiting from Capturing*****

                  even though its giving this ( empty frame am using USB camera i have a ribbon camera too how to force videostream to use the ribbon camera ?

                  2023-12-20-120647_1489x480_scrot.png

                  undefined 1 Reply Last reply 20 Dec 2023, 17:48 Reply Quote 0
                  • undefined
                    stuartofmt @sankafola
                    last edited by 20 Dec 2023, 17:48

                    @sankafola

                    From memory - that version of ffmpeg is OK.
                    As before, it looks like DuetLapse is working and the previous issues were installation / configuration.

                    videostream uses opencv but that library is notorious for being difficult to install. Many of the guides simply do not work. That's not really the fault of the guides, mainly its to do with all the possible variations of operating systems etc that opencv has to deal with.

                    There are several documents here that may help.
                    https://github.com/stuartofmt/Pi-Notes
                    but it all depends on the version if the pi operating system you are using.

                    On my pi (using a pi camera and Debian Bullseye) I use a plugin that I've developed because it does not need to use opencv. It uses apis developed by the pi team BUT those do not support USB cameras.

                    Having said all that - you might try Motion as that is a bit more self contained and may give you quicker success.

                    What version of the pi operating system are you using?

                    undefined 1 Reply Last reply 20 Dec 2023, 19:56 Reply Quote 0
                    • undefined
                      sankafola @stuartofmt
                      last edited by sankafola 20 Dec 2023, 19:56

                      @stuartofmt

                      see my PI os Ver below
                      i will try motion but if videostream is better or a must i can try the plugin you mention if you dont mind

                      2023-12-20-151607_504x391_scrot.png
                      i tried motion and now i have video in the http//:localhost:8081/stream not on 10.0.1.110:8081/stream even though it should be the same but on the DuetLapse still no video
                      here is my config for DuetLapse see if i need to change anything there

                      -basedir /home/pi/DuetLapse
                      -duet 10.0.1.126
                      -port 8082
                      -seconds 30
                      -detect none
                      -weburl1 http://localhost:8081/stream
                      -verbose
                      -camera1 stream

                      2023-12-20-150807_616x456_scrot.png 2023-12-20-150752_779x388_scrot.png 2023-12-20-150736_1204x884_scrot.png

                      log file

                      2023-12-20 15:10:07,155 - MainThread - DuetLapse3 Version --- 5.3.5
                      2023-12-20 15:10:07,156 - MainThread - Requires Duet3d Version --- 3.5.0-rc.1
                      2023-12-20 15:10:07,157 - MainThread - Process Id --- 3116
                      2023-12-20 15:10:07,157 - MainThread - -------------------------------------------------------------------------------

                      2023-12-20 15:10:07,159 - MainThread - seconds has been changed to 30
                      2023-12-20 15:10:07,161 - MainThread - poll has been changed to 10
                      2023-12-20 15:10:07,162 - MainThread - dontwait has been changed to True
                      2023-12-20 15:10:07,163 - MainThread - ################### Options at start of this print job #####################
                      2023-12-20 15:10:07,164 - MainThread - # Simulate
                      2023-12-20 15:10:07,165 - MainThread - -simulate = off
                      2023-12-20 15:10:07,166 - MainThread - # Environment
                      2023-12-20 15:10:07,166 - MainThread - -duet = 10.0.1.126
                      2023-12-20 15:10:07,167 - MainThread - -password = reprap
                      2023-12-20 15:10:07,168 - MainThread - -basedir = /home/pi/DuetLapse
                      2023-12-20 15:10:07,169 - MainThread - -poll = 10
                      2023-12-20 15:10:07,170 - MainThread - -instances = single
                      2023-12-20 15:10:07,171 - MainThread - -logtype = both
                      2023-12-20 15:10:07,171 - MainThread - -nolog = False
                      2023-12-20 15:10:07,172 - MainThread - -verbose = True
                      2023-12-20 15:10:07,172 - MainThread - -host = 0.0.0.0
                      2023-12-20 15:10:07,173 - MainThread - -port = 8082
                      2023-12-20 15:10:07,174 - MainThread - -keeplogs = False
                      2023-12-20 15:10:07,175 - MainThread - -novideo = False
                      2023-12-20 15:10:07,176 - MainThread - -deletepics = False
                      2023-12-20 15:10:07,177 - MainThread - -maxffmpeg = 2
                      2023-12-20 15:10:07,178 - MainThread - -keepfiles = False
                      2023-12-20 15:10:07,179 - MainThread - # Execution
                      2023-12-20 15:10:07,180 - MainThread - -dontwait = True
                      2023-12-20 15:10:07,180 - MainThread - -seconds = 30
                      2023-12-20 15:10:07,181 - MainThread - -detect = none
                      2023-12-20 15:10:07,181 - MainThread - -pause = no
                      2023-12-20 15:10:07,181 - MainThread - -numlayers = 1
                      2023-12-20 15:10:07,182 - MainThread - -movehead = [0, 0]
                      2023-12-20 15:10:07,182 - MainThread - -rest = 1
                      2023-12-20 15:10:07,182 - MainThread - -standby = False
                      2023-12-20 15:10:07,183 - MainThread - -restart = False
                      2023-12-20 15:10:07,183 - MainThread - # Camera
                      2023-12-20 15:10:07,183 - MainThread - -camera1 = stream
                      2023-12-20 15:10:07,184 - MainThread - -camera2
                      2023-12-20 15:10:07,184 - MainThread - -weburl1 = http://localhost:8081/stream
                      2023-12-20 15:10:07,184 - MainThread - -weburl2
                      2023-12-20 15:10:07,185 - MainThread - # Video
                      2023-12-20 15:10:07,185 - MainThread - -extratime = 0
                      2023-12-20 15:10:07,185 - MainThread - -fps = 10
                      2023-12-20 15:10:07,186 - MainThread - -minvideo = 5
                      2023-12-20 15:10:07,186 - MainThread - -maxvideo = 0
                      2023-12-20 15:10:07,186 - MainThread - # Overrides
                      2023-12-20 15:10:07,187 - MainThread - -camparam1
                      2023-12-20 15:10:07,187 - MainThread - -camparam2
                      2023-12-20 15:10:07,188 - MainThread - -vidparam1
                      2023-12-20 15:10:07,188 - MainThread - -vidparam2
                      2023-12-20 15:10:07,188 - MainThread - # UI
                      2023-12-20 15:10:07,189 - MainThread - -hidebuttons = False
                      2023-12-20 15:10:07,190 - MainThread - # Special Functions
                      2023-12-20 15:10:07,190 - MainThread - -execkey
                      2023-12-20 15:10:07,191 - MainThread - -M3291 = M3291
                      2023-12-20 15:10:07,191 - MainThread - -----------------------------------------------------------------------

                      2023-12-20 15:10:07,192 - MainThread - ************************************************************************************
                      2023-12-20 15:10:07,192 - MainThread - Warning: -seconds 30 and -detect none
                      2023-12-20 15:10:07,193 - MainThread - This combination implies -dontwait and will be set automatically
                      2023-12-20 15:10:07,194 - MainThread - ************************************************************************************

                      2023-12-20 15:10:07,195 - MainThread - ##########################################################
                      2023-12-20 15:10:07,196 - MainThread - Will start capturing images immediately
                      2023-12-20 15:10:07,197 - MainThread - ##########################################################

                      2023-12-20 15:10:07,198 - MainThread - ##########################################################
                      2023-12-20 15:10:07,199 - MainThread - Video will be created when printing ends
                      2023-12-20 15:10:07,200 - MainThread - or if requested from the UI or M3291 P"DuetLapse3.completed"
                      2023-12-20 15:10:07,200 - MainThread - ##########################################################

                      2023-12-20 15:10:07,201 - MainThread - ##########################################################
                      2023-12-20 15:10:07,201 - MainThread - If running from a console using the command line
                      2023-12-20 15:10:07,202 - MainThread - Press Ctrl+C one time to stop the program and create a video.
                      2023-12-20 15:10:07,202 - MainThread - ##########################################################

                      2023-12-20 15:10:07,202 - MainThread - ***** Initializing state and counters *****
                      2023-12-20 15:10:07,205 - MainThread - ##########################################################
                      2023-12-20 15:10:07,207 - MainThread - ***** Started http listener on port 8082*****
                      2023-12-20 15:10:07,210 - MainThread - ##########################################################

                      2023-12-20 15:10:07,211 - MainThread - Logging in to Printer
                      2023-12-20 15:10:07,213 - MainThread - 0 url: http://10.0.1.126/rr_disconnect post: False
                      2023-12-20 15:10:07,335 - MainThread - 0 url: http://10.0.1.126/rr_connect?password=reprap post: False
                      2023-12-20 15:10:07,393 - MainThread - !!!!! Connected to printer Standalone !!!!!
                      2023-12-20 15:10:07,394 - MainThread - !!!!! Checking for firmware version 3.5.0-rc.1 !!!!!
                      2023-12-20 15:10:07,395 - MainThread - 0 url: http://10.0.1.126/rr_model?key=boards post: False
                      2023-12-20 15:10:07,442 - MainThread - Version Check returned --> 3.5.0-rc.1+102
                      2023-12-20 15:10:07,444 - MainThread - ###############################################################
                      2023-12-20 15:10:07,445 - MainThread - Connected to printer at 10.0.1.126
                      2023-12-20 15:10:07,447 - MainThread - Using Duet version 3.5.0-rc.1+102
                      2023-12-20 15:10:07,448 - MainThread - Using API interface rr_model
                      2023-12-20 15:10:07,450 - MainThread - ###############################################################

                      2023-12-20 15:10:07,451 - MainThread - isPlugin ignored - only valid for SBC
                      2023-12-20 15:10:07,453 - MainThread - Initializing DL3msg queue
                      2023-12-20 15:10:07,454 - MainThread - 0 url: http://10.0.1.126/rr_gcode?gcode=M3291 B"Clear" post: False
                      2023-12-20 15:10:07,539 - mainLoop - ###########################
                      2023-12-20 15:10:07,539 - MainThread - Initiating with action set to start
                      2023-12-20 15:10:07,541 - mainLoop - Starting mainLoop
                      2023-12-20 15:10:07,542 - MainThread - Calling nextaction start from main --> startup --> nextAction
                      2023-12-20 15:10:07,544 - mainLoop - ###########################

                      2023-12-20 15:10:07,545 - MainThread - ++++++ start state requested ++++++
                      2023-12-20 15:10:07,546 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                      2023-12-20 15:10:07,547 - MainThread - nextAction requested stopCaptureLoop
                      2023-12-20 15:10:07,548 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                      2023-12-20 15:10:07,549 - MainThread - captureLoop is not running
                      2023-12-20 15:10:07,552 - MainThread - nextAction satisfied waitforCaptureLoop
                      2023-12-20 15:10:07,553 - MainThread - ++++++ Determining next logical action ++++++
                      2023-12-20 15:10:07,554 - MainThread - ++++++ Entering start state ++++++
                      2023-12-20 15:10:07,555 - MainThread - nextAction exiting normally
                      2023-12-20 15:10:07,614 - mainLoop - Standalone Status is processing
                      2023-12-20 15:10:07,615 - mainLoop - Error Processing message queue
                      2023-12-20 15:10:07,616 - mainLoop - 'global'
                      2023-12-20 15:10:09,259 - Thread-1 - !!!!! http call: {'displayControls': ['true']} !!!!!
                      2023-12-20 15:10:10,087 - Thread-2 - !!!!! http call: {'displayStatus': ['true']} !!!!!
                      2023-12-20 15:10:12,623 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                      2023-12-20 15:10:12,624 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                      2023-12-20 15:10:12,654 - mainLoop - Standalone Status is processing
                      2023-12-20 15:10:12,655 - mainLoop - Error Processing message queue
                      2023-12-20 15:10:12,655 - mainLoop - 'global'
                      2023-12-20 15:10:17,661 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                      2023-12-20 15:10:17,662 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                      2023-12-20 15:10:17,710 - mainLoop - Standalone Status is processing
                      2023-12-20 15:10:17,711 - mainLoop - Error Processing message queue
                      2023-12-20 15:10:17,712 - mainLoop - 'global'
                      2023-12-20 15:10:17,713 - mainLoop - ****** Duet status changed to: processing from unknown *****
                      2023-12-20 15:10:17,713 - mainLoop - ****** stateMachine:
                      2023-12-20 15:10:17,714 - mainLoop - newstate = Capturing
                      2023-12-20 15:10:17,715 - mainLoop - currentState = Waiting
                      2023-12-20 15:10:17,715 - mainLoop - duetStatus = processing
                      2023-12-20 15:10:17,716 - mainLoop - lastDuetStatus = unknown
                      2023-12-20 15:10:17,717 - mainLoop - dontwait = True
                      2023-12-20 15:10:17,718 - mainLoop - detect = none
                      2023-12-20 15:10:17,718 - mainLoop - terminateState = -1
                      2023-12-20 15:10:17,719 - mainLoop - ******
                      2023-12-20 15:10:17,720 - mainLoop - ****** Print State changed to: Capturing from Waiting*****
                      2023-12-20 15:10:17,721 - mainLoop - Calling oneInterval for Camera 1
                      2023-12-20 15:10:17,722 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
                      2023-12-20 15:10:17,723 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
                      2023-12-20 15:10:17,812 - mainLoop - Current Layer is 1
                      2023-12-20 15:10:17,813 - mainLoop - elapsed: 10.610595464706421
                      2023-12-20 15:10:17,814 - mainLoop - ****** stateMachine:
                      2023-12-20 15:10:17,815 - mainLoop - newstate = Capturing
                      2023-12-20 15:10:17,816 - mainLoop - currentState = Capturing
                      2023-12-20 15:10:17,816 - mainLoop - duetStatus = processing
                      2023-12-20 15:10:17,817 - mainLoop - lastDuetStatus = unknown
                      2023-12-20 15:10:17,817 - mainLoop - dontwait = True
                      2023-12-20 15:10:17,818 - mainLoop - detect = none
                      2023-12-20 15:10:17,819 - mainLoop - terminateState = -1
                      2023-12-20 15:10:17,820 - mainLoop - ******
                      2023-12-20 15:10:20,089 - Thread-3 - !!!!! http call: {'displayStatus': ['true']} !!!!!

                      undefined 1 Reply Last reply 20 Dec 2023, 21:02 Reply Quote 0
                      • undefined
                        sankafola @sankafola
                        last edited by 20 Dec 2023, 21:02

                        @stuartofmt

                        and this is the log while printing

                        2023-12-20 15:50:25,955 - MainThread - DuetLapse3 Version --- 5.3.5
                        2023-12-20 15:50:25,956 - MainThread - Requires Duet3d Version --- 3.5.0-rc.1
                        2023-12-20 15:50:25,956 - MainThread - Process Id --- 9084
                        2023-12-20 15:50:25,956 - MainThread - -------------------------------------------------------------------------------

                        2023-12-20 15:50:25,957 - MainThread - seconds has been changed to 30
                        2023-12-20 15:50:25,958 - MainThread - poll has been changed to 10
                        2023-12-20 15:50:25,959 - MainThread - dontwait has been changed to True
                        2023-12-20 15:50:25,960 - MainThread - ################### Options at start of this print job #####################
                        2023-12-20 15:50:25,961 - MainThread - # Simulate
                        2023-12-20 15:50:25,961 - MainThread - -simulate = off
                        2023-12-20 15:50:25,962 - MainThread - # Environment
                        2023-12-20 15:50:25,962 - MainThread - -duet = 10.0.1.126
                        2023-12-20 15:50:25,963 - MainThread - -password = reprap
                        2023-12-20 15:50:25,963 - MainThread - -basedir = /home/pi/DuetLapse
                        2023-12-20 15:50:25,963 - MainThread - -poll = 10
                        2023-12-20 15:50:25,964 - MainThread - -instances = single
                        2023-12-20 15:50:25,964 - MainThread - -logtype = both
                        2023-12-20 15:50:25,965 - MainThread - -nolog = False
                        2023-12-20 15:50:25,965 - MainThread - -verbose = True
                        2023-12-20 15:50:25,965 - MainThread - -host = 0.0.0.0
                        2023-12-20 15:50:25,966 - MainThread - -port = 8082
                        2023-12-20 15:50:25,966 - MainThread - -keeplogs = False
                        2023-12-20 15:50:25,966 - MainThread - -novideo = False
                        2023-12-20 15:50:25,967 - MainThread - -deletepics = False
                        2023-12-20 15:50:25,967 - MainThread - -maxffmpeg = 2
                        2023-12-20 15:50:25,968 - MainThread - -keepfiles = False
                        2023-12-20 15:50:25,968 - MainThread - # Execution
                        2023-12-20 15:50:25,968 - MainThread - -dontwait = True
                        2023-12-20 15:50:25,979 - MainThread - -seconds = 30
                        2023-12-20 15:50:25,980 - MainThread - -detect = none
                        2023-12-20 15:50:25,980 - MainThread - -pause = no
                        2023-12-20 15:50:25,981 - MainThread - -numlayers = 1
                        2023-12-20 15:50:25,981 - MainThread - -movehead = [0, 0]
                        2023-12-20 15:50:25,982 - MainThread - -rest = 1
                        2023-12-20 15:50:25,982 - MainThread - -standby = False
                        2023-12-20 15:50:25,983 - MainThread - -restart = False
                        2023-12-20 15:50:25,983 - MainThread - # Camera
                        2023-12-20 15:50:25,984 - MainThread - -camera1 = stream
                        2023-12-20 15:50:25,984 - MainThread - -camera2
                        2023-12-20 15:50:25,985 - MainThread - -weburl1 = http://localhost:8081/stream
                        2023-12-20 15:50:25,985 - MainThread - -weburl2
                        2023-12-20 15:50:25,985 - MainThread - # Video
                        2023-12-20 15:50:25,986 - MainThread - -extratime = 0
                        2023-12-20 15:50:25,986 - MainThread - -fps = 10
                        2023-12-20 15:50:25,986 - MainThread - -minvideo = 5
                        2023-12-20 15:50:25,987 - MainThread - -maxvideo = 0
                        2023-12-20 15:50:25,987 - MainThread - # Overrides
                        2023-12-20 15:50:25,987 - MainThread - -camparam1
                        2023-12-20 15:50:25,988 - MainThread - -camparam2
                        2023-12-20 15:50:25,988 - MainThread - -vidparam1
                        2023-12-20 15:50:25,990 - MainThread - -vidparam2
                        2023-12-20 15:50:25,991 - MainThread - # UI
                        2023-12-20 15:50:25,991 - MainThread - -hidebuttons = False
                        2023-12-20 15:50:25,992 - MainThread - # Special Functions
                        2023-12-20 15:50:25,993 - MainThread - -execkey
                        2023-12-20 15:50:25,994 - MainThread - -M3291 = M3291
                        2023-12-20 15:50:25,994 - MainThread - -----------------------------------------------------------------------

                        2023-12-20 15:50:25,995 - MainThread - ************************************************************************************
                        2023-12-20 15:50:25,995 - MainThread - Warning: -seconds 30 and -detect none
                        2023-12-20 15:50:25,996 - MainThread - This combination implies -dontwait and will be set automatically
                        2023-12-20 15:50:25,996 - MainThread - ************************************************************************************

                        2023-12-20 15:50:25,997 - MainThread - ##########################################################
                        2023-12-20 15:50:25,998 - MainThread - Will start capturing images immediately
                        2023-12-20 15:50:25,998 - MainThread - ##########################################################

                        2023-12-20 15:50:25,999 - MainThread - ##########################################################
                        2023-12-20 15:50:26,000 - MainThread - Video will be created when printing ends
                        2023-12-20 15:50:26,001 - MainThread - or if requested from the UI or M3291 P"DuetLapse3.completed"
                        2023-12-20 15:50:26,002 - MainThread - ##########################################################

                        2023-12-20 15:50:26,003 - MainThread - ##########################################################
                        2023-12-20 15:50:26,004 - MainThread - If running from a console using the command line
                        2023-12-20 15:50:26,005 - MainThread - Press Ctrl+C one time to stop the program and create a video.
                        2023-12-20 15:50:26,006 - MainThread - ##########################################################

                        2023-12-20 15:50:26,009 - MainThread - ***** Initializing state and counters *****
                        2023-12-20 15:50:26,018 - MainThread - ##########################################################
                        2023-12-20 15:50:26,020 - MainThread - ***** Started http listener on port 8082*****
                        2023-12-20 15:50:26,022 - MainThread - ##########################################################

                        2023-12-20 15:50:26,023 - MainThread - Logging in to Printer
                        2023-12-20 15:50:26,025 - MainThread - 0 url: http://10.0.1.126/rr_disconnect post: False
                        2023-12-20 15:50:26,120 - MainThread - 0 url: http://10.0.1.126/rr_connect?password=reprap post: False
                        2023-12-20 15:50:26,164 - MainThread - !!!!! Connected to printer Standalone !!!!!
                        2023-12-20 15:50:26,166 - MainThread - !!!!! Checking for firmware version 3.5.0-rc.1 !!!!!
                        2023-12-20 15:50:26,169 - MainThread - 0 url: http://10.0.1.126/rr_model?key=boards post: False
                        2023-12-20 15:50:26,211 - MainThread - Version Check returned --> 3.5.0-rc.1+102
                        2023-12-20 15:50:26,216 - MainThread - ###############################################################
                        2023-12-20 15:50:26,217 - MainThread - Connected to printer at 10.0.1.126
                        2023-12-20 15:50:26,218 - MainThread - Using Duet version 3.5.0-rc.1+102
                        2023-12-20 15:50:26,219 - MainThread - Using API interface rr_model
                        2023-12-20 15:50:26,220 - MainThread - ###############################################################

                        2023-12-20 15:50:26,221 - MainThread - isPlugin ignored - only valid for SBC
                        2023-12-20 15:50:26,222 - MainThread - Initializing DL3msg queue
                        2023-12-20 15:50:26,222 - MainThread - 0 url: http://10.0.1.126/rr_gcode?gcode=M3291 B"Clear" post: False
                        2023-12-20 15:50:26,365 - mainLoop - ###########################
                        2023-12-20 15:50:26,367 - mainLoop - Starting mainLoop
                        2023-12-20 15:50:26,368 - mainLoop - ###########################

                        2023-12-20 15:50:26,368 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                        2023-12-20 15:50:26,369 - MainThread - Initiating with action set to start
                        2023-12-20 15:50:26,379 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                        2023-12-20 15:50:26,380 - MainThread - Calling nextaction start from main --> startup --> nextAction
                        2023-12-20 15:50:26,393 - MainThread - ++++++ start state requested ++++++
                        2023-12-20 15:50:26,397 - MainThread - nextAction requested stopCaptureLoop
                        2023-12-20 15:50:26,398 - MainThread - captureLoop is not running
                        2023-12-20 15:50:26,399 - MainThread - nextAction satisfied waitforCaptureLoop
                        2023-12-20 15:50:26,400 - MainThread - ++++++ Determining next logical action ++++++
                        2023-12-20 15:50:26,401 - MainThread - ++++++ Entering start state ++++++
                        2023-12-20 15:50:26,401 - MainThread - nextAction exiting normally
                        2023-12-20 15:50:26,451 - mainLoop - Standalone Status is processing
                        2023-12-20 15:50:26,452 - mainLoop - Error Processing message queue
                        2023-12-20 15:50:26,452 - mainLoop - 'global'
                        2023-12-20 15:50:29,336 - Thread-1 - !!!!! http call: {'displayStatus': ['true']} !!!!!
                        2023-12-20 15:50:31,459 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                        2023-12-20 15:50:31,461 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                        2023-12-20 15:50:31,689 - mainLoop - Standalone Status is processing
                        2023-12-20 15:50:31,690 - mainLoop - Error Processing message queue
                        2023-12-20 15:50:31,690 - mainLoop - 'global'
                        2023-12-20 15:50:36,696 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                        2023-12-20 15:50:36,703 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                        2023-12-20 15:50:36,812 - mainLoop - Standalone Status is processing
                        2023-12-20 15:50:36,813 - mainLoop - Error Processing message queue
                        2023-12-20 15:50:36,815 - mainLoop - 'global'
                        2023-12-20 15:50:36,816 - mainLoop - ****** Duet status changed to: processing from unknown *****
                        2023-12-20 15:50:36,818 - mainLoop - ****** stateMachine:
                        2023-12-20 15:50:36,820 - mainLoop - newstate = Capturing
                        2023-12-20 15:50:36,823 - mainLoop - currentState = Waiting
                        2023-12-20 15:50:36,826 - mainLoop - duetStatus = processing
                        2023-12-20 15:50:36,828 - mainLoop - lastDuetStatus = unknown
                        2023-12-20 15:50:36,829 - mainLoop - dontwait = True
                        2023-12-20 15:50:36,830 - mainLoop - detect = none
                        2023-12-20 15:50:36,835 - mainLoop - terminateState = -1
                        2023-12-20 15:50:36,837 - mainLoop - ******
                        2023-12-20 15:50:36,839 - mainLoop - ****** Print State changed to: Capturing from Waiting*****
                        2023-12-20 15:50:36,841 - mainLoop - Calling oneInterval for Camera 1
                        2023-12-20 15:50:36,843 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
                        2023-12-20 15:50:36,845 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
                        2023-12-20 15:50:36,927 - mainLoop - Current Layer is 124
                        2023-12-20 15:50:36,929 - mainLoop - elapsed: 10.918282985687256
                        2023-12-20 15:50:36,932 - mainLoop - ****** stateMachine:
                        2023-12-20 15:50:36,934 - mainLoop - newstate = Capturing
                        2023-12-20 15:50:36,937 - mainLoop - currentState = Capturing
                        2023-12-20 15:50:36,944 - mainLoop - duetStatus = processing
                        2023-12-20 15:50:36,946 - mainLoop - lastDuetStatus = unknown
                        2023-12-20 15:50:36,948 - mainLoop - dontwait = True
                        2023-12-20 15:50:36,949 - mainLoop - detect = none
                        2023-12-20 15:50:36,951 - mainLoop - terminateState = -1
                        2023-12-20 15:50:36,952 - mainLoop - ******
                        2023-12-20 15:50:39,334 - Thread-2 - !!!!! http call: {'displayStatus': ['true']} !!!!!
                        2023-12-20 15:50:41,959 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                        2023-12-20 15:50:41,960 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                        2023-12-20 15:50:42,060 - mainLoop - Standalone Status is processing
                        2023-12-20 15:50:42,061 - mainLoop - Error Processing message queue
                        2023-12-20 15:50:42,062 - mainLoop - 'global'
                        2023-12-20 15:50:47,069 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                        2023-12-20 15:50:47,070 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                        2023-12-20 15:50:47,131 - mainLoop - Standalone Status is processing
                        2023-12-20 15:50:47,132 - mainLoop - Error Processing message queue
                        2023-12-20 15:50:47,134 - mainLoop - 'global'
                        2023-12-20 15:50:47,136 - mainLoop - ****** stateMachine:
                        2023-12-20 15:50:47,137 - mainLoop - newstate = Capturing
                        2023-12-20 15:50:47,139 - mainLoop - currentState = Capturing
                        2023-12-20 15:50:47,140 - mainLoop - duetStatus = processing
                        2023-12-20 15:50:47,140 - mainLoop - lastDuetStatus = processing
                        2023-12-20 15:50:47,141 - mainLoop - dontwait = True
                        2023-12-20 15:50:47,142 - mainLoop - detect = none
                        2023-12-20 15:50:47,143 - mainLoop - terminateState = -1
                        2023-12-20 15:50:47,143 - mainLoop - ******
                        2023-12-20 15:50:47,146 - mainLoop - Calling oneInterval for Camera 1
                        2023-12-20 15:50:47,149 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
                        2023-12-20 15:50:47,150 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
                        2023-12-20 15:50:47,206 - mainLoop - Current Layer is 124
                        2023-12-20 15:50:47,207 - mainLoop - elapsed: 21.196640968322754
                        2023-12-20 15:50:47,208 - mainLoop - ****** stateMachine:
                        2023-12-20 15:50:47,209 - mainLoop - newstate = Capturing
                        2023-12-20 15:50:47,209 - mainLoop - currentState = Capturing
                        2023-12-20 15:50:47,210 - mainLoop - duetStatus = processing
                        2023-12-20 15:50:47,210 - mainLoop - lastDuetStatus = processing
                        2023-12-20 15:50:47,214 - mainLoop - dontwait = True
                        2023-12-20 15:50:47,216 - mainLoop - detect = none
                        2023-12-20 15:50:47,218 - mainLoop - terminateState = -1
                        2023-12-20 15:50:47,219 - mainLoop - ******
                        2023-12-20 15:50:49,329 - Thread-3 - !!!!! http call: {'displayStatus': ['true']} !!!!!
                        2023-12-20 15:50:52,226 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                        2023-12-20 15:50:52,228 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                        2023-12-20 15:50:52,396 - mainLoop - Standalone Status is processing
                        2023-12-20 15:50:52,397 - mainLoop - Error Processing message queue
                        2023-12-20 15:50:52,397 - mainLoop - 'global'
                        2023-12-20 15:50:57,403 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                        2023-12-20 15:50:57,405 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                        2023-12-20 15:50:57,521 - mainLoop - Standalone Status is processing
                        2023-12-20 15:50:57,527 - mainLoop - Error Processing message queue
                        2023-12-20 15:50:57,528 - mainLoop - 'global'
                        2023-12-20 15:50:57,531 - mainLoop - ****** stateMachine:
                        2023-12-20 15:50:57,532 - mainLoop - newstate = Capturing
                        2023-12-20 15:50:57,533 - mainLoop - currentState = Capturing
                        2023-12-20 15:50:57,534 - mainLoop - duetStatus = processing
                        2023-12-20 15:50:57,534 - mainLoop - lastDuetStatus = processing
                        2023-12-20 15:50:57,559 - mainLoop - dontwait = True
                        2023-12-20 15:50:57,560 - mainLoop - detect = none
                        2023-12-20 15:50:57,560 - mainLoop - terminateState = -1
                        2023-12-20 15:50:57,561 - mainLoop - ******
                        2023-12-20 15:50:57,562 - mainLoop - Calling oneInterval for Camera 1
                        2023-12-20 15:50:57,563 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
                        2023-12-20 15:50:57,564 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
                        2023-12-20 15:50:57,613 - mainLoop - Current Layer is 125
                        2023-12-20 15:50:57,616 - mainLoop - elapsed: 31.605782985687256
                        2023-12-20 15:50:57,621 - mainLoop - Calling Status from oneInterval --> checkForPause --> getDuet
                        2023-12-20 15:50:57,623 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                        2023-12-20 15:50:57,681 - mainLoop - Standalone Status is processing
                        2023-12-20 15:50:57,682 - mainLoop - Error Processing message queue
                        2023-12-20 15:50:57,684 - mainLoop - 'global'
                        2023-12-20 15:50:57,686 - mainLoop - Time - Camera1: capturing frame 1 at layer 125 after 30 seconds
                        2023-12-20 15:50:57,689 - mainLoop - Calling stack oneInterval --> onePhoto --> createworkingDir
                        2023-12-20 15:50:57,692 - mainLoop - Created working directory: /home/pi/DuetLapse/raspberrypi/10-0-1-126/9084_1
                        2023-12-20 15:50:57,696 - mainLoop - Calling stack onePhoto --> createworkingDir --> renamelogfile
                        2023-12-20 15:50:57,705 - mainLoop - Calling Jobname from onePhoto --> renameworkingDir --> getDuet
                        2023-12-20 15:50:57,709 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.file.fileName post: False
                        2023-12-20 15:50:57,768 - mainLoop - Renaming working directory: /home/pi/DuetLapse/raspberrypi/10-0-1-126/9084_1_Body1
                        2023-12-20 15:50:57,770 - mainLoop - Calling stack onePhoto --> renameworkingDir --> renamelogfile
                        2023-12-20 15:50:59,336 - Thread-4 - !!!!! http call: {'displayStatus': ['true']} !!!!!
                        2023-12-20 15:51:00,941 - mainLoop - Command Failure: ffmpeg -threads 1 -y -i http://localhost:8081/stream -vframes 1 -threads 1 /home/pi/DuetLapse/raspberrypi/10-0-1-126/9084_1_Body1/Camera1_00000001.jpeg
                        2023-12-20 15:51:00,944 - mainLoop - Error = ffmpeg version 4.3.6-0+deb11u1+rpt5 Copyright (c) 2000-2023 the FFmpeg developers
                        built with gcc 10 (Raspbian 10.2.1-6+rpi1)
                        configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --

                        undefined 1 Reply Last reply 20 Dec 2023, 22:08 Reply Quote 0
                        • undefined
                          sankafola @sankafola
                          last edited by 20 Dec 2023, 22:08

                          @stuartofmt

                          hi here are some updates

                          1-i fixed the issue with the localhost and ip so now we are back to this config am using a ribbon pi cam

                          -basedir /home/pi/DuetLapse
                          -duet 10.0.1.126
                          -port 8082
                          -seconds 30
                          -detect none
                          -weburl1 http://10.0.1.110/stream
                          -verbose
                          -camera1 stream

                          while printing here is the log

                          2023-12-20 17:06:00,452 - mainLoop - Output =
                          2023-12-20 17:06:00,454 - mainLoop - !!!!! There was a problem capturing an image !!!!!
                          2023-12-20 17:06:00,455 - mainLoop - ****** stateMachine:
                          2023-12-20 17:06:00,456 - mainLoop - newstate = Capturing
                          2023-12-20 17:06:00,456 - mainLoop - currentState = Capturing
                          2023-12-20 17:06:00,457 - mainLoop - duetStatus = processing
                          2023-12-20 17:06:00,457 - mainLoop - lastDuetStatus = processing
                          2023-12-20 17:06:00,458 - mainLoop - dontwait = True
                          2023-12-20 17:06:00,458 - mainLoop - detect = none
                          2023-12-20 17:06:00,458 - mainLoop - terminateState = -1
                          2023-12-20 17:06:00,459 - mainLoop - ******
                          2023-12-20 17:06:03,802 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                          2023-12-20 17:06:03,819 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                          2023-12-20 17:06:03,861 - mainLoop - Standalone Status is processing
                          2023-12-20 17:06:03,864 - mainLoop - Error Processing message queue
                          2023-12-20 17:06:03,866 - mainLoop - 'global'
                          2023-12-20 17:06:08,878 - mainLoop - Calling Status from run --> mainLoop --> getDuet
                          2023-12-20 17:06:08,879 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                          2023-12-20 17:06:09,063 - mainLoop - Standalone Status is processing
                          2023-12-20 17:06:09,064 - mainLoop - Error Processing message queue
                          2023-12-20 17:06:09,064 - mainLoop - 'global'
                          2023-12-20 17:06:10,734 - mainLoop - ****** stateMachine:
                          2023-12-20 17:06:10,735 - mainLoop - newstate = Capturing
                          2023-12-20 17:06:10,735 - mainLoop - currentState = Capturing
                          2023-12-20 17:06:10,736 - mainLoop - duetStatus = processing
                          2023-12-20 17:06:10,736 - mainLoop - lastDuetStatus = processing
                          2023-12-20 17:06:10,737 - mainLoop - dontwait = True
                          2023-12-20 17:06:10,737 - mainLoop - detect = none
                          2023-12-20 17:06:10,738 - mainLoop - terminateState = -1
                          2023-12-20 17:06:10,738 - mainLoop - ******
                          2023-12-20 17:06:10,738 - mainLoop - Calling oneInterval for Camera 1
                          2023-12-20 17:06:10,739 - mainLoop - Calling Layer from captureLoop --> oneInterval --> getDuet
                          2023-12-20 17:06:10,739 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=job.layer post: False
                          2023-12-20 17:06:10,844 - mainLoop - Current Layer is 1
                          2023-12-20 17:06:10,845 - mainLoop - elapsed: 403.8418319225311
                          2023-12-20 17:06:10,846 - mainLoop - Calling Status from oneInterval --> checkForPause --> getDuet
                          2023-12-20 17:06:10,846 - mainLoop - 0 url: http://10.0.1.126/rr_model?key=state post: False
                          2023-12-20 17:06:10,876 - mainLoop - Standalone Status is processing
                          2023-12-20 17:06:10,877 - mainLoop - Error Processing message queue
                          2023-12-20 17:06:10,878 - mainLoop - 'global'
                          2023-12-20 17:06:10,879 - mainLoop - Time - Camera1: capturing frame 1 at layer 1 after 30 seconds
                          2023-12-20 17:06:12,984 - mainLoop - Command Failure: ffmpeg -threads 1 -y -i http://10.0.1.110/stream -vframes 1 -threads 1 /home/pi/DuetLapse/raspberrypi/10-0-1-126/1739_1_Body1/Camera1_00000001.jpeg
                          2023-12-20 17:06:12,986 - mainLoop - Error = ffmpeg version 4.3.6-0+deb11u1+rpt5 Copyright (c) 2000-2023 the FFmpeg developers
                          built with gcc 10 (Raspbian 10.2.1-6+rpi1)
                          configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm
                          WARNING: library configuration mismatch
                          avutil configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
                          avcodec configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
                          avformat configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
                          avdevice configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
                          avfilter configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
                          avresample configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
                          swscale configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
                          swresample configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
                          postproc configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
                          libavutil 56. 51.100 / 56. 51.100
                          libavcodec 58. 91.100 / 58. 91.100
                          libavformat 58. 45.100 / 58. 45.100
                          libavdevice 58. 10.100 / 58. 10.100
                          libavfilter 7. 85.100 / 7. 85.100
                          libavresample 4. 0. 0 / 4. 0. 0
                          libswscale 5. 7.100 / 5. 7.100
                          libswresample 3. 7.100 / 3. 7.100
                          libpostproc 55. 7.100 / 55. 7.100
                          Input #0, mpjpeg, from 'http://10.0.1.110/stream':
                          Duration: N/A, bitrate: N/A
                          Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
                          Stream mapping:
                          Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native))
                          Press [q] to stop, [?] for help
                          Output #0, image2, to '/home/pi/DuetLapse/raspberrypi/10-0-1-126/1739_1_Body1/Camera1_00000001.jpeg':
                          Metadata:
                          encoder : Lavf58.45.100
                          Stream #0:0: Video: mjpeg, yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
                          Metadata:
                          encoder : Lavc58.91.100 mjpeg
                          Side data:
                          cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
                          frame= 1 fps=0.0 q=5.2 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.422x
                          video:20kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

                          2023-12-20 17:06:12,988 - mainLoop - Output =
                          2023-12-20 17:06:12,989 - mainLoop - !!!!! There was a problem capturing an image !!!!!
                          2023-12-20 17:06:12,991 - mainLoop - ****** stateMachine:

                          undefined 1 Reply Last reply 21 Dec 2023, 11:04 Reply Quote 0
                          • undefined
                            stuartofmt @sankafola
                            last edited by 21 Dec 2023, 11:04

                            @sankafola

                            It looks very much like ffmpeg is unhappy with your video stream. Unfortunately ffmpeg output (despite being very long) is light on clues.

                            Can you confirm that, from a browser (not on the pi), that this url results in the display of video ?
                            http://10.0.1.110/stream

                            What streaming software are you using? Does it generate any error messages ?

                            Are any images being created like: /home/pi/DuetLapse/raspberrypi/10-0-1-126/<>/Camera1_00000001.jpeg

                            if so - what happens when you try to open one ?

                            Assuming you are streaming video OK ...

                            Lets try getting ffmpeg to work without DuetLapse. Make sure you are streaming. From your home directory run
                            ffmpeg -y -i http://10.0.1.110/stream -vframes 1 ~/test.jpeg

                            You should get errors the same as above. Do you ? If yes - try reinstalling ffmpeg. Its possible there are some library dependency conflicts.

                            undefined 1 Reply Last reply 21 Dec 2023, 14:47 Reply Quote 0
                            • T3P3Tonyundefined
                              T3P3Tony administrators @stuartofmt
                              last edited by 21 Dec 2023, 13:55

                              @stuartofmt @sankafola

                              I don't know about that board in SBC.mode, maybe @jay_s_uk knows more?

                              www.duet3d.com

                              jay_s_ukundefined 1 Reply Last reply 21 Dec 2023, 14:05 Reply Quote 0
                              • jay_s_ukundefined
                                jay_s_uk @T3P3Tony
                                last edited by 21 Dec 2023, 14:05

                                That board works in SBC mode and should be no different to duet boards in SBC mode.
                                I believe at the moment, the board is being ran in standalone mode

                                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

                                sankafolaundefined 1 Reply Last reply 21 Dec 2023, 14:36 Reply Quote 0
                                • sankafolaundefined
                                  sankafola @jay_s_uk
                                  last edited by 21 Dec 2023, 14:36

                                  @jay_s_uk @stuartofmt

                                  yes its running on standalone not sbc

                                  1 Reply Last reply Reply Quote 0
                                  • sankafolaundefined
                                    sankafola @stuartofmt
                                    last edited by 21 Dec 2023, 14:47

                                    @stuartofmt

                                    let me do point by point

                                    Can you confirm that, from a browser (not on the pi), that this url results in the display of video ?
                                    http://10.0.1.110/stream

                                    yes

                                    What streaming software are you using? Does it generate any error messages ?

                                    answer :motion ver 4.3.2

                                    Are any images being created like: /home/pi/DuetLapse/raspberrypi/10-0-1-126/<>/Camera1_00000001.jpeg

                                    answer :yes 1 image

                                    Image 2023-12-21 at 9.39 AM.jpg

                                    answer : on the duetlapse also says 1 image

                                    if so - what happens when you try to open one ?

                                    answer : it open no issues an image of the camera from the room am in it

                                    Assuming you are streaming video OK ...

                                    it is ok

                                    ffmpeg -y -i http://10.0.1.110/stream -vframes 1 ~/test.jpeg

                                    it takes a pic and save it under home 1 pic yes

                                    ou should get errors the same as above. Do you ? If yes - try reinstalling ffmpeg. Its possible there are some library dependency conflicts.

                                    answer : yes i get the same as above while running it looks like something with the config of the ffmpeg maybe it need only to be disabled

                                    question : is the 10.0.1.110:8082 suppose to show an image when it takes one? i mean the first page is it suppose to show the live pic ?

                                    why is it only taking one pic only while printing it suppose to take 1 every 20 sec no ?

                                    see below

                                    Image 2023-12-21 at 9.46 AM.jpg

                                    45 layres and only 1 pic

                                    stuartofmtundefined 1 Reply Last reply 21 Dec 2023, 16:31 Reply Quote 0
                                    • stuartofmtundefined
                                      stuartofmt @sankafola
                                      last edited by 21 Dec 2023, 16:31

                                      @sankafola

                                      i mean the first page is it suppose to show the live pic ?

                                      No - it displays the last still image it has capture. In this case - it has not captured any images.

                                      Do you have motion set to stream ? I.e. when viewing in a browser does http://10.0.1.110/stream show live video (as opposed to a single static image)?

                                      What is happening is ffmpeg is not able to capture from the motion feed. So either a problem with ffmpeg or motion or both 😞

                                      Assuming that the motion feed is video. What happens when you run ffmpeg -y -i http://10.0.1.110/stream -vframes 1 ~/tes[x].jpeg (changing [x] to get different images).

                                      Note that the command above is subtly different to the one used in DuetLapse - which may not be supported by the ffmpeg version on your machine (although its supposed to be). But one step at a time ...

                                      sankafolaundefined 1 Reply Last reply 21 Dec 2023, 19:39 Reply Quote 0
                                      • sankafolaundefined
                                        sankafola @stuartofmt
                                        last edited by sankafola 21 Dec 2023, 19:39

                                        @stuartofmt

                                        hi here is the answers

                                        Do you have motion set to stream ? I.e. when viewing in a browser does http://10.0.1.110/stream show live video (as opposed to a single static image)?

                                        answer : yes live video

                                        Assuming that the motion feed is video. What happens when you run ffmpeg -y -i http://10.0.1.110/stream -vframes 1 ~/tes[x].jpeg (changing [x] to get different images).

                                        answer :it take a pic and i can open that pic and i change the name to anotherone in the link and redo it and it save another pic

                                        Note that the command above is subtly different to the one used in DuetLapse - which may not be supported by the ffmpeg version on your machine (although its supposed to be). But one step at a time ...

                                        answer : yes it works the same as you gave me it save a picture every time i do it

                                        my config now is

                                        -basedir /home/pi/DuetLapse
                                        -duet 10.0.1.126
                                        -port 8082
                                        -seconds 30
                                        -detect none
                                        -weburl1 http://10.0.1.110/stream
                                        -verbose
                                        -camera1 stream

                                        maybe that camera1 stream is wrong ?

                                        it seem the motion is saving video files see below the motion log

                                        2023-12-21-145229_1021x470_scrot.png

                                        and maybe the format of the streaming need to be changed to mjpeg so the Duetlapse can see it but what i need to do to make this happen in motion ? But that is the job of ffmpeg no??

                                        another note i find opne image always under 10-0-1-126 which is camera1_0-000001.jpg if i delete it it takes another pic with the same name but only one pic same name is this normal ? what is the output looks like a clip with still images or images to be a clip in another program ?

                                        2023-12-22-083905_810x419_scrot.png

                                        stuartofmtundefined 1 Reply Last reply 22 Dec 2023, 13:56 Reply Quote 0
                                        • stuartofmtundefined
                                          stuartofmt @sankafola
                                          last edited by 22 Dec 2023, 13:56

                                          @sankafola

                                          There should be sequentially named images in the "capture" folder. The fact that there is only one is a symptom of the problem.

                                          Try this version. Its a long shot but I have removed a portion of the ffmpeg command so that it is the same as the one I had you manually test. If that does not change anything, then I think the issue is with motion.
                                          Ideally - you want motion to be configured to output jpeg or mjpeg. I do not know what it streams by default. Also - I would disable the motion detection (just to take a variable out of play).
                                          I used motion a long time ago but the version at that time used way too much CPU - so I developed videostream. That has the disadvantage of using opencv which can be tricky to get installed. Bottom line, I cannot help you directly with motion.

                                          DuetLapse3.py

                                          sankafolaundefined 1 Reply Last reply 22 Dec 2023, 14:03 Reply Quote 0
                                          20 out of 58
                                          • First post
                                            20/58
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA