Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Einbindung (IP) Kamera über "Motion"

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Einbindung (IP) Kamera über "Motion"

    This topic has been deleted. Only users with topic management privileges can see it.
    • ruhigundrelaxed
      ruhigundrelaxed last edited by

      Hmmm. Ich meinte nicht die Latenz cam->vlc, sondern die Latenz motion-mjpeg-stream->vlc. Also die Url des motion http streams in vlc. (Um den browser-player als Ursache auszuschließen.) falls du x11 auf dem pi hast, könntest du auch direkt mal mit vlc /dev/video0 testen. (Um gstreamer h264 decoding als Ursache auszuschließen.) Ich denke cam -> vlc (also direkt rtsp über vlc) markiert die minimale Latenz. (Weniger geht nicht.)

      1 Reply Last reply Reply Quote 0
      • ruhigundrelaxed
        ruhigundrelaxed last edited by

        Ok, ich habe mal was gegen den "one cam bug" getan. Bitte mal den file "motion.js" aus dem git ziehen und damit die bestehende ersetzen.

        1 Reply Last reply Reply Quote 0
        • fu_zhou
          fu_zhou last edited by

          Bald gibt's hier ein Update mit Tutorial, wie jede Billig-IP-Kamera in ioBroker eingebunden werden kann - rtsp ist Voraussetzung, das kann aber so ziemlich jede Kamera, wie es scheint.

          Damit ist es auch möglich, Bilder auf's Handy geschickt zu bekommen, obwohl die Kamera keinen URL für Snapshots "versteht".

          Stay tuned…

          1 Reply Last reply Reply Quote 0
          • 0
            0018 last edited by

            @fu_zhou:

            Bald gibt's hier ein Update mit Tutorial, wie jede Billig-IP-Kamera in ioBroker eingebunden werden kann - rtsp ist Voraussetzung, das kann aber so ziemlich jede Kamera, wie es scheint.

            Damit ist es auch möglich, Bilder auf's Handy geschickt zu bekommen, obwohl die Kamera keinen URL für Snapshots "versteht".

            Stay tuned… `

            Hi,

            bin auf der Suche nach einer ähnlichen Anbindung.

            Kannst du schon sagen wann das Tutorial ungefähr fertig sein wird?

            Mfg

            1 Reply Last reply Reply Quote 0
            • fu_zhou
              fu_zhou last edited by

              Über's verlängerte Wochenende jetzt sollte ich fertig werden.

              1 Reply Last reply Reply Quote 0
              • A
                andyb last edited by

                @fu_zhou:

                Über's verlängerte Wochenende jetzt sollte ich fertig werden. `
                Ohne irgendeine Art von Druck erzeugen zu wollen, einfach weil ich ne Lösung suche…. Gibt es da ne Zeitschiene? :oops:

                1 Reply Last reply Reply Quote 0
                • fu_zhou
                  fu_zhou last edited by

                  Gibt's seit Ende Mai:

                  http://forum.iobroker.net/viewtopic.php … 900#p68900

                  Kannst dich gleich mal zum Thema v4l2loopback einbringen…

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jautze last edited by

                    Hallo,

                    ich bekomme den Motion Adapter nicht zum laufen.

                    In den Adaptern habe ich ihn hinzugefügt, in den Instanzen auch und konfiguriert, aber in den Objekten legt er nix an. kann das am Admin 3.x Adapter hängen.

                    Wenn ich was von der Konsole schicke:

                    echo {"event": "on_motion_detected", "thread": 3, "timestamp": "1520863657", "noiselevel": 15} | /bin/netcat 192.168.1.138 6666

                    bekomme ich im Broker:

                    motion.0 2018-03-13 07:42:26.799 error at TCP.onread (net.js:547:20)

                    motion.0 2018-03-13 07:42:26.799 error at Socket.Readable.push (_stream_readable.js:134:10)

                    motion.0 2018-03-13 07:42:26.799 error at readableAddChunk (_stream_readable.js:176:18)

                    motion.0 2018-03-13 07:42:26.799 error at Socket.emit (events.js:188:7)

                    motion.0 2018-03-13 07:42:26.799 error at emitOne (events.js:96:13)

                    motion.0 2018-03-13 07:42:26.799 error at Socket. (/opt/iobroker/node_modules/iobroker.motion/lib/motion_helper.js:66:29)

                    motion.0 2018-03-13 07:42:26.799 error at EventEmitter.emit (events.js:188:7)

                    motion.0 2018-03-13 07:42:26.799 error at emitOne (events.js:96:13)

                    motion.0 2018-03-13 07:42:26.799 error at EventEmitter. (/opt/iobroker/node_modules/iobroker.motion/motion.js:150:27)

                    motion.0 2018-03-13 07:42:26.799 error at Object.parse (native)

                    motion.0 2018-03-13 07:42:26.799 error SyntaxError: Unexpected token e in JSON at position 1

                    motion.0 2018-03-13 07:42:26.796 error uncaught exception: Unexpected token e in JSON at position 1

                    Wie gesagt in den Objekten gibt es nix mit motion.

                    Wer kann mir helfen?

                    Danke und viele Grüße

                    Marcel Jaud

                    1 Reply Last reply Reply Quote 0
                    • lobomau
                      lobomau last edited by

                      @Jautze:

                      Hallo,

                      ich bekomme den Motion Adapter nicht zum laufen.

                      In den Adaptern habe ich ihn hinzugefügt, in den Instanzen auch und konfiguriert, aber in den Objekten legt er nix an. kann das am Admin 3.x Adapter hängen.

                      Wenn ich was von der Konsole schicke:

                      echo {"event": "on_motion_detected", "thread": 3, "timestamp": "1520863657", "noiselevel": 15} | /bin/netcat 192.168.1.138 6666

                      bekomme ich im Broker:

                      motion.0 2018-03-13 07:42:26.799 error at TCP.onread (net.js:547:20)

                      motion.0 2018-03-13 07:42:26.799 error at Socket.Readable.push (_stream_readable.js:134:10)

                      motion.0 2018-03-13 07:42:26.799 error at readableAddChunk (_stream_readable.js:176:18)

                      motion.0 2018-03-13 07:42:26.799 error at Socket.emit (events.js:188:7)

                      motion.0 2018-03-13 07:42:26.799 error at emitOne (events.js:96:13)

                      motion.0 2018-03-13 07:42:26.799 error at Socket. (/opt/iobroker/node_modules/iobroker.motion/lib/motion_helper.js:66:29)

                      motion.0 2018-03-13 07:42:26.799 error at EventEmitter.emit (events.js:188:7)

                      motion.0 2018-03-13 07:42:26.799 error at emitOne (events.js:96:13)

                      motion.0 2018-03-13 07:42:26.799 error at EventEmitter. (/opt/iobroker/node_modules/iobroker.motion/motion.js:150:27)

                      motion.0 2018-03-13 07:42:26.799 error at Object.parse (native)

                      motion.0 2018-03-13 07:42:26.799 error SyntaxError: Unexpected token e in JSON at position 1

                      motion.0 2018-03-13 07:42:26.796 error uncaught exception: Unexpected token e in JSON at position 1

                      Wie gesagt in den Objekten gibt es nix mit motion.

                      Wer kann mir helfen?

                      Danke und viele Grüße

                      Marcel Jaud `
                      Ich habe mich nun wieder mit dem Adapter motion beschäftigt und habe ihn nun am Laufen 🙂

                      Den Motion-Adapter hast du in den grünen Status bekommen?

                      Mein Test-System:

                      Pi3

                      Admin 3.3.3

                      node 6.3.1

                      npm 3.10.10

                      Ich habe eine ganz einfache Installation durchgeführt, ohne gstreamer und v4l2loopback.

                      Auf dem Pi3 habe ioBroker und motion am Laufen. Motion braucht 10% von der CPU. Nun kann ich testen…

                      1 Reply Last reply Reply Quote 0
                      • T
                        Terrax last edited by

                        Hallo @lobomau, Hallo zusmammen,

                        bin neu hier im Forum und möchte meine Foscam FI9901EP mittels motion in VIS einbinden.

                        Habe bisher einige Views angelegt, Navigation, etc. und nun wäre video dran.

                        Zur Vorgeschichte:

                        Mit der SW von Foscam habe ich diese bereits am laufen, Bewegungen werden registriert und auf einem

                        USB Stick an meinem Router (Speedport) gespeichert (Video und Foto). Diesen habe ich als FTP-Server in

                        der SW von Foscam angelegt (USB-Stick ist dann ein Laufwerk in meinem Netz) Hier würde ich dann auch

                        gerne von iobroker aus speichern wollen. Live Video stream habe ich auch mal zur Übung mit VLC eingerichtet

                        (rtsp://admin:password@192.168.2.XXX:88/videoMain) und läuft.

                        Da ich die Kamera nun aber über iobroker laufen lassen möchte, bei erkannter Bewegung dann zudem

                        auch Licht oder was anderes schalten möchte, meine Frage wie ich die Foscam am besten über motion in VIS

                        einbinden kann.

                        Und ja, ich habe hier im Forum schon sehr viel darüber gelesen, auch eine Anleitung wie hier beschrieben

                        mit v4l2loopback u.s.w. Das führte am Ende zu einer Neuinstallation da ich das mit der Einbindung eines

                        USB Stick am PI nicht hinbekam (hängte sich am Ende auf und ich kam nicht mehr rein)

                        Habe aktuell motion 4.0 (über die Konsole hochgeladen) weil in iobroker mir trotz mehrfacher Versuche

                        nur eine version 0.0.1 angeboten wird. Höher kriege ich das nur über die Konsole hin. Mache ich da was falsch ?

                        Weiterhin Admin 3.3.5, node 6.14.1, npm 3.10.10

                        Habe zwischendurch mal versucht mittels http bzw. rtsp und bekannten widgets (z.B. CAM/Snapshot, …)

                        das video in VIS einzubinden. Leider kläglich gescheitert, war echt frustrierend. Sicher mache ich hier einen

                        einfachen Fehler, komme aber einfach nicht drauf.

                        Wäre schön hier etwas Hilfe zu bekommen.

                        Viele Grüße

                        Rainer

                        1 Reply Last reply Reply Quote 0
                        • Ralla66
                          Ralla66 Most Active last edited by

                          Hallo Rainer,

                          direkte Einbindung von rtsp Streams in VIS habe ich nicht verwirklicht bekommen.

                          Http Streams liefen aber mit VIS.

                          Versuche mal ob deine Cam auch http kann, wäre einfacher.

                          Meine rtsp Streams laufen bei mir über Motion auch mit VIS.

                          Im Prinzip rufe ich per VIS per http meinen Raspi mit motion auf mit http://IP:Port.

                          Dieser Port verbindet dann mit Motion , der die Cam mit dem rtsp Stream aufruft.

                          In motion müssen erst die Dateien angepasst werden.

                          Liegt bei mir unter etc/motion.

                          Dies sind die motion.conf und die camera1-dist.conf.

                          Einfacher geht es per http.

                          Http Stream teste am besten mit Mozilla oder so, kein IE.

                          Der VLC ist weniger geeignet da er so ziemlich alles an Syntax nimmt.

                          Gut fürs abspielen, weniger geeignet um Streams zu testen.

                          Syntax ist meist:

                          http://User:PW@CamIP:Port/bla bla

                          oder ohne PW

                          http://CamIP:Port/blabla

                          Dieses wäre zu testen:

                          https://www.ispyconnect.com/man.aspx?n=foscam

                          Gruß Ralf

                          1 Reply Last reply Reply Quote 0
                          • T
                            Terrax last edited by

                            Hallo Ralf,

                            super danke für die Infos. Werde mich weiter rein arbeiten und mit http testen.

                            Motion habe ich installiert doch da komme ich mit den Angaben in der motion.config schon ins

                            schleudern. Ganz abgesehen von der camera1-dist.conf, die habe ich noch garnicht auf dem Schirm

                            gehabt. Habe was das angeht keine Programmierkenntnisse und bin auch erst seid ca. 2 Wochen

                            mit iobroker etwas tiefer in diese Welt eingestiegen aber super spannend. Vorher TV ambilight

                            mit Pi3, Hyperion und libreELEC erstellt. Das war aber gefühlt Pipifax gegen das hier. Lese mich

                            halt so durch und probiere. Daher nochmal Danke für deine Tips. Wenn Du noch einen Thread parat

                            hast, wo das von Dir genannte weiter beschrieben wird bzw. wo Du dir deine Anregungen/Infos

                            geholt hast, immer gerne.

                            Gruß

                            Rainer

                            1 Reply Last reply Reply Quote 0
                            • Ralla66
                              Ralla66 Most Active last edited by

                              Hallo Rainer,

                              da hast du aber viel vor. Ja die Einstellung ist schon heavy.

                              Kleine Starthilfe.

                              In der motion.conf setzt du deamon auf on.

                              Ganz am Ende steht:

                              Remember: If you have more than one camera you must have one

                              camera file for each camera. E.g. 2 cameras requires 3 files:

                              This motion.conf file AND camera1.conf and camera2.conf.

                              Only put the options that are unique to each camera in the

                              camera config files.

                              camera /etc/motion/camera1-dist.conf

                              camera /etc/motion/camera2-dist.conf

                              ; camera /etc/motion/camera3.conf

                              ; camera /etc/motion/camera4.conf

                              Hier achte darauf das vor camera /etc/motion/camera1-dist.conf kein " ; " steht.

                              Sonst wird die Datei nicht aufgerufen.

                              In der camera1-dist.conf änderst du:

                              Zeile 23 User:PW deine Config

                              Zeile 33 Deine Cam IP nicht die vom Rasp

                              Zeile 85 Port ist 8085 des Raspberry

                              Dann sollte die Cam per http://RaspIP:8085 erreichbar sein.

                              Den Adapter nutze ich nicht.

                              Noch einfacher geht es wenn du http der Camera direkt in Vis einbindest.

                              Gruß Ralf

                              ! # /etc/motion/camera1.conf
                              ! #
                              ! # This config file was generated by motion 4.0
                              ! ###########################################################
                              ! # Capture device options
                              ! ############################################################
                              ! # Camera Id
                              ! # Consistent identification number to assign to each camera across multiple
                              ! # invocations of Motion.
                              ! # Default: The order when the camera file was read
                              ! # camera_id = 1
                              ! # Set the authentication method (default: 0)
                              ! # 0 = disabled
                              ! # 1 = Basic authentication
                              ! # 2 = MD5 digest (the safer authentication)
                              ! stream_auth_method 1
                              ! # Authentication for the stream. Syntax username:password
                              ! # Default: not defined (Disabled)
                              ! stream_authentication User:PW
                              ! # Username and password for network camera (only if required). Default: not defined
                              ! # Syntax is user:password
                              ! ; netcam_userpass value
                              ! # Videodevice to be used for capturing (default /dev/video0)
                              ! # for FreeBSD default is /dev/bktr0
                              ! # videodevice /dev/video0
                              ! # netcam_url http://192.168.2.xxx:xxxx/cgi-bin/hi3510/snap.cgi?&-getstream
                              ! netcam_url rtsp://User:PW@192.168.2.xxx:xxxx/11
                              ! # Image width (pixels). Valid range: Camera dependent, default: 640
                              ! width 1280
                              ! # Image height (pixels). Valid range: Camera dependent, default: 480
                              ! height 720
                              ! # The video input to be used (default: -1)
                              ! # Should normally be set to 1 for video/TV cards, and -1 for USB cameras
                              ! input -1
                              ! # Draw a user defined text on the images using same options as C function strftime(3)
                              ! # Default: Not defined = no text
                              ! # Text is placed in lower left corner
                              ! text_left CAMERA 1
                              ! ############################################################
                              ! # Target Directories and filenames For Images And Films
                              ! # For the options snapshot_, picture_, mpeg_ and timelapse_filename
                              ! # you can use conversion specifiers
                              ! # %Y = year, %m = month, %d = date,
                              ! # %H = hour, %M = minute, %S = second,
                              ! # %v = event, %q = frame number, %t = camera id number,
                              ! # %D = changed pixels, %N = noise level,
                              ! # %i and %J = width and height of motion area,
                              ! # %K and %L = X and Y coordinates of motion center
                              ! # %C = value defined by text_event
                              ! # Quotation marks round string are allowed.
                              ! ############################################################
                              ! # Target base directory for pictures and films
                              ! # Recommended to use absolute patch. (Default: current working directory)
                              ! #target_dir /tmp/motion/cam1
                              ! # File path for motion triggered images (jpeg or ppm) relative to target_dir
                              ! # Default: %v-%Y%m%d%H%M%S-%q
                              ! # Default value is equivalent to legacy oldlayout option
                              ! # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q
                              ! # File extension .jpg or .ppm is automatically added so do not include this
                              ! # Set to 'preview' together with best-preview feature enables special naming
                              ! # convention for preview shots. See motion guide for details
                              ! picture_filename CAM1_%v-%d%m%Y%H%M%S-%q
                              ! ############################################################
                              ! # Live Stream Server
                              ! ############################################################
                              ! # The mini-http server listens to this port for requests (default: 0 = disabled)
                              ! stream_port 8085
                              ! # Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
                              ! # The filename of the picture is appended as an argument for the command.
                              ! #on_picture_save /usr/local/motion-extras/camparse2.pl
                              ! # Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
                              ! # Filename of movie is appended as an argument for the command.
                              ! #on_movie_end /usr/local/motion-extras/mpegparse2.pl
                              5230_unbenannt.jpg

                              1 Reply Last reply Reply Quote 0
                              • T
                                Terrax last edited by

                                Hallo Rolf,

                                vielen Dank, das ist klasse.

                                Den Snapshot meiner Foscam habe ich bereits testen und in VIS einbinden können mit

                                http://ip address:port/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=xxx

                                Das mit dem Video klappt noch nicht, hab noch nicht raus warum, habe danach gearbeitet:

                                Step 1: Set one of the streams to MJPEG.

                                As the current chipset on HD camerasonly supports two H.264 streams (Mainstream and Substream), we need to set one of the streams to an MJPEG stream, as the chipset does not support three streams. After we set one of the streams to an MJPEG stream, we can fetch the videostream using an HTTP URL.

                                Here is an example URL on how to set one stream to an MJPEG stream:

                                http://ip address:port/cgi-bin/CGIProxy.fcgi?cmd=setSubStreamFormat&format=1&usr=admin&pwd=

                                und dann das

                                Step 2: After setting the MJPEG stream, it can be fetched using an HTTP URL.

                                See the example HTTP URL you would use to fetch the MJPEG videostream. Note that this differs from older MJPEG cameras like the FI8910W, but the videostream result is the same.

                                http://ip address:port/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin&pwd=xxx

                                Bekomme damit aber keine Verbindung, weder in Mozilla noch in VIS.

                                Werden weiter probieren und diene Tipps weiter durcharbeiten. Wenn das mal klappt probiere ich das mit motion weiter aus.

                                Gruß

                                Rainer

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Terrax last edited by

                                  Hallo Ralf,

                                  soweit habe ich das eingetragen.

                                  Folgendes fällt mir auf. In der motion.config (aufgerufen mit sudo nano /etc/motion/motion.conf)

                                  steht bei mir

                                  camera /etc/motion/camera1.conf

                                  camera /etc/motion/camera2.conf

                                  Bei Dir war noch "-dist" dahinter (camera1-dist.conf) Habe ich bei mir auch so geändert. Damit konnte ich auch die

                                  camera1-dist.conf aufrufen.

                                  Hier sieht es bei mir jetzt so aus mit einem Unterschied:

                                  Camera Id

                                  Consistent identification number to assign to each camera across multiple

                                  invocations of Motion.

                                  Default: The order when the camera file was read

                                  camera_id = 1

                                  Videodevice to be used for capturing (default /dev/video0)

                                  for FreeBSD default is /dev/bktr0

                                  videodevice /dev/video0

                                  netcam_url http://192.168.2.XXX:88/cgi-bin/hi350/s … -getstream (ist das richtig das ich hier auch anpasse, meine IP und Port ?)

                                  netcam_url rtsp://USER:PW@192.168.2.XXX:88/11 (ist das richtig das ich hier auch anpasse mein PW, Port und USER?)

                                  The video input to be used (default: -1)

                                  Should normally be set to 1 for video/TV cards, and -1 for USB cameras

                                  input -1

                                  Draw a user defined text on the images using same options as C function strftime(3)

                                  Default: Not defined = no text

                                  Text is placed in lower left corner

                                  text_left CAMERA 1

                                  Da fehlen bei mir folgende Teile die bei Dir drin sind:

                                  Set the ...

                                  .

                                  .

                                  stream ...

                                  Authentication ...

                                  .

                                  .

                                  stream_authentication ...

                                  Username and password ...

                                  .

                                  .

                                  ; netcam_userpass valve

                                  Image width ...

                                  Image height ...

                                  Ansonsten identisch. Kann/soll ich das alles nachtragen oder ist bei mir motion nicht korrekt installiert ?

                                  Muss ich motion womöglich nochmal installieren ?

                                  Sorry wenn ich mit so einem Kram daher komme.

                                  Gruß

                                  Rainer

                                  1 Reply Last reply Reply Quote 0
                                  • Ralla66
                                    Ralla66 Most Active last edited by

                                    Hallo Rainer,

                                    ja ist schwer am Anfang.

                                    Zu:

                                    Folgendes fällt mir auf. In der motion.config (aufgerufen mit sudo nano /etc/motion/motion.conf)

                                    steht bei mir

                                    camera /etc/motion/camera1.conf

                                    camera /etc/motion/camera2.conf

                                    Bei Dir war noch "-dist" dahinter (camera1-dist.conf) Habe ich bei mir auch so geändert. Damit konnte ich auch die

                                    camera1-dist.conf aufrufen.

                                    In der /etc/motion/motion.conf wird der Aufruf der Datei gestartet mit dem Name / Pfad der Datei.

                                    Dieser Pfad / Name muß nur gleich sein.

                                    Also wenn in der motion.conf du camera /etc/motion/camera1.conf stehen hast muß unter

                                    /etc/motion/ die Datei heißen camera1.conf

                                    Bei mir steht nur -dist dahinter.

                                    In der /etc/motion/motion.conf steht bei mir camera /etc/motion/camera1-dist.conf.

                                    Unter /etc/motion liegt dann die camera1-dist.conf.

                                    Thema # und ; dadurch wird der Text nicht gelesen oder Befehl nicht ausgeführt.

                                    Also wird das nicht gelesen:

                                    netcam_url http://192.168.2.XXX:88/cgi-bin/hi350/s … -getstream (ist das richtig das ich hier auch anpasse, meine IP und Port ?)

                                    War bei mir eine Testzeile, kannst du löschen.

                                    darunter trägst du deinen lauffähigen Stream ein:

                                    war bei dir ja rtsp://admin:password@192.168.2.XXX:88/videoMain

                                    also :

                                    netcam_url rtsp://admin:password@192.168.2.XXX:88/videoMain

                                    Zwischen url und rtsp muß ein leerzeichen sein !

                                    Damit sollte das laufen.

                                    Mit stream Authentication ... Zeile 23 hättest du ein PW für Camera 1 vergeben.

                                    Muß aber nicht.

                                    Wenn alles richtig ist, per Mozilla http://raspiip:8085

                                    Immer fragen, habe 2 Wochen gebraucht bis das rannte.

                                    Gruß Ralf

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      Terrax last edited by

                                      Hallo Ralf,

                                      danke dafür. Soweit verstanden.

                                      Ich muss nochmal nachhaken:

                                      In der motion.conf stand bei mir "camera /etc/motion/camera1.conf"

                                      Wenn ich so die camera1.conf aufrufe ist diese leer!

                                      Erst wenn ich in der motion.conf auf camera1-dist.conf umbenenne, so wie bei Dir, dann wird die .conf auch

                                      entsprechend angezeigt. Das nur mal wie es bei mir aussieht, komisch oder ?

                                      Dann alle Einträge wie von Dir beschrieben vorgenommen, unter Mozilla gestartet, keine Verbindung.

                                      Noch eine Idee ?

                                      Gruß

                                      Rainer

                                      1 Reply Last reply Reply Quote 0
                                      • Ralla66
                                        Ralla66 Most Active last edited by

                                        Hallo Rainer,

                                        Problem bei mir ist motion startet nicht automatisch nach reboot oder shutdown.

                                        Dies obwohl in der motion.conf deamon on steht.

                                        Gib mal in der Konsole ein sudo motion start.

                                        Poste mal was der macht / anzeigt.

                                        Hinzu kopiere mal den Text des Camaufrufes in der motion.conf.

                                        Wenn möglich deine dist in den Spoiler legen.

                                        User/ Port / PW kannste ja xen.

                                        Camera1.conf oder Camera1-dist.conf sollte min bei dir so aussehen:

                                        stream_auth_method 1

                                        netcam_url rtsp://admin:password@192.168.2.XXX:88/videoMain

                                        width 640

                                        height 480

                                        input -1

                                        text_left CAMERA 1

                                        picture_filename CAM1_%v-%d%m%Y%H%M%S-%q

                                        stream_port 8085

                                        Wie oben erwähnt muß der Pfad / Name in der motion.conf mit der Datei in etc/motion/xy gleich sein.

                                        Motion selbst ist bei mir ca. 16GB groß.

                                        Downloadzeit war ca. 2 Stunden mit allen Codecs.

                                        Wie groß ist deine motion ?

                                        Zusätzlich habe ich noch installiert ffmpeg und h264 von hier:

                                        https://hannes.enjoys.it/blog/2016/03/f … pberry-pi/

                                        Rechte hatte ich geändert mit:

                                        sudo chmod 774 /etc/motion/camera1-dist.conf

                                        sudo chmod 774 /etc/motion/motion.conf

                                        Ausführbarkeit glaube mit :

                                        sudo chown root:pi /etc/motion/camera1-dist.conf

                                        sudo chown root:pi /etc/motion/motion.conf

                                        Du schriebst :

                                        In der motion.conf stand bei mir "camera /etc/motion/camera1.conf"

                                        Wenn ich so die camera1.conf aufrufe ist diese leer!

                                        Erst wenn ich in der motion.conf auf camera1-dist.conf umbenenne, so wie bei Dir, dann wird die .conf auch

                                        entsprechend angezeigt. Das nur mal wie es bei mir aussieht, komisch oder ?

                                        Eher nicht merkwürdig, dann ist die Datei camera1.conf leer.

                                        Bei der Installation von motion heißt die Datei immer camera1-dist.conf usw.

                                        Damit deine Config bei Neuinstallation nicht überschrieben wird benennt man die Datei um.

                                        Du könntest auch in der motion.conf schreiben camera1-Rainer.conf.

                                        Dann muß unter /etc/motion/camera1-Rainer.conf. liegen und die Anweisungen vorhanden sein.

                                        Als Anfänger arbeite ich mit Windows Laptop und greife per Remote auf den Raspi zu.

                                        So hat man eine ähnliche Struktur wie in Windows.

                                        Du siehst den Ordner und die abgelgten Dateien darunter.

                                        Mit einem Linux Textprogramm auf dem Rasp bearbeite ich dann die .config Textdateien.

                                        Ist für mich einfacher als über die Konsole.

                                        Ralf
                                        5230_remote.jpg

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          Terrax last edited by

                                          Hallo Ralf,

                                          hier mal die Ausgabe bei mir nach sudo motion start

                                          [0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf

                                          [0:motion] [NTC] [ALL] config_camera: Processing camera config file /etc/motion/camera1-dist.conf

                                          [0:motion] [NTC] [ALL] motion_startup: Motion 4.0 Started

                                          [0:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)

                                          Hier mal die camera1-dist.conf

                                          ! # /etc/motion/camera1.conf
                                          ! #
                                          ! # This config file was generated by motion 4.0
                                          ! ###########################################################
                                          ! # Capture device options
                                          ! ############################################################
                                          ! # Camera Id
                                          ! # Consistent identification number to assign to each camera across multiple
                                          ! # invocations of Motion.
                                          ! # Default: The order when the camera file was read
                                          ! # camera_id = 1
                                          ! # Videodevice to be used for capturing (default /dev/video0)
                                          ! # for FreeBSD default is /dev/bktr0
                                          ! # videodevice /dev/video0
                                          ! netcam_url rtsp://USER:PW@192.168.2.XXX:88/videoMain
                                          ! # The video input to be used (default: -1)
                                          ! # Should normally be set to 1 for video/TV cards, and -1 for USB cameras
                                          ! input -1
                                          ! # Draw a user defined text on the images using same options as C function strftime(3)
                                          ! # Default: Not defined = no text
                                          ! # Text is placed in lower left corner
                                          ! text_left CAMERA 1
                                          ! ############################################################
                                          ! # Target Directories and filenames For Images And Films
                                          ! # For the options snapshot_, picture_, mpeg_ and timelapse_filename
                                          ! # you can use conversion specifiers
                                          ! # %Y = year, %m = month, %d = date,
                                          ! # %H = hour, %M = minute, %S = second,
                                          ! # %v = event, %q = frame number, %t = camera id number,
                                          ! # %D = changed pixels, %N = noise level,
                                          ! # %i and %J = width and height of motion area,
                                          ! # %K and %L = X and Y coordinates of motion center
                                          ! # %C = value defined by text_event
                                          ! # Quotation marks round string are allowed.
                                          ! ############################################################
                                          ! # Target base directory for pictures and films
                                          ! # Recommended to use absolute patch. (Default: current working directory)
                                          ! #target_dir /tmp/motion/cam1
                                          ! # File path for motion triggered images (jpeg or ppm) relative to target_dir
                                          ! # Default: %v-%Y%m%d%H%M%S-%q
                                          ! # Default value is equivalent to legacy oldlayout option
                                          ! # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q
                                          ! # File extension .jpg or .ppm is automatically added so do not include this
                                          ! # Set to 'preview' together with best-preview feature enables special naming
                                          ! # convention for preview shots. See motion guide for details
                                          ! picture_filename CAM1_%v-%Y%m%d%H%M%S-%q
                                          ! ############################################################
                                          ! # Live Stream Server
                                          ! ############################################################
                                          ! # The mini-http server listens to this port for requests (default: 0 = disabled)
                                          ! stream_port 8085
                                          ! # you can use conversion specifiers
                                          ! # %Y = year, %m = month, %d = date,
                                          ! # %H = hour, %M = minute, %S = second,
                                          ! # %v = event, %q = frame number, %t = camera id number,
                                          ! # %D = changed pixels, %N = noise level,
                                          ! # %i and %J = width and height of motion area,
                                          ! # %K and %L = X and Y coordinates of motion center
                                          ! # %C = value defined by text_event
                                          ! # Quotation marks round string are allowed.
                                          ! ############################################################
                                          ! # Target base directory for pictures and films
                                          ! # Recommended to use absolute patch. (Default: current working directory)
                                          ! #target_dir /tmp/motion/cam1
                                          ! # File path for motion triggered images (jpeg or ppm) relative to target_dir
                                          ! # Default: %v-%Y%m%d%H%M%S-%q
                                          ! # Default value is equivalent to legacy oldlayout option
                                          ! # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q
                                          ! # File extension .jpg or .ppm is automatically added so do not include this
                                          ! # Set to 'preview' together with best-preview feature enables special naming
                                          ! # convention for preview shots. See motion guide for details
                                          ! picture_filename CAM1_%v-%Y%m%d%H%M%S-%q
                                          ! ############################################################
                                          ! # Live Stream Server
                                          ! ############################################################
                                          ! # The mini-http server listens to this port for requests (default: 0 = disabled)
                                          ! stream_port 8085
                                          ! # Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
                                          ! # The filename of the picture is appended as an argument for the command.
                                          ! #on_picture_save /usr/local/motion-extras/camparse2.pl
                                          ! # Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
                                          ! # Filename of movie is appended as an argument for the command.
                                          ! #on_movie_end /usr/local/motion-extras/mpegparse2.pl

                                          Mir fällt gerade auf das bei mir noch eintrage fehlen width 640,height 480, stream_auth_method 1

                                          Habe motion 4.0 drauf, wo kann ich in der Konsole denn die Größe anzeigen lassen ?

                                          Dein Programm in Windowsoptik gefällt mir sehr gut, welches Programm ist denn das,

                                          was müsste ich da installieren ? Arbeite mit Mac habe aber parallel auch Windows drauf.

                                          Gruß

                                          Rainer

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            Terrax last edited by

                                            Hallo Ralf,

                                            installiere gerade ffmpeg und h264, bekomme bei Eingabe make -j 4 am Ende folgendes angezeigt:

                                            ! filters/video/resize.c:215:30: error: ‘AVComponentDescriptor {aka const struct AVComponentDescriptor}’ has no member named ‘depth’
                                            ! if( pix_desc->comp__.depth > 8 )
                                            ! ^
                                            ! Makefile:277: die Regel für Ziel „filters/video/resize.o“ scheiterte
                                            ! make: *** [filters/video/resize.o] Fehler 1
                                            ! make: *** Es wird auf noch nicht beendete Prozesse gewartet…
                                            ! input/lavf.c: In function ‘codec_from_stream’:
                                            ! input/lavf.c:63:50: error: ‘AVStream {aka struct AVStream}’ has no member named ‘codecpar’; did you mean ‘codec’?
                                            ! AVCodec *codec = avcodec_find_decoder( stream->codecpar->codec_id );
                                            ! ^~
                                            ! input/lavf.c:71:9: warning: implicit declaration of function ‘avcodec_parameters_to_contex’ [-Wimplicit-function-declaration]
                                            ! if( avcodec_parameters_to_context( c, stream->codecpar ) < 0 )
                                            ! ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                            ! input/lavf.c:71:49: error: ‘AVStream {aka struct AVStream}’ has no member named ‘codecpar’; did you mean ‘codec’?
                                            ! if( avcodec_parameters_to_context( c, stream->codecpar ) < 0 )
                                            ! ^~
                                            ! input/lavf.c: In function ‘read_frame_internal’:
                                            ! input/lavf.c:107:23: warning: implicit declaration of function ‘avcodec_receive_frame’ [-Wimplicit-function-declaration]
                                            ! while( (ret = avcodec_receive_frame( h->lavc, h->frame )) )
                                            ! ^~~~~~~~~~~~~~~~~~~~~
                                            ! input/lavf.c:115:27: warning: implicit declaration of function ‘avcodec_send_packet’ [-Wimplicit-function-declaration]
                                            ! ret = avcodec_send_packet( h->lavc, NULL );
                                            ! ^~~~~~~~~~~~~~~~~~~
                                            ! input/lavf.c: In function ‘open_file’:
                                            ! input/lavf.c:199:58: error: ‘AVStream {aka struct AVStream}’ has no member named ‘codecpar’; did you mean ‘codec’?
                                            ! while( i < h->lavf->nb_streams && h->lavf->streams__->codecpar->codec_type != AVMEDIA_TYPE_VIDEO )
                                            ! ^~
                                            ! Makefile:277: die Regel für Ziel „input/lavf.o“ scheiterte
                                            ! make: *** [input/lavf.o] Fehler 1____ ____Kann ich das ignorieren?

                                            Gruß

                                            Rainer____

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            532
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            29
                                            142
                                            40992
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo