je n'arrive pas à changer le port de streaming de ma camera sur octoprint... du coup j'ai passé la webcam en 8082 et la camera pi en 8080... sans succès :dès que je l'active, le demon repasse en NOKmika-nt28 a écrit : ↑14 févr. 2018, 09:50Je vois ce qui cloche.
Dans la partie streaming, c'est pour que motion stream un flux.
C'est tres pratique si tu as un flux en connexion limité (ce n'est pas le cas) ou un flux trop lourd pour un navigateur (ca peut etre le cas en HD)
Dans tous les cas le port 80 c'est le port qu'utilise par defaut un navigateur pour une page internet, tu ne peux donc pas streamé dessus.
Je pense que ta premiere camera tu as mis comme moi 8081 donc pour cela je te conseil la 8082
voici le log :
Code : Tout sélectionner
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] motion_startup: Motion 4.1.1+git20180209-39d4c77 Started
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] motion_startup: Using log type (ALL) log level (NTC)
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] become_daemon: Motion going to daemon mode
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] motion_startup: Motion running as daemon process
[0:motion] [NTC] [ENC] [Feb 14 10:15:32] ffmpeg_global_init: ffmpeg libavcodec version 57.64.101 libavformat version 57.56.101
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] main: Camera ID: 1 is from /etc/motion/camera23.conf
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] main: Camera ID: 1 Camera Name: (null) Device: /dev/video0
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] main: Camera ID: 2 is from /etc/motion/camera29.conf
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] main: Camera ID: 2 Camera Name: (null) Service: http:
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] main: Stream port 8080
[1:ml1] [NTC] [ALL] [Feb 14 10:15:32] motion_init: Camera 1 started: motion detection Enabled
[1:ml1] [NTC] [VID] [Feb 14 10:15:32] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] [Feb 14 10:15:32] v4l2_device_open: Using videodevice /dev/video0 and input -1
[0:motion] [NTC] [ALL] [Feb 14 10:15:32] main: Waiting for threads to finish, pid: 12346
[2:ml2] [NTC] [ALL] [Feb 14 10:15:32] motion_init: Camera 2 started: motion detection Enabled
[2:ml2] [NTC] [VID] [Feb 14 10:15:32] vid_start: Opening Netcam
[2:ml2] [NTC] [NET] [Feb 14 10:15:32] netcam_start: Network Camera starting for camera ((null))
[0:wc0] [CRT] [STR] [Feb 14 10:15:32] http_bindsock: error listening: Address already in use
[0:wc0] [NTC] [STR] [Feb 14 10:15:32] motion_web_control: motion-httpd thread exit
[2:ml2] [NTC] [NET] [Feb 14 10:15:32] netcam_setup_html: connected, going on to read image.
[2:ml2] [NTC] [ALL] [Feb 14 10:15:32] image_ring_resize: Resizing pre_capture buffer to 1 items
[2:nc3] [NTC] [NET] [Feb 14 10:15:32] netcam_handler_loop: Camera handler thread [3] started