Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden

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

      @glasfaser
      Ja, der link funktioniert (mit vlc getestet) :

      rtsp://xxx:xxx@192.168.178.166:554/live/ch0
      
      Glasfaser 1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @UHU01 last edited by Glasfaser

        @uhu01

        teste mal damit :

        ffmpeg -loglevel fatal -rtsp_transport tcp -i 'rtsp://user:pwd@192.168.178.xxx:554/live/ch0' -f image2 -vframes 1 -pix_fmt yuvj420p /home/bild.jpeg
        
        UHU01 1 Reply Last reply Reply Quote 0
        • UHU01
          UHU01 @Glasfaser last edited by

          @glasfaser
          Es dauert zwar eine Weile, bis die Eingabe ausgeführt ist, aber es kommt wieder nichts an:

          i@raspberrypi:/ $ ffmpeg -loglevel fatal -rtsp_transport tcp -i 'rtsp://FxSdL8f6:m9rKEcC@192.168.178.166:554/live/ch0' -f image2 -vframes 1 -pix_fmt yuvj420p /home/bild.jpeg
          pi@raspberrypi:/ $ cd home
          pi@raspberrypi:/home $ ls
          iobroker  pi
          pi@raspberrypi:/home $
          
          Glasfaser 1 Reply Last reply Reply Quote 0
          • Glasfaser
            Glasfaser @UHU01 last edited by

            @uhu01

            schreibe mal ein

            sudo
            

            davor

            sudo ffmpeg -loglevel fatal -rtsp_transport tcp -i 'rtsp://FxSdL8f6:m9rKEcC@192.168.178.166:554/live/ch0' -f image2 -vframes 1 -pix_fmt yuvj420p /home/bild.jpeg
            
            UHU01 1 Reply Last reply Reply Quote 0
            • UHU01
              UHU01 @Glasfaser last edited by UHU01

              @Glasfaser
              Heureka. Das war's. Danke dir vielmals!

              Screenshot_20230127-223640_Telegram.jpg

              Glasfaser 1 Reply Last reply Reply Quote 1
              • Glasfaser
                Glasfaser @UHU01 last edited by

                @uhu01 sagte in [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden:

                Heureka. Das war's. Danke dir vielmals!

                Kein Thema .. 🙂

                UHU01 1 Reply Last reply Reply Quote 0
                • UHU01
                  UHU01 @Glasfaser last edited by

                  @glasfaser
                  Läuft doch noch nicht ganz. Das Foto wird zwar zuverlässig gesendet, aber immer das gleiche (von gestern). Es wird anscheinend kein neues abgelegt.

                  Glasfaser 1 Reply Last reply Reply Quote 0
                  • Glasfaser
                    Glasfaser @UHU01 last edited by Glasfaser

                    @uhu01 sagte in [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden:

                    Es wird anscheinend kein neues abgelegt.

                    lösche es mit

                    rm  /home/bild.jpeg
                    

                    wird dann ein neues Bild erstellt

                    EDIT :

                    bzw.

                    sudo rm  /home/bild.jpeg
                    
                    UHU01 1 Reply Last reply Reply Quote 0
                    • UHU01
                      UHU01 @Glasfaser last edited by UHU01

                      @glasfaser

                      Jetzt muss ich weiter ausholen...

                      Das Blockly, in dem ich den Befehl zur Fotoablage verwendet habe löscht weder, noch hat es jemals ein Bild abgelegt. Es sendet nur das Foto, dass ich vorher über den Putty Befehl abgelegt hatte.

                      Bei der JS Variante bekomme ich einen Kompilierungsfehler in Zeile 15. Ich vermute wegen der Hochkommas in der Mitte.

                      c48fcb9b-6257-465a-93b8-3f71093feabe-grafik.png

                      var timeout;
                      7
                      
                      //Installation  apt-get update dann apt-get install ffmpeg
                       
                      
                      on({id: '0_userdata.0.Testschalter', val: true}, async function (obj) {
                      
                        var value = obj.state.val;
                      
                        var oldValue = obj.oldState.val;
                      
                       // exec('sudo ffmpeg -y -i rtsp://user:pass@192.168.178.166:554/live/ch0/ -t 8 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=1280:h=738:force_original_aspect_ratio=decrease -r 10 /tmp/bild.mp4');
                      
                        exec('sudo ffmpeg -loglevel fatal -rtsp_transport tcp -ii 'rtsp://user:pass@192.168.178.166:554/live/ch0' -f image2 -vframes 1 -pix_fmt yuvj420p /tmp/bild.jpeg');
                      
                      
                        timeout = setTimeout(async function () {
                      
                          sendTo("telegram.1", "send", {
                      
                              text: '/tmp/bild.jpeg',
                      
                              disable_notification: true
                      
                          });
                      
                        }, 15000);
                      
                      });
                      
                      1 Reply Last reply Reply Quote 0
                      • Glasfaser
                        Glasfaser last edited by Glasfaser

                        @uhu01

                        in Zeile 15. Ich vermute wegen der Hochkommas in der Mitte.

                        im Blockly , ändere auf , ohne '

                        sudo ffmpeg -loglevel fatal -rtsp_transport tcp -i rtsp://FxSdL8f6:m9rKEcC@192.168.178.166:554/live/ch0 -f image2 -vframes 1 -pix_fmt yuvj420p /home/bild.jpeg
                        
                        UHU01 1 Reply Last reply Reply Quote 0
                        • UHU01
                          UHU01 @Glasfaser last edited by

                          @glasfaser
                          Nichts zu machen. Beide Befehle funktionieren über Putty. Aus dem Blockly heraus passiert aber nichts (außer der Telegram Versand).

                          <xml xmlns="https://developers.google.com/blockly/xml">
                            <variables>
                              <variable type="timeout" id="timeout">timeout</variable>
                            </variables>
                            <block type="on_ext" id="1GbHG!B#J@}|7P.az3EG" x="5" y="-1324">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                              <field name="CONDITION">ne</field>
                              <field name="ACK_CONDITION"></field>
                              <value name="OID0">
                                <shadow type="field_oid" id="iTK;8eqeV2xQkN+QJ9TF">
                                  <field name="oid">0_userdata.0.Testschalter</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="controls_if" id=",E+)WRA_=k%0lckb]:h[">
                                  <value name="IF0">
                                    <block type="logic_boolean" id=":W8j?iohfcdV4;W)j-:+">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="debug" id="}8RCQT8,f)4Z_@C)y|jz">
                                      <field name="Severity">log</field>
                                      <value name="TEXT">
                                        <shadow type="text" id="-rVRQ4^8Kdn,N2(0%6`;">
                                          <field name="TEXT">Auslösung</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="exec" id="fm/.+zLn;3lyLZC=l=DZ">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                      <field name="WITH_STATEMENT">FALSE</field>
                                      <field name="LOG">debug</field>
                                      <value name="COMMAND">
                                        <shadow type="text" id="6XpaZ{GR9!n:*-ue?ELc">
                                          <field name="TEXT">sudo rm  /tmp/bild.jpeg</field>
                                        </shadow>
                                      </value>
                                      <next>
                                        <block type="exec" id="0?HLe|@]G@3[q4L[tx|t">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                          <field name="WITH_STATEMENT">FALSE</field>
                                          <field name="LOG">debug</field>
                                          <value name="COMMAND">
                                            <shadow type="text" id=".#9er8iN6K=urJvj_Uo|">
                                              <field name="TEXT">sudo ffmpeg -loglevel fatal -rtsp_transport tcp -i rtsp://user:pass@192.168.178.166:554/live/ch0 -f image2 -vframes 1 -pix_fmt yuvj420p /tmp/bild.jpeg</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="timeouts_settimeout" id="9J*b:4r8O.XG.h{=|~/*">
                                              <field name="NAME">timeout</field>
                                              <field name="DELAY">3000</field>
                                              <field name="UNIT">ms</field>
                                              <statement name="STATEMENT">
                                                <block type="telegram" id="RWDx)$R22ue?FT{1ER4x">
                                                  <field name="INSTANCE">.1</field>
                                                  <field name="LOG"></field>
                                                  <field name="SILENT">FALSE</field>
                                                  <field name="PARSEMODE">default</field>
                                                  <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                  <value name="MESSAGE">
                                                    <shadow type="text" id="+!xJbKp]),=E8{`2)2xz">
                                                      <field name="TEXT">/tmp/bild.jpeg</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="USERNAME">
                                                    <block type="text" id="MSphw!NZ_?j1UA-~h4x9">
                                                      <field name="TEXT">xxxx</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </xml>
                          

                          exec ist in der Instanz zugelassen:

                          91d7de0e-e45e-4535-8e35-698928521056-grafik.png

                          Glasfaser 2 Replies Last reply Reply Quote 0
                          • Glasfaser
                            Glasfaser @UHU01 last edited by

                            @uhu01 sagte in [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden:

                            ffmpeg

                            nach welcher Anleitung hast du das installiert .

                            teste mal damit

                            sudo -H -u iobroker ffmpeg -loglevel fatal -rtsp_transport tcp -i rtsp://user:pass@192.168.178.166:554/live/ch0 -f image2 -vframes 1 -pix_fmt yuvj420p /tmp/bild.jpeg
                            
                            1 Reply Last reply Reply Quote 0
                            • Glasfaser
                              Glasfaser @UHU01 last edited by

                              @uhu01 sagte in [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden:

                              Beide Befehle funktionieren über Putty

                              Ahh .... Denkfehler ..

                              Der Benutzer Pi löst den Befehl aus

                              im Blockly ist es ioBroker und der hat kein Recht in /tmp zu schreiben !

                              Nimm ein Verzeichniss von ioBroker

                              /opt/iobroker/

                              UHU01 1 Reply Last reply Reply Quote 0
                              • UHU01
                                UHU01 @Glasfaser last edited by UHU01

                                @glasfaser
                                Hab das Verzeichnis angepasst. Das Script legt aber noch immer keine neues Bild ab und löscht auch das alte nicht.
                                Aktueller Stand:

                                sudo rm  /opt/iobroker/bild.jpeg
                                
                                sudo ffmpeg -loglevel fatal -rtsp_transport tcp -i rtsp://user:pass@192.168.178.166:554/live/ch0 -f image2 -vframes 1 -pix_fmt yuvj420p /opt/iobroker/bild.jpeg
                                

                                72d93bd6-809d-4d9c-88f2-e0be5449afbd-grafik.png

                                So wie der Befehl jetzt zu sehen ist funktioniert er in Putty noch immer.

                                Kann ich die Orderberechtigung evtl ändern?

                                Nachtrag: Hab's rausgefunden. Mit diesem Ordner und Benutzer muss das "SUDO" dann doch weggelassen werden. JEtzt läuft es wie gewünscht. Danke für die Unterstützung! 👍

                                1 Reply Last reply Reply Quote 1
                                • S
                                  SaiBot1981 last edited by SaiBot1981

                                  Vielleich kann mir jemand helfen?

                                  Ich nutze Motioneye auf dem Pi4B und iobroker.
                                  Nun mochte ich weils es eben zu viel den Pi belastet nur Fotos senden anstatt Videos.
                                  Da ich aber bei Bewegungserkennung die Fotos einen Monat gespeichert haben möchte und die Ja mit dem Zeitstempel benannt werden da sie ja sonst immer überschrieben werden, habe ich mich an einigen Skripten versucht, doch leider nimmt das Skript keine Bilder aus dem LiveStream der Cam auf.

                                  Achja die Cam ist eine D-Link DCS-2132LB

                                  <xml xmlns="https://developers.google.com/blockly/xml">
                                    <variables>
                                      <variable type="timeout" id="timeout">timeout</variable>
                                      <variable type="timeout" id="timeout2">timeout2</variable>
                                      <variable type="timeout" id="timeout3">timeout3</variable>
                                    </variables>
                                    <block type="on_ext" id="jj8??y8i*v{!Fb0^jZ!*" x="-587" y="-1188">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                      <field name="CONDITION">gt</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="XEKh|+XF~3OC@EHY5{8{">
                                          <field name="oid">0_userdata.0.Datenpunkte.Cameras.Terasse</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="ySRs[16}K[R0?_kcX(qT">
                                          <value name="IF0">
                                            <block type="logic_negate" id="[?}HQJm*78CL|nf3H?iw">
                                              <value name="BOOL">
                                                <block type="timeouts_gettimeout" id="9z?hw0:1-~Qc+uF97]C9">
                                                  <field name="NAME">timeout2</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="comment" id="eogMqz*f:xk9TWEY/!4#">
                                              <field name="COMMENT">Speichert das erste Bild bei Bewegung</field>
                                              <next>
                                                <block type="exec" id="BEjD=u,#e-;T;d-e9D;r">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                  <field name="LOG"></field>
                                                  <value name="COMMAND">
                                                    <shadow type="text" id="p+g^=?Sl15wP.0/4C~~B">
                                                      <field name="TEXT">wget --output-document /var/lib/motioneye/Camera1/Terasse.jpg 'http://admin:dyFJPNpn@192.168.178.100/video1.mjpg'</field>
                                                    </shadow>
                                                  </value>
                                                  <next>
                                                    <block type="comment" id="qm0bnl/,Dq4PjA`4!8ao">
                                                      <field name="COMMENT">Es wird 2500ms gewartet um dieses speichern auszuführen</field>
                                                      <next>
                                                        <block type="timeouts_settimeout" id="e=c#~E)j;S+#onaowS77">
                                                          <field name="NAME">timeout</field>
                                                          <field name="DELAY">2500</field>
                                                          <field name="UNIT">ms</field>
                                                          <statement name="STATEMENT">
                                                            <block type="comment" id="cLfsL/.hZGyA%n?O!-:5">
                                                              <field name="COMMENT">Hier wird das Bild versendet</field>
                                                              <next>
                                                                <block type="telegram" id="FbkrL,IGK%]5xBi#Yj,=">
                                                                  <field name="INSTANCE">.0</field>
                                                                  <field name="LOG"></field>
                                                                  <field name="SILENT">FALSE</field>
                                                                  <field name="PARSEMODE">default</field>
                                                                  <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                                  <value name="MESSAGE">
                                                                    <shadow type="text" id="wXLWD;.*8||`3_5J8(UB">
                                                                      <field name="TEXT">/var/lib/motioneye/Camera1/Terasse.jpg</field>
                                                                    </shadow>
                                                                  </value>
                                                                  <value name="USERNAME">
                                                                    <block type="text" id="6=JpUE:#fh7l;xfdZ7`%">
                                                                      <field name="TEXT">Tobias</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="comment" id="Fu=MNqw/7gDC_n{i|=UN">
                                                              <field name="COMMENT">Nach dem ersten Bild wird nach 4500ms das nächste Bild gespeichert</field>
                                                              <next>
                                                                <block type="timeouts_settimeout" id="f55+L@!5F9d*i7)8.z}-">
                                                                  <field name="NAME">timeout2</field>
                                                                  <field name="DELAY">4500</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <statement name="STATEMENT">
                                                                    <block type="exec" id="d~FCu]aLbH_s[eN3oB3H">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                      <field name="WITH_STATEMENT">FALSE</field>
                                                                      <field name="LOG"></field>
                                                                      <value name="COMMAND">
                                                                        <shadow type="text" id="q^pJl9(1bxjm4FLFJFlT">
                                                                          <field name="TEXT">wget --output-document /var/lib/motioneye/Camera1/Terasse.jpg 'http://admin:dyFJPNpn@192.168.178.100/video1.mjpg'</field>
                                                                        </shadow>
                                                                      </value>
                                                                      <next>
                                                                        <block type="comment" id="KW^QIsb%Axd:Sp^9@vZ%">
                                                                          <field name="COMMENT">Es wird 2500ms gewartet um dieses speichern auszuführen</field>
                                                                          <next>
                                                                            <block type="timeouts_settimeout" id="kqLD0XWHPVb*R%96uP;%">
                                                                              <field name="NAME">timeout3</field>
                                                                              <field name="DELAY">2500</field>
                                                                              <field name="UNIT">ms</field>
                                                                              <statement name="STATEMENT">
                                                                                <block type="timeouts_cleartimeout" id="s|Y]ztX8{_s+*r*`S]kV">
                                                                                  <field name="NAME">timeout2</field>
                                                                                  <next>
                                                                                    <block type="comment" id="Vo3{l~+:~RYcTronq]q*">
                                                                                      <field name="COMMENT">Und hier wird es versendet</field>
                                                                                      <next>
                                                                                        <block type="telegram" id="3p`vo?Dq*N;FLI4BR{`q">
                                                                                          <field name="INSTANCE">.0</field>
                                                                                          <field name="LOG"></field>
                                                                                          <field name="SILENT">FALSE</field>
                                                                                          <field name="PARSEMODE">default</field>
                                                                                          <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                                                          <value name="MESSAGE">
                                                                                            <shadow type="text" id="GsAgr]aq}s-1MR0mg|-W">
                                                                                              <field name="TEXT">/var/lib/motioneye/Camera1/Terasse.jpg</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                          <value name="USERNAME">
                                                                                            <block type="text" id="H~0qQaj=?dX5*x;lAoa}">
                                                                                              <field name="TEXT">Tobias</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </statement>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                  <next>
                                                                    <block type="comment" id="ma^~d4aFY-ahr*7)hhQy">
                                                                      <field name="COMMENT">ab hier so oft wiederholen wie man es möchte</field>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                    </block>
                                  </xml>
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • wierer-sigi
                                    wierer-sigi last edited by

                                    Hallo

                                    musste meinen PI neu aufsetzen. Hab soweit alles wieder zum laufen gebraucht.

                                    Nur das Blocky das ich damals zusammenkopiert habe um von meiner Doorbird bei Motion ein MPG im Pfag abzulegen funktioniert nicht mehr.

                                    exec('ffmpeg -y -i rtsp://NAME:PASSWORD@192.168.178.191:8557/mpeg/media.amp -t 8 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 10 /home/iobroker/doorbird-motion.mp4'
                                    

                                    Wenn ich das ganz im terminal eingebe

                                    ffmpeg -y -i rtsp://NAME:PASSWORD @192.168.178.191:8557/mpeg/media.amp -t 8 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 10 /home/iobroker/doorbird-motion.mp4
                                    ffmpeg version 5.1.6-0+deb12u1+rpt1 Copyright (c) 2000-2024 the FFmpeg developers
                                      built with gcc 12 (Debian 12.2.0-14)
                                      configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
                                      libavutil      57. 28.100 / 57. 28.100
                                      libavcodec     59. 37.100 / 59. 37.100
                                      libavformat    59. 27.100 / 59. 27.100
                                      libavdevice    59.  7.100 / 59.  7.100
                                      libavfilter     8. 44.100 /  8. 44.100
                                      libswscale      6.  7.100 /  6.  7.100
                                      libswresample   4.  7.100 /  4.  7.100
                                      libpostproc    56.  6.100 / 56.  6.100
                                    Input #0, rtsp, from 'rtsp://ghlpsa0003:Jo18062004@192.168.178.191:8557/mpeg/media.amp':
                                      Metadata:
                                        title           : RTSP/RTP stream from DoorBird
                                        comment         : mpeg/720p/media.amp
                                      Duration: N/A, start: 0.098778, bitrate: N/A
                                      Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709, progressive), 1280x720, 10 fps, 10 tbr, 90k tbn
                                    Stream mapping:
                                      Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
                                    Press [q] to stop, [?] for help
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ac9ec10] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559accfcb0] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad00b70] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad31850] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad62710] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad85e50] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad40ee0] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ac9ec10] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559acf6060] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad570b0] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad85e50] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad40ee0] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ac9ec10] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad261f0] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad570b0] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad85e50] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad40ee0] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ac9ec10] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad261f0] deprecated pixel format used, make sure you did set range correctly
                                    [swscaler @ 0x559ac90f60] [swscaler @ 0x559ad570b0] deprecated pixel format used, make sure you did set range correctly
                                    [libx264 @ 0x559a6522c0] using cpu capabilities: ARMv8 NEON
                                    [libx264 @ 0x559a6522c0] profile High, level 2.2, 4:2:0, 8-bit
                                    [libx264 @ 0x559a6522c0] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
                                    Output #0, mp4, to '/home/iobroker/doorbird-motion.mp4':
                                      Metadata:
                                        title           : RTSP/RTP stream from DoorBird
                                        comment         : mpeg/720p/media.amp
                                        encoder         : Lavf59.27.100
                                      Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360, q=2-31, 10 fps, 10240 tbn
                                        Metadata:
                                          encoder         : Lavc59.37.100 libx264
                                        Side data:
                                          cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
                                    frame=   80 fps= 13 q=-1.0 Lsize=     109kB time=00:00:07.70 bitrate= 115.5kbits/s speed=1.23x     
                                    video:107kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.551910%
                                    [libx264 @ 0x559a6522c0] frame I:1     Avg QP:16.37  size: 23213
                                    [libx264 @ 0x559a6522c0] frame P:53    Avg QP:16.80  size:  1530
                                    [libx264 @ 0x559a6522c0] frame B:26    Avg QP:19.86  size:   172
                                    [libx264 @ 0x559a6522c0] consecutive B-frames: 52.5% 12.5%  0.0% 35.0%
                                    [libx264 @ 0x559a6522c0] mb I  I16..4: 22.0% 52.1% 26.0%
                                    [libx264 @ 0x559a6522c0] mb P  I16..4:  0.5%  0.1%  0.0%  P16..4: 26.8%  3.1%  2.7%  0.0%  0.0%    skip:66.7%
                                    [libx264 @ 0x559a6522c0] mb B  I16..4:  0.1%  0.0%  0.0%  B16..8: 18.8%  0.1%  0.0%  direct: 0.0%  skip:81.0%  L0:38.7% L1:60.7% BI: 0.7%
                                    [libx264 @ 0x559a6522c0] 8x8 transform intra:42.0% inter:68.3%
                                    [libx264 @ 0x559a6522c0] coded y,uvDC,uvAC intra: 54.9% 57.8% 34.4% inter: 6.0% 14.2% 1.8%
                                    [libx264 @ 0x559a6522c0] i16 v,h,dc,p:  0% 49%  0% 50%
                                    [libx264 @ 0x559a6522c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 38% 16%  4%  5%  5%  6%  5%  8%
                                    [libx264 @ 0x559a6522c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 25% 11%  7% 10%  9%  8%  7%  8%
                                    [libx264 @ 0x559a6522c0] i8c dc,h,v,p: 47% 35% 12%  6%
                                    [libx264 @ 0x559a6522c0] Weighted P-Frames: Y:0.0% UV:0.0%
                                    [libx264 @ 0x559a6522c0] ref P L0: 79.2%  0.9% 14.5%  5.4%
                                    [libx264 @ 0x559a6522c0] ref B L0: 92.3%  4.0%  3.7%
                                    [libx264 @ 0x559a6522c0] ref B L1: 94.6%  5.4%
                                    [libx264 @ 0x559a6522c0] kb/s:108.79
                                    

                                    funktioniert es wunderbar.

                                    Die Datein im oder /home/iobroker haben aktuell folgende Rechte:

                                    Sigi71@WBH-RasPi4:/home/iobroker $ ls -l
                                    total 300
                                    -rw-r--r-- 1 iobroker iobroker    126 Nov 12 19:19 _data.json
                                    -rw-r--r-- 1 Sigi71   Sigi71    34287 Nov 12 14:50 doorbird-1709644868326.jpg
                                    -rw-r--r-- 1 Sigi71   Sigi71   111177 Nov 29 10:57 doorbird-motion.mp4
                                    -rwxrwxrwx 1 Sigi71   Sigi71    67790 Nov 29 04:58 go-e.csv
                                    -rw-r--r-- 1 iobroker iobroker  32622 Nov 22 14:55 iob_diag.log
                                    -rwxrwxrwx 1 Sigi71   Sigi71       89 Nov 29 10:24 test.csv
                                    -rwxrwxrwx 1 Sigi71   Sigi71    43521 Nov 28 23:55 wbh.csv
                                    
                                    wierer-sigi 1 Reply Last reply Reply Quote 0
                                    • wierer-sigi
                                      wierer-sigi @wierer-sigi last edited by

                                      @wierer-sigi

                                      Ergänzung: wenn ich den Ordner /opt/iobroker/ioborker-data nutze funktioniert es. Abe auf diesen Ordner habe ich keinen Zugriff von außerhalb

                                      oberfragger 1 Reply Last reply Reply Quote 0
                                      • oberfragger
                                        oberfragger @wierer-sigi last edited by

                                        @wierer-sigi Das hört sich nach einer Rechteproblematik an.
                                        Wen du das per ssh machst, dann nutzt du vmtl. den User Sigi71. iobroker nutzt aber den User iobroker, der da in dem anderen ordner keine Schreibrechte hat.

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

                                          Nachdem mein Script Jahrelang funktioniert hat, bekomme ich den entsprechenden "Zeitraffer"-Bewegungsalarm nicht mehr... bzw. der wird viel zu lange aufgezeichnet.
                                          Bis zum 10. Januar waren die Aufnahmen immer 5 Sekunden lang (ich hab via Motioneye einen Zeitstempel drin). Seitdem sind die Aufnahmen 2 Minuten lang.
                                          So sieht mein Blockly aus.
                                          58f5a86c-8938-48f3-bb1a-853698f5d5ab-image.png

                                          Der Text im exec-Block: ffmpeg -y -i http://192.168.178.104:9081 -t 5 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=1280:h=720:force_original_aspect_ratio=decrease -r 10 /opt/iobroker/iobroker-data/pictures/doorbird-motion.mp4

                                          Der Text im Telegram-Block: /opt/iobroker/iobroker-data/pictures/doorbird-motion.mp4

                                          Da habe ich nichts dran gemacht. Vielleicht zwischendurch ein ffmpeg update. Bin mir allerdings unsicher. Logfile gibt ichts her da der "Film" ja ordentlich erstellt wird. Nur halt 2 Minuten gegrabbt werden. Hat jemand Ideen dazu?

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

                                            Und das seltsame ist:
                                            Gleiche Quelle (Motioneye), andere Kamera bzw. Auflösung - es läuft wie erwartet weiter...

                                            ffmpeg -y -i http://192.168.178.104:9083 -t 5 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=800:h=600:force_original_aspect_ratio=decrease -r 10 /opt/iobroker/iobroker-data/pictures/schuppen_tuer-motion_direct.mp4
                                            

                                            Zwischendurch hab ich natürlich zigmal den Rechner neu gestartet (hatte da gerade noch was anderes getestet). Kein Erfolg.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            740
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            36
                                            157
                                            32028
                                            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