frigate icon indicating copy to clipboard operation
frigate copied to clipboard

[Support]: Cannot playback event clips on 0.11.0

Open flaektrem opened this issue 2 years ago • 10 comments

Describe the problem you are having

After upgrading (total fresh with new DB etc etc) from 0.10.1 to 0.11.0 I cannot playback events. Just a spinning loading circle on black background. The same problem both in Firefox, Edge and Home Assistant app. Downloading events and watch in VLC is all fine. Did not change anything in Frigate config.yaml when upgrading

But sometimes it just works, i cannot understand why.

Version

0.11.0-3846a13

Frigate config file

# yaml-language-server: $schema=http://xxx.xxx.xxx.xxx:5000/api/config/schema

detectors:
  coral:
    type: edgetpu
    device: usb
mqtt:
  host: xxx.xxx.xxx.xxx
  user: xx
  password: xx
# logger:
#   default: info
#   logs:
#     watchdog.vind: debug
ffmpeg:
  input_args:
    - -avoid_negative_ts #
    - make_zero #
    - -fflags
    - nobuffer
    - -flags
    - low_delay
    - -strict
    - experimental
    - -fflags #
    - +genpts+discardcorrupt #
    - -rw_timeout
    - '5000000'
    - -use_wallclock_as_timestamps #
    - "1" #
    - -f
    - live_flv
    # - -correct_ts_overflow # Added this cause of the "Non-monotonous DTS in output stream" error
    # - '0'
  hwaccel_args:
    - -hwaccel
    - vaapi
    - -hwaccel_device
    - /dev/dri/renderD128
    - -hwaccel_output_format
    - yuv420p
  output_args:
#     clips: 
#       - -f 
#       - segment 
#       - -segment_time 
#       - '10' 
#       - -segment_format 
#       - mp4 
#       - -reset_timestamps 
#       - '1' 
#       - -strftime 
#       - '1' 
#       - -c 
#       - copy 
# #      - -an                # "-an" enables/disables sound in clips
    record:
      - -f 
      - segment 
      - -segment_time 
      - '60' 
      - -segment_format 
      - mp4 
      - -reset_timestamps 
      - '1' 
      - -strftime 
      - '1' 
      - -c 
      - copy 
#      - -an                # "-an" enables/disables sound in clips
objects:
  track:
    - person
    - dog
    - cat
  filters:
    person:
      threshold: 0.75
    dog:
      threshold: 0.75
    cat:
      threshold: 0.75
record:
  enabled: True
  # retain:
  #   days: 0
  #   mode: active_objects
  events:
    retain:
      default: 5
      mode: active_objects
snapshots:
  enabled: True
  timestamp: True
  bounding_box: True
  retain:
    default: 5

                    # RESOLUTIONS (width*height):

                    # Hall:
                    #  sub 640x352
                    #  ext 896x512
                    #  main 2560x1440

                    # Other:
                    #  sub 640x480
                    #  ext 896x672
                    #  main 2560x1920


                   

                    #  COMMANDS:

                    #  ffprobe "[camera url]"
                    #  intel_gpu_top


cameras:
  hall:
    ffmpeg:
      inputs:
        - path: rtmp://xxx.xxx.xxx.xxx/bcs/channel0_main.bcs?channel=0&stream=0&user=xxx&password=xxx
          roles:
            # - detect
            - record
            # - rtmp
        - path: rtmp://xxx.xxx.xxx.xxx/bcs/channel0_ext.bcs?channel=0&stream=2&user=xxx&password=xxx
          roles:
            - rtmp
            - detect
    detect:
      fps: 4
      # width: 2560
      # height: 1440
      width: 896
      height: 512
    motion:
      mask:
        - 896,0,896,262,534,165,532,0
    # objects:
    #   track:
    #     - person
    mqtt:
      enabled: true




  altan:
    ffmpeg:
      inputs:
        - path: rtmp://192.xxx.xxx.xxx/bcs/channel0_main.bcs?channel=0&stream=0&user=xxx&password=xxx
          roles:
            - detect
            - record
            # - rtmp
        - path: rtmp://xxx.xxx.xxx.xxx/bcs/channel0_ext.bcs?channel=0&stream=2&user=xxx&password=xxx
          roles:
            - rtmp
            # - detect
    detect:
      fps: 4
      width: 2560
      height: 1920
      # width: 896
      # height: 672
    # objects:
    #   track:
    #     - person
    motion:
      mask:   
        - 1994,248,2016,41,1514,88
    mqtt:
      enabled: true






  uppfart:
    ffmpeg:
      inputs:
        - path: rtmp://xxx.xxx.xxx.xxx/bcs/channel0_main.bcs?channel=0&stream=0&user=xxx&password=xxx
          roles:
            - detect
            - record
            # - rtmp
        - path: rtmp://xxx.xxx.xxx.xxx/bcs/channel0_ext.bcs?channel=0&stream=2&user=xxx&password=xxx
          roles:
            - rtmp
            # - detect
    detect:
      fps: 4
      width: 2560
      height: 1920
      # width: 896
      # height: 672
    # objects:
    #   track:
    #     - person
      stationary:
        threshold: 100
    # motion:
    #   # mask:    
    #   #   - 0,0,789,0,582,324,0,735
    mqtt:
      enabled: true
    objects:
      filters:
        person:
          threshold: 0.75






  entre:
    ffmpeg:
      inputs:
        - path: rtmp://xxx.xxx.xxx.xxx/bcs/channel0_main.bcs?channel=0&stream=0&user=xxxx&password=xxxx
          roles:
            # - detect
            - record
            # - rtmp
        - path: rtmp://xxx.xxx.xxx.xxx/bcs/channel0_ext.bcs?channel=0&stream=2&user=xx&password=xxxx
          roles:
            - rtmp
            - detect
    detect:
      fps: 4
      # width: 2560
      # height: 1920
      width: 896
      height: 672
    # objects:
    #   track:
    #     - person
    motion:
      mask:    
        - 2560,805,2382,719,2443,265,2560,303
        - 2075,292,1994,807,1891,759,1965,259
    mqtt:
      enabled: true

Relevant log output

Frigate logs (same error on all cameras):

frigate    | [2022-12-04 07:48:13] watchdog.uppfart               ERROR   : Ffmpeg process crashed unexpectedly for uppfart.
frigate    | [2022-12-04 07:48:13] watchdog.uppfart               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8386275224, current: 8386275216; changing to 8386275225. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8397425864, current: 8397425856; changing to 8397425865. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8412155288, current: 8412155280; changing to 8412155289. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8474524440, current: 8474524432; changing to 8474524441. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8501202216, current: 8501202208; changing to 8501202217. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8507504360, current: 8507504352; changing to 8507504361. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8526927266, current: 8526927264; changing to 8526927267. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8547932632, current: 8547932624; changing to 8547932633. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8602688232, current: 8602688224; changing to 8602688233. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8606936504, current: 8606936496; changing to 8606936505. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8666353960, current: 8666353952; changing to 8666353961. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8681716408, current: 8681716400; changing to 8681716409. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8724881336, current: 8724881328; changing to 8724881337. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8733016600, current: 8733016592; changing to 8733016601. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8765029080, current: 8765029072; changing to 8765029081. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8810370600, current: 8810370592; changing to 8810370601. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8818748232, current: 8818748224; changing to 8818748233. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8826232472, current: 8826232464; changing to 8826232473. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8875809768, current: 8875809760; changing to 8875809769. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8896572072, current: 8896572064; changing to 8896572073. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 8936302616, current: 8936302608; changing to 8936302617. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9007571208, current: 9007571200; changing to 9007571209. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9031507096, current: 9031507088; changing to 9031507097. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9038792952, current: 9038792944; changing to 9038792953. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9091062936, current: 9091062928; changing to 9091062937. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9114708936, current: 9114708928; changing to 9114708937. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9161594232, current: 9161594224; changing to 9161594233. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9204509624, current: 9204509616; changing to 9204509625. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9292946904, current: 9292946896; changing to 9292946905. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9296324072, current: 9296324064; changing to 9296324073. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9299754136, current: 9299754128; changing to 9299754137. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9306491784, current: 9306491776; changing to 9306491785. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9418223480, current: 9418223472; changing to 9418223481. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9439835928, current: 9439835920; changing to 9439835929. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9443043272, current: 9443043264; changing to 9443043273. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9471752600, current: 9471752592; changing to 9471752601. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9508981592, current: 9508981584; changing to 9508981593. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9510311752, current: 9510311744; changing to 9510311753. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9516481880, current: 9516481872; changing to 9516481881. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9530091960, current: 9530091952; changing to 9530091961. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9546777768, current: 9546777760; changing to 9546777769. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9551530712, current: 9551530704; changing to 9551530713. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9603443640, current: 9603443632; changing to 9603443641. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9642753768, current: 9642753760; changing to 9642753769. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9736766616, current: 9736766608; changing to 9736766617. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9745690632, current: 9745690624; changing to 9745690633. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9765124632, current: 9765124624; changing to 9765124633. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9774975224, current: 9774975216; changing to 9774975225. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9808443256, current: 9808443248; changing to 9808443257. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9818822072, current: 9818822064; changing to 9818822073. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9835848168, current: 9835848160; changing to 9835848169. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9857948648, current: 9857948640; changing to 9857948649. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 9865687480, current: 9865687472; changing to 9865687481. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10005070936, current: 10005070928; changing to 10005070937. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10031993384, current: 10031993376; changing to 10031993385. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10102457672, current: 10102457664; changing to 10102457673. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10109326632, current: 10109326624; changing to 10109326633. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10190510056, current: 10190510048; changing to 10190510057. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10293081512, current: 10293081504; changing to 10293081513. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10315611368, current: 10315611360; changing to 10315611369. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10319756360, current: 10319756352; changing to 10319756361. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10348669592, current: 10348669584; changing to 10348669593. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10411052968, current: 10411052960; changing to 10411052969. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10412651416, current: 10412651408; changing to 10412651417. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10421723176, current: 10421723168; changing to 10421723177. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10427215512, current: 10427215504; changing to 10427215513. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10439594600, current: 10439594592; changing to 10439594601. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10445799928, current: 10445799920; changing to 10445799929. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10454321592, current: 10454321584; changing to 10454321593. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10538851624, current: 10538851616; changing to 10538851625. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10549356482, current: 10549356480; changing to 10549356483. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10566240024, current: 10566240016; changing to 10566240025. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10578380408, current: 10578380400; changing to 10578380409. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10612867032, current: 10612867024; changing to 10612867033. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10633341528, current: 10633341520; changing to 10633341529. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10678478296, current: 10678478288; changing to 10678478297. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10739497304, current: 10739497296; changing to 10739497305. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10878411640, current: 10878411632; changing to 10878411641. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10910170280, current: 10910170272; changing to 10910170281. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 10960580520, current: 10960580512; changing to 10960580521. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11014792600, current: 11014792592; changing to 11014792601. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11073113704, current: 11073113696; changing to 11073113705. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11091389704, current: 11091389696; changing to 11091389705. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11098815384, current: 11098815376; changing to 11098815385. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11203923112, current: 11203923104; changing to 11203923113. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11227315368, current: 11227315360; changing to 11227315369. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11233666920, current: 11233666912; changing to 11233666921. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11252251448, current: 11252251440; changing to 11252251449. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11278630232, current: 11278630224; changing to 11278630233. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11293063400, current: 11293063392; changing to 11293063401. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11336204440, current: 11336204432; changing to 11336204441. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11361164248, current: 11361164240; changing to 11361164249. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11393115352, current: 11393115344; changing to 11393115353. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11407015464, current: 11407015456; changing to 11407015465. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11413843752, current: 11413843744; changing to 11413843753. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11444629736, current: 11444629728; changing to 11444629737. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11449260024, current: 11449260016; changing to 11449260025. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11474895064, current: 11474895056; changing to 11474895065. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : [segment @ 0x560089a81440] Non-monotonous DTS in output stream 0:1; previous: 11546738728, current: 11546738720; changing to 11546738729. This may result in incorrect timestamps in the output file.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.detect          ERROR   : rtmp://xxx.xxx.xxx.xxx/bcs/channel0_main.bcs?channel=0&stream=0&user=xxx&password=xxx: Input/output error
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.rtmp            ERROR   : rtmp://xxx.xxx.xxx.xxx/bcs/channel0_ext.bcs?channel=0&stream=2&user=xxx&password=xxx: Input/output error
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.rtmp            ERROR   : [flv @ 0x55aa068a4ec0] Failed to update header with correct duration.
frigate    | [2022-12-04 07:48:13] ffmpeg.uppfart.rtmp            ERROR   : [flv @ 0x55aa068a4ec0] Failed to update header with correct filesize.
frigate    | [2022-12-04 07:48:13] watchdog.uppfart               INFO    : Terminating the existing ffmpeg process...
frigate    | [2022-12-04 07:48:13] watchdog.uppfart               INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-12-04 10:48:27] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:60228]
frigate    | [2022-12-04 10:49:39] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:42932]
frigate    | [2022-12-04 10:49:41] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:42932]
frigate    | [2022-12-04 10:49:59] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:60228]
frigate    | [2022-12-04 10:51:34] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:49600]
frigate    | [2022-12-04 10:51:49] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:49600]
frigate    | [2022-12-04 10:53:49] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:53334]
frigate    | [2022-12-04 10:55:02] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:53334]
frigate    | [2022-12-04 10:55:03] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:54748]
frigate    | [2022-12-04 10:55:18] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:54748]
frigate    | [2022-12-04 10:55:18] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:41724]
frigate    | [2022-12-04 10:58:59] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:41724]
frigate    | [2022-12-04 11:05:40] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:40228]
frigate    | [2022-12-04 11:06:04] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:40228]



Firefox console logs while trying to watch event clips:

VIDEOJS: WARN: Problem encountered with playlist 0-index-v1-a1.m3u8. Trying again since it is the only playlist.

FFprobe output from your camera

ffprobe version 4.2.7-0ubuntu0.1 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
http://192.168.1.171:5000/cameras/uppfart: Invalid data found when processing input

Frigate stats

{"altan":{"camera_fps":4.0,"capture_pid":232,"detection_fps":0.0,"pid":225,"process_fps":4.0,"skipped_fps":0.0},"detection_fps":0.0,"detectors":{"coral":{"detection_start":0.0,"inference_speed":8.1,"pid":118166}},"entre":{"camera_fps":4.1,"capture_pid":237,"detection_fps":0.0,"pid":228,"process_fps":4.1,"skipped_fps":0.0},"hall":{"camera_fps":4.0,"capture_pid":229,"detection_fps":0.0,"pid":223,"process_fps":4.0,"skipped_fps":0.0},"service":{"latest_version":"0.11.1","storage":{"/dev/shm":{"free":489.7,"mount_type":"tmpfs","total":524.3,"used":34.6},"/media/frigate/clips":{"free":462958.2,"mount_type":"ext4","total":491106.5,"used":3126.2},"/media/frigate/recordings":{"free":462958.2,"mount_type":"ext4","total":491106.5,"used":3126.2},"/tmp/cache":{"free":1899.0,"mount_type":"tmpfs","total":3000.0,"used":1101.0}},"temperatures":{},"uptime":735035,"version":"0.11.0-3846a13"},"uppfart":{"camera_fps":4.1,"capture_pid":233,"detection_fps":0.0,"pid":226,"process_fps":4.1,"skipped_fps":0.0}}

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wired

Camera make and model

Reolink RLC-410-5MP

Any other information that may be helpful

No response

flaektrem avatar Dec 04 '22 10:12 flaektrem

