Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Einbindung (IP) Kamera über "Motion"

NEWS

  • Wartung am 15.11. – Forum ab 22:00 Uhr nicht erreichbar
    BluefoxB
    Bluefox
    11
    2
    206

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    7.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.7k

Einbindung (IP) Kamera über "Motion"

Einbindung (IP) Kamera über "Motion"

Scheduled Pinned Locked Moved ioBroker Allgemein
142 Posts 29 Posters 49.8k Views 7 Watching
  • 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.
  • fu_zhouF Offline
    fu_zhouF Offline
    fu_zhou
    wrote on last edited by
    #11

    Was bisher geschah:

    Installation von motion:

    sudo bash
    apt-get install autoconf automake build-essential git libtool libjpeg8-dev libzip-dev libavformat-dev libavcodec-dev libavutil-dev libav-tools libswscale-dev libavdevice-dev
    cd /
    git clone https://github.com/Motion-Project/motion.git
    cd motion
    autoreconf -fiv
    ./configure
    make
    make install && ldconfig
    

    dann noch die Konfiguration kopieren und bearbeiten:

    sudo bash
    cp /usr/local/etc/motion/motion-dist.conf /usr/local/etc/motion/motion.conf
    nano /usr/local/etc/motion/motion.conf
    
    

    /dev/video0 verwenden

    Ports so einstellen, dass es keine Kollision mit ioBroker gibt

    webcontrol_html_output auf "off"

    …

    motion muss auch noch gestartet werden:

    sudo motion
    

    ` > 1.) Gstreaner 1.0 + plugins installieren.

    2.)v4l2loopback (dkms) installieren

    3.)v4l2loopback laden (modprobe…)

    4.)gstreamer pipeline starten

    5.)Motion configurieren das /dev/video0 verwendet wird `

    zu 1.)

    sudo bash
    apt-get install gstreamer1.0-tools
    apt-get install gstreamer1.0-plugins
    apt-get install gstreamer1.0-omx
    
    

    zu 2.)

    Über apt-get install … bekommt man die Version 0.8, die mit der aktuellen Version von Jessie/ Firmware nicht kompatibel ist, daher:

    sudo bash
    apt-get install raspberrypi-kernel-headers
    cd /
    git clone https://github.com/umlaeute/v4l2loopback
    cd v4l2loopback
    make && sudo make install
    
    

    zu 3.)

    modprobe v4l2loopback
    

    zu 4.)

    /usr/bin/gst-launch-1.0 rtspsrc location=rtsp://192.168.0.9 ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! tee ! v4l2sink device=/dev/video0
    

    Und siehe da, es geht. Motion belastet die CPU jetzt mit ca 44% aber wenn Bewegung erkannt wird geht die Belastung hoch auf 99%. Die Verzögerungszeit ist ca. 5 Sek. Hast du eine Idee, wo man noch tunen kann? Die Kamera liefert schnelle Bilder, das sehe ich am PC mit iSpy.

    zu 5.)

    siehe "Installation von motion" oben

    Denn Autostart via systemd musst du noch beisteuern. Passt sonst alles?

    Synology DS920+ VM, S7-315 PN mit ET200S

    1 Reply Last reply
    0
    • ruhigundrelaxedR Offline
      ruhigundrelaxedR Offline
      ruhigundrelaxed
      wrote on last edited by
      #12

      Hey, du bist ja richtig schnell… 😮

      Prima, dass es funktioniert.

      Hier die Service Files:

      cat /etc/systemd/system/gstreamer.service
      
      [Unit]
      Description=Launch and monitor Gstreamer Pipeline
      
      [Service]
      ExecStart=/usr/bin/gst-launch-1.0 rtspsrc location=rtsp://192.168..:8001/ch01.264 !  rtph264depay ! h264parse ! omxh264dec ! videoconvert ! tee ! v4l2sink device=/dev/video0
      Restart=always
      [Install]
      WantedBy=multi-user.target
      
      

      und

      cat /etc/systemd/system/motion.service 
      [Unit]
      Description=Motion Daemon
      
      [Service]
      Type=forking
      PIDFile=/var/run/motion/motion.pid
      ExecStart=/usr/bin/motion -c /etc/motion/motion.conf
      Restart=on-failure
      Requires=gstreamer.service
      [Install]
      RequiredBy=gstreamer.service
      
      

      Ich kümmere mich grade um den "nur eine cam bug".

      Gruß

      Martin

      ps.:

      Die erste Zeile mit dem "cat" gehört natürlich nicht in die Files. Habs nur stehe gelassen, damit du weist wohin du die Files packen musst. Die Pipeline im gstreamer.service file musst du natürlich auch anpassen.

      iobroker auf debian bullseye amd64 (i5-8259U)
      homematic -> homegear -> HM-CFG-LAN ~> 11 x hm-cc-rt-dn | 3 x hm-sec-sd
      knx -> eibd -> SCN‐IP000.01 ~> 4 x AMS-1216.01 | (1 x JAL-0810.01 | 1 x JAL-0410.01) | 2 x BE-16000.01 | …

      1 Reply Last reply
      0
      • fu_zhouF Offline
        fu_zhouF Offline
        fu_zhou
        wrote on last edited by
        #13

        Habe das ganze jetzt einmal auf einem Pi2 installiert - nur motion und v4l, sonst nichts (die Anleitung oben funktioniert also…). Da ist die Videowiedergabe noch langsamer, als beim Pi3, auf dem noch parallel SQL und ioBroker läuft. Ist sichergestellt, dass die GPU verwendet wird oder macht hier alles die CPU? Kann man das irgendwie prüfen?

        Synology DS920+ VM, S7-315 PN mit ET200S

        1 Reply Last reply
        0
        • ruhigundrelaxedR Offline
          ruhigundrelaxedR Offline
          ruhigundrelaxed
          wrote on last edited by
          #14

          Naja, es wird halt nur das h264 decoding auf der gpu gemacht. Die eigentliche Bewegungserkennung ist cpu. Du könntest ja mal testweise in der gstreamer pipeline einen anderen h264 decoder verwenden. Z.B.: x264dec Da x264dec auf der cpu decodiert. Leider kommt man nicht so ohne weiteres an die Auslastung des entsprechenden gpu subsystems. (There are no tools I am aware of to monitor H264 block utilisation.) Was ist den langsam? Der mjpeg stream? Hast du dir den mal mit vlc angesehen? Leider steht mein pi ca. 70km von meiner aktuellen positon entfernt. Daher kann ich keine zuverlässige tests durchführen. Die Bandbreite (upstream) würde da reinpfuschen. Ich meine aber, dass ich bei 720p ca. 15-20 frames bei ca. 2-5 Sekunden Latenz hatte. (Pi2) Es sah erstaunlich flüssig aus…

          iobroker auf debian bullseye amd64 (i5-8259U)
          homematic -> homegear -> HM-CFG-LAN ~> 11 x hm-cc-rt-dn | 3 x hm-sec-sd
          knx -> eibd -> SCN‐IP000.01 ~> 4 x AMS-1216.01 | (1 x JAL-0810.01 | 1 x JAL-0410.01) | 2 x BE-16000.01 | …

          1 Reply Last reply
          0
          • fu_zhouF Offline
            fu_zhouF Offline
            fu_zhou
            wrote on last edited by
            #15

            Beim rtsp Stream auf dem PC (VLC) habe ich eine Latenz-Zeit deutlich kleiner als eine Sekunde, im Browser, wenn ich auf den Pi schaue, von ca. 4-5 Sekunden. Framerate im VLC ist auch deutlich höher.

            Ich habe mir jetzt mal noch nen Pi 3 bestellt, mal schaun, wie's da dann aussieht, wenn er nur mit der Kamera beschäftigt ist. Wie sieht's mit dem Adapter aus? Kann ich im Moment irgendetwas zur Unterstützung tun?

            Synology DS920+ VM, S7-315 PN mit ET200S

            1 Reply Last reply
            0
            • ruhigundrelaxedR Offline
              ruhigundrelaxedR Offline
              ruhigundrelaxed
              wrote on last edited by
              #16

              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.)

              iobroker auf debian bullseye amd64 (i5-8259U)
              homematic -> homegear -> HM-CFG-LAN ~> 11 x hm-cc-rt-dn | 3 x hm-sec-sd
              knx -> eibd -> SCN‐IP000.01 ~> 4 x AMS-1216.01 | (1 x JAL-0810.01 | 1 x JAL-0410.01) | 2 x BE-16000.01 | …

              1 Reply Last reply
              0
              • ruhigundrelaxedR Offline
                ruhigundrelaxedR Offline
                ruhigundrelaxed
                wrote on last edited by
                #17

                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.

                iobroker auf debian bullseye amd64 (i5-8259U)
                homematic -> homegear -> HM-CFG-LAN ~> 11 x hm-cc-rt-dn | 3 x hm-sec-sd
                knx -> eibd -> SCN‐IP000.01 ~> 4 x AMS-1216.01 | (1 x JAL-0810.01 | 1 x JAL-0410.01) | 2 x BE-16000.01 | …

                1 Reply Last reply
                0
                • fu_zhouF Offline
                  fu_zhouF Offline
                  fu_zhou
                  wrote on last edited by
                  #18

                  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…

                  Synology DS920+ VM, S7-315 PN mit ET200S

                  1 Reply Last reply
                  0
                  • 0 Offline
                    0 Offline
                    0018
                    wrote on last edited by
                    #19

                    @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

                    Mfg
                    0018

                    1 Reply Last reply
                    0
                    • fu_zhouF Offline
                      fu_zhouF Offline
                      fu_zhou
                      wrote on last edited by
                      #20

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

                      Synology DS920+ VM, S7-315 PN mit ET200S

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        andyb
                        wrote on last edited by
                        #21

                        @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
                        0
                        • fu_zhouF Offline
                          fu_zhouF Offline
                          fu_zhou
                          wrote on last edited by
                          #22

                          Gibt's seit Ende Mai:

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

                          Kannst dich gleich mal zum Thema v4l2loopback einbringen…

                          Synology DS920+ VM, S7-315 PN mit ET200S

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            Jautze
                            wrote on last edited by
                            #23

                            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
                            0
                            • lobomauL Offline
                              lobomauL Offline
                              lobomau
                              wrote on last edited by
                              #24

                              @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…

                              Host: NUC8i3 mit Proxmox:

                              • ioBroker CT Debian 13, npm 10.9.3, nodejs 22.20.0
                              • Slave: Pi4
                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                Terrax
                                wrote on last edited by
                                #25

                                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
                                0
                                • Ralla66R Offline
                                  Ralla66R Offline
                                  Ralla66
                                  Most Active
                                  wrote on last edited by
                                  #26

                                  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
                                  0
                                  • T Offline
                                    T Offline
                                    Terrax
                                    wrote on last edited by
                                    #27

                                    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
                                    0
                                    • Ralla66R Offline
                                      Ralla66R Offline
                                      Ralla66
                                      Most Active
                                      wrote on last edited by
                                      #28

                                      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
                                      0
                                      • T Offline
                                        T Offline
                                        Terrax
                                        wrote on last edited by
                                        #29

                                        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
                                        0
                                        • T Offline
                                          T Offline
                                          Terrax
                                          wrote on last edited by
                                          #30

                                          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
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

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

                                          123

                                          Online

                                          32.4k

                                          Users

                                          81.3k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe