Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. frigate: h.265 stream to h.264 / motioneye?

    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

    frigate: h.265 stream to h.264 / motioneye?

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

      Hi,

      ich habe eine Netzwerkkamera, die nur h.265 als Stream liefert. Wenn ich die Cam bei frigate konfiguriere

        Einfahrt:
          ffmpeg:
            inputs:
              - path: rtsp://name:passwort@192.168.2.103:554/11
                roles:
                  - detect
      

      wird der livestream zwar in frigate angezeigt, allerdings werden die gespeicherten Clips nicht abgespielt (siehe Foto)
      nope.png
      Keinen Browser kann ich überzeugen, die Clips abzuspielen. Auf dem Tablet / Smartphone mit Android kann ich die Clips abspielen. Soweit so schlecht, frigate will halt nicht.
      Jetzt habe ich es zum testen mal mit motioneye versucht, den Stream der Cam mit Motioneye neu zu streamen:

        Einfahrt:
           ffmpeg:
            input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
                    
            inputs:
              - path: http://192.168.2.27:9081/
                roles:
                  - detect
                  - record
      

      Ergebnis ist: Alles klappt, ich kann jetzt in frigate den Stream sehen und die Clips abspielen, allerdings ist das ja so wie den Teufel mit Beelzebub austreiben, und macht nicht wirklich Sinn.

      Mit ffmpeg habe ich es Stundenlang versucht, allerdings schaffe ich es nicht den Stream der Cam (h.256) live umzuwandeln und als h.264 neu zu streamen 😕

      ffmpeg -rtsp_transport tcp -i rtsp://name:passwort@192.168.2.103:554/11 -c:v libx264 -preset ultrafast -tune zerolatency -an -f rtsp rtsp://127.0.0.1:8554/11
      
      Input #0, rtsp, from 'rtsp://name:passwort@192.168.2.103:554/11':
        Metadata:
          title           : 10
        Duration: N/A, start: 0.000000, bitrate: N/A
        Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1920x1080, 12.50 fps, 12.50 tbr, 90k tbn, 12.50 tbc
        Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
      Stream mapping:
        Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
      Press [q] to stop, [?] for help
      [libx264 @ 0x557f23dacd00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
      [libx264 @ 0x557f23dacd00] profile Constrained Baseline, level 4.0, 4:2:0, 8-bit
      [libx264 @ 0x557f23dacd00] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=12 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
      [tcp @ 0x557f23e31b00] Connection to tcp://127.0.0.1:8554?timeout=0 failed: Connection refused
      Could not write header for output file #0 (incorrect codec parameters ?): Connection refused
      Error initializing output stream 0:0 -- 
      Conversion failed!
      
      

      Hat jemand dieses Problem schon gehabt und auch gelöst? Wenn ja, würde mich die Lösung brenend interessieren.

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

      Support us

      ioBroker
      Community Adapters
      Donate

      854
      Online

      31.7k
      Users

      79.9k
      Topics

      1.3m
      Posts

      1
      1
      576
      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