Does it work for the same clip sometimes or some clips always work and others never work?

NickM-27 avatar Dec 04 '22 12:12 NickM-27

I actually have a similar issue that might be relevant. This problem not only prevents clips from being played, but the entire record won't play. I don't think anything is wrong with the config, and the live view is completely fine.

Operating system

Unraid Docker

Frigate ver.

0.11.1

Use case

I am testing a cam inside my living room. During the night, the cam will go shield mode and stop streaming. Therefore, a bunch of empty video files will be stored. The camera will start streaming again during the day.

Problem

The 0 o'clock empty files may prevent the replay of later clips or records on that day. Like @flaektrem said

Just a spinning loading circle on black background.

Whenever I click any clip or record of a particular hour, I get the same warnings as below.

[2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/56.09.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/56.30.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/56.50.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/57.10.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/57.30.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/57.50.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/58.10.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/58.30.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/58.50.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/59.10.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/59.30.mp4 [2022-12-04 13:34:57] frigate.http WARNING : Recording clip is missing or empty: /media/frigate/recordings/2022-12/04/00/living_room/59.50.mp4 [2022-12-04 13:34:57] frigate.http ERROR : No recordings found for the requested time range

Indeed, the records are empty, but I'm not trying to access the clips at 00 o'clock. For example, I cannot play videos at 13:00, even though the videos are available and all the events are visible on the right side. What I get is just a spinning circle with a cross and the text "The media could not be loaded, either because the server or network failed or because the format is not supported". I can only play each mp4 video under /recordings/2022-12/04/13/living_room/ individually.

My thoughts

Empty or broken video files are not handled properly, and this also prevents normal videos from later time to be played. However, I am unsure if it only affects the videos of the same day or all future videos.

yinzheng-zhong avatar Dec 04 '22 14:12 yinzheng-zhong

@NickM-27 I would say it's kind of random.

Sometime some clips also disappear from the events list and just the snapshot remains visible in GUI.

flaektrem avatar Dec 04 '22 14:12 flaektrem

@yinzheng-zhong that's a different issue and it's been fixed for 0.12

@flaektrem I'm not sure what you mean by random, more specifically answering my question above would be helpful.

NickM-27 avatar Dec 04 '22 14:12 NickM-27

@NickM-27 When I first wrote, no clip didn't work at all. Now every clip from every cameras seems to work great. No restart of Frigate, i just did nothing.

When I try to playback clips tomorrow or later, no clips will work again.

Like I said, it's kind of random when it works or not.

EDIT: One thing I also noticed is that clips are suddenly stored with like one minute of "no motion" before the actual event shows up in clips. That never happened before and as you can se in the config there is no configuration other than default for that either.

EDIT 2: More research done now. I found out that all clips seems to work great in Home Assistant app now. I don't know why cause I have not restart anything etc. But in Firefox, only the clips that doesn't have that weird amount of "no motion" in the beginning of the clips seems to work great.

flaektrem avatar Dec 04 '22 14:12 flaektrem

Sometime some clips also disappear from the events list and just the snapshot remains visible in GUI.

I am running 0.11.1 and I too am getting this behaviour missing clips only snapshot but it is random.

inspired27 avatar Dec 05 '22 13:12 inspired27

Sometime some clips also disappear from the events list and just the snapshot remains visible in GUI.

I am running 0.11.1 and I too am getting this behaviour missing clips only snapshot but it is random.

I have the same problem but only with firefox.... with chrome everything seems ok

mvivaldi avatar Dec 07 '22 12:12 mvivaldi

Sometime some clips also disappear from the events list and just the snapshot remains visible in GUI.

I am running 0.11.1 and I too am getting this behaviour missing clips only snapshot but it is random.

Same problem here. Can't play clips in firefox, but can in safari

hamishfagg avatar Dec 08 '22 00:12 hamishfagg

I tried Edge browser, same behavior as Firefox for me. Can anyone confirm?

flaektrem avatar Dec 08 '22 06:12 flaektrem

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 08 '23 00:01 github-actions[bot]