blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.4k stars 1.78k forks source link

[Support]: WebUI not playing video files #6210

Closed SchoolGuy closed 1 year ago

SchoolGuy commented 1 year ago

Describe the problem you are having

I have video files that play perfectly fine with VLC locally however in the WebUI, they refuse to play with the following error:

grafik,

Version

0.12.0

Frigate config file

detectors:
  coral:
    type: edgetpu
    device: usb
mqtt:
  host: mosquitto.mqtt.svc.cluster.local
record:
  enabled: True
  retain:
    days: 90
    mode: motion
  events:
    pre_capture: 30
    post_capture: 30
    retain:
      default: 90
      mode: all
cameras:
  garten_dolly:
    ffmpeg:
      input_args:
        - -avoid_negative_ts
        - make_zero
        - -fflags
        - +genpts+discardcorrupt
        - -flags
        - low_delay
        - -strict
        - experimental
        - -analyzeduration
        - 1000M
        - -probesize
        - 1000M
        - -rw_timeout
        - "5000000"
      inputs:
        - path: http://<IP>/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=viewer&password=<removed>
          roles:
            - record
            - rtmp
        - path: http://<IP>/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=viewer&password=<removed>
          roles:
            - detect
    detect:
      width: 1280
      height: 720
    motion:
      mask:
        - 920,0,919,47,357,46,357,0
  garten_igel:
    ffmpeg:
      inputs:
        - path: rtsp://<user>:<removed>@<IP>:554/h264_stream
          roles:
            - detect
            - rtmp
            - record
    rtmp:
      enabled: False
    detect:
      width: 1280
      height: 720
  garten_vogel:
    ffmpeg:
      inputs:
        - path: rtsp://<user>:<removed>@<IP>:554/h264_stream
          roles:
            - detect
            - rtmp
            - record
    rtmp:
      enabled: False
    record:
      retain:
        mode: motion
    detect:
      width: 1280
      height: 720
    motion:
      mask:
        - 231,24,233,58,9,58,11,23

Relevant log output

VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. 
Object { code: 4, message: "The media could not be loaded, either because the server or network failed or because the format is not supported." }
videojs-seek-buttons-fa3a5bd5.js:31:1499
MouseEvent.mozPressure sollte nicht mehr verwendet werden. Verwenden Sie PointerEvent.pressure stattdessen. videojs-seek-buttons-fa3a5bd5.js:33:5970
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. 
Object { code: 4, message: "The media could not be loaded, either because the server or network failed or because the format is not supported." }
videojs-seek-buttons-fa3a5bd5.js:31:1499
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable. videojs-seek-buttons-fa3a5bd5.js:61

FFprobe output from your camera

ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
  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

Frigate stats

{"cpu_usages":{"%Cpu(s):":{"cpu":"id,","mem":"1.5"},"1":{"cpu":"0.0","mem":"0.0"},"113":{"cpu":"0.0","mem":"0.1"},"134":{"cpu":"0.0","mem":"0.2"},"135":{"cpu":"0.0","mem":"0.1"},"136":{"cpu":"0.0","mem":"0.1"},"139":{"cpu":"0.0","mem":"0.1"},"148":{"cpu":"0.0","mem":"0.2"},"15":{"cpu":"0.0","mem":"0.0"},"165":{"cpu":"0.0","mem":"0.0"},"17":{"cpu":"0.0","mem":"0.0"},"187":{"cpu":"0.0","mem":"0.0"},"220":{"cpu":"0.0","mem":"0.0"},"24":{"cpu":"0.0","mem":"0.0"},"25":{"cpu":"0.0","mem":"0.0"},"26":{"cpu":"0.0","mem":"0.0"},"27":{"cpu":"0.0","mem":"0.0"},"28":{"cpu":"0.0","mem":"0.0"},"29":{"cpu":"0.0","mem":"0.0"},"30":{"cpu":"0.0","mem":"0.0"},"31":{"cpu":"0.0","mem":"0.0"},"32":{"cpu":"0.0","mem":"0.0"},"40":{"cpu":"0.0","mem":"0.0"},"42":{"cpu":"0.0","mem":"0.0"},"427":{"cpu":"0.3","mem":"0.5"},"433":{"cpu":"0.0","mem":"0.1"},"434":{"cpu":"8.0","mem":"0.7"},"436":{"cpu":"0.7","mem":"0.6"},"442":{"cpu":"10.7","mem":"0.7"},"443":{"cpu":"0.0","mem":"0.4"},"444":{"cpu":"0.0","mem":"0.6"},"445":{"cpu":"0.0","mem":"0.1"},"446":{"cpu":"0.7","mem":"0.6"},"447":{"cpu":"2.0","mem":"0.6"},"450":{"cpu":"0.0","mem":"0.6"},"453":{"cpu":"0.0","mem":"0.4"},"455":{"cpu":"2.3","mem":"0.6"},"459":{"cpu":"21.0","mem":"0.3"},"461":{"cpu":"0.0","mem":"0.1"},"462":{"cpu":"140.7","mem":"0.6"},"470":{"cpu":"2.3","mem":"0.2"},"79":{"cpu":"0.0","mem":"0.0"},"80":{"cpu":"0.0","mem":"0.0"},"82":{"cpu":"0.0","mem":"0.0"},"89":{"cpu":"0.0","mem":"0.2"},"9026":{"cpu":"0.0","mem":"0.0"},"9034":{"cpu":"0.0","mem":"0.1"},"9039":{"cpu":"0.0","mem":"0.0"},"9041":{"cpu":"1.0","mem":"0.2"},"97":{"cpu":"0.0","mem":"0.0"},"98":{"cpu":"2.3","mem":"1.1"},"MiB":{"cpu":"8431.3","mem":"avail"},"PID":{"cpu":"%CPU","mem":"%MEM"},"Tasks:":{"cpu":"stopped,","mem":"0"},"top":{"cpu":"users,","mem":"load"}},"detection_fps":4.2,"detectors":{"coral":{"detection_start":0.0,"inference_speed":29.8,"pid":434}},"garten_dolly":{"camera_fps":5.1,"capture_pid":447,"detection_enabled":1,"detection_fps":4.2,"ffmpeg_pid":459,"pid":442,"process_fps":5.0,"skipped_fps":0.0},"garten_igel":{"camera_fps":0.0,"capture_pid":450,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":9034,"pid":444,"process_fps":0.0,"skipped_fps":0.0},"garten_vogel":{"camera_fps":5.0,"capture_pid":455,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":462,"pid":446,"process_fps":5.0,"skipped_fps":0.0},"service":{"last_updated":1682254988,"latest_version":"0.12.0","storage":{"/dev/shm":{"free":1067.7,"mount_type":"tmpfs","total":1073.7,"used":6.0},"/media/frigate/clips":{"free":7606469.4,"mount_type":"btrfs","total":12001578.3,"used":4394202.5},"/media/frigate/recordings":{"free":7606469.4,"mount_type":"btrfs","total":12001578.3,"used":4394202.5},"/tmp/cache":{"free":383917.7,"mount_type":"overlay","total":478095.1,"used":93127.7}},"temperatures":{},"uptime":16176,"version":"0.12.0-da3e197"}}

Operating system

Other Linux

Install method

HassOS Addon

Coral version

USB

Network connection

Wired

Camera make and model

iCSee

Any other information that may be helpful

The install method is the official Helmchart and not the HassOS Addon.

The camera recording I am trying to see is the following:

https://green-backyard.com/collections/watch-on-smartphone-tablet-pc/products/outdoor-poe-wired-ip-bird-box-camera/

The only thing about the exact model I am able to tell you is that the app is from iCSee: https://icseeapp.com/

NickM-27 commented 1 year ago

Please read the docs: https://docs.frigate.video/guides/getting_started#record

You must explicitly enable record in the frigate config otherwise it can not be enabled in the UI and recordings won't work

SchoolGuy commented 1 year ago

@NickM-27 Please have a look at my config again. I enabled in L8 globally. Isn't that enough?

NickM-27 commented 1 year ago

My bad, missed that somehow.

So in that case you'll want to include frigate logs.

Also, you can check chrome://media-internals to get specific logs from the browser why it can't play back

Also, your ffprobe only contains the header and no actual stream info, it would be helpful to see

SchoolGuy commented 1 year ago

Frigate Logs with IPs removed: https://gist.github.com/SchoolGuy/9609ecbc89e732128c668afac857b051

Chrome Media Internals:

Click me ```json { "26:0": { "id": "26:0", "properties": { "render_id": 26, "player_id": 0, "created": "2023-04-23 14:23:52.485 UTC", "origin_url": "https://frigate..local/", "kFrameUrl": "https://frigate..local/recording/garten_vogel/2023-04-23/06", "kFrameTitle": "Frigate", "url": "blob:https://frigate..local/453b8efb-e141-4278-b5f6-e0548785ef74", "kTextTracks": [], "info": "ChunkDemuxer", "kRendererName": "RendererImpl", "pipeline_state": "kStopped", "event": "kWebMediaPlayerDestroyed", "duration": 10.595 }, "allEvents": [ { "time": 0, "key": "created", "value": "2023-04-23 14:23:52.485 UTC" }, { "time": 46.20199999213219, "key": "origin_url", "value": "https://frigate..local/" }, { "time": 46.20600000023842, "key": "kFrameUrl", "value": "https://frigate..local/recording/garten_vogel/2023-04-23/06" }, { "time": 46.206999987363815, "key": "kFrameTitle", "value": "Frigate" }, { "time": 46.28000000119209, "key": "url", "value": "blob:https://frigate..local/453b8efb-e141-4278-b5f6-e0548785ef74" }, { "time": 46.28200000524521, "key": "kTextTracks", "value": [] }, { "time": 46.28900000452995, "key": "info", "value": "ChunkDemuxer" }, { "time": 46.293000012636185, "key": "kRendererName", "value": "RendererImpl" }, { "time": 47.15599998831749, "key": "pipeline_state", "value": "kStarting" }, { "time": 160.58599999547005, "key": "event", "value": "kWebMediaPlayerDestroyed" }, { "time": 160.58899998664856, "key": "pipeline_state", "value": "kStopping" }, { "time": 160.5929999947548, "key": "pipeline_state", "value": "kStopped" }, { "time": 71.4079999923706, "key": "duration", "value": 10.595 } ], "lastRendered": 0, "firstTimestamp_": 147437441.523 }, "26:1": { "id": "26:1", "properties": { "render_id": 26, "player_id": 1, "created": "2023-04-23 14:23:52.650 UTC", "origin_url": "https://frigate..local/", "kFrameUrl": "https://frigate..local/recording/garten_vogel/2023-04-23/06", "kFrameTitle": "Frigate", "url": "blob:https://frigate..local/c35fba83-c416-42b8-af50-e993db8dc5e9", "kTextTracks": [], "info": "ChunkDemuxer", "kRendererName": "RendererImpl", "pipeline_state": "kStarting", "duration": 10.595 }, "allEvents": [ { "time": 0, "key": "created", "value": "2023-04-23 14:23:52.650 UTC" }, { "time": 0.039000004529953, "key": "origin_url", "value": "https://frigate..local/" }, { "time": 0.04100000858306885, "key": "kFrameUrl", "value": "https://frigate..local/recording/garten_vogel/2023-04-23/06" }, { "time": 0.041999995708465576, "key": "kFrameTitle", "value": "Frigate" }, { "time": 0.06700000166893005, "key": "url", "value": "blob:https://frigate..local/c35fba83-c416-42b8-af50-e993db8dc5e9" }, { "time": 0.0690000057220459, "key": "kTextTracks", "value": [] }, { "time": 0.07300001382827759, "key": "info", "value": "ChunkDemuxer" }, { "time": 0.08400002121925354, "key": "kRendererName", "value": "RendererImpl" }, { "time": 0.0910000205039978, "key": "pipeline_state", "value": "kStarting" }, { "time": 41.860000014305115, "key": "duration", "value": 10.595 } ], "lastRendered": 0, "firstTimestamp_": 147437606.598 } } ```

The output of ffprobe is not outputting more. The camera works as expected though in the live view. Since the affected camera has only a single stream for all three roles this appears to be rather weird.

my-umd commented 1 year ago

Could be a different issue, but the error message was seen in #6054. I saw this same error message several times as well. My issue was fixed automatically after several days.

NickM-27 commented 1 year ago

do you see any lerrors in the NGINX logs when trying to view?

SchoolGuy commented 1 year ago

@NickM-27 What nginx? I am using Traefik on my k3s. Traefik is not reporting any errors that are related to Frigate. I will double check but I didn't see any so far.

NickM-27 commented 1 year ago

nginx is built into frigate, you can get the logs from the UI

SchoolGuy commented 1 year ago

@my-umd Thanks for the hint. It appears that there was no solution provided in the issue according to my understanding. I will however check the client side network log of Chrome/Firefox and report with results.

SchoolGuy commented 1 year ago

@NickM-27 arent't those this logs?

Frigate Logs with IPs removed: https://gist.github.com/SchoolGuy/9609ecbc89e732128c668afac857b051

NickM-27 commented 1 year ago

no, those are frigate logs.

SchoolGuy commented 1 year ago

Okay found them. I overlooked the Tab Switcher. There are indeed related errors visible:

2023-04-23 17:36:49.399479983  10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /api/events?before=1682287199&after=1682200800&camera=garten_vogel&has_clip=1&include_thumbnails=0&limit=5000 HTTP/1.1" 200 3 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:36:49.404401687  2023/04/23 19:36:49 [error] 136#136: *6785 ngx_file_reader_update_state_file_info: open() "/media/frigate/recordings/2023-04-22/22/garten_vogel/59.39.mp4" failed (2: No such file or directory), client: 10.42.3.23, server: , request: "GET /vod/2023-04/23/00/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1", host: "frigate.<domain>.local", referrer: "https://frigate.<domain>.local/recording/garten_vogel"
2023-04-23 17:36:49.404522920  10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /vod/2023-04/23/00/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 404 124 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:36:49.406148458  10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /api/garten_vogel/recordings/summary?timezone=Europe%2FBerlin HTTP/1.1" 200 695 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:36:49.409582370  10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /api/garten_vogel/recordings?before=1682272799&after=1682269200 HTTP/1.1" 200 3 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:36:49.434645090  2023/04/23 19:36:49 [error] 136#136: *6787 ngx_file_reader_update_state_file_info: open() "/media/frigate/recordings/2023-04-22/22/garten_vogel/59.39.mp4" failed (2: No such file or directory), client: 10.42.3.23, server: , request: "GET /vod/2023-04/23/00/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1", host: "frigate.<domain>.local", referrer: "https://frigate.<domain>.local/recording/garten_vogel"
2023-04-23 17:36:49.434765964  10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /vod/2023-04/23/00/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 404 124 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"

From client side this looks like this:

Screenshot_20230423_193351

SchoolGuy commented 1 year ago

However, it seems that those 404's are a bad example since I deleted those manually since there is nothing on them. Other files which are present just return 200s...

2023-04-23 17:45:09.047063975  10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /api/garten_vogel/recordings?before=1682164799&after=1682161200 HTTP/1.1" 200 380 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:09.050936681  10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /vod/2023-04/22/13/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 200 168 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:09.073648984  10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /vod/2023-04/22/13/garten_vogel/Europe,Berlin/index-v1.m3u8 HTTP/1.1" 200 181 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:09.099079370  10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /vod/2023-04/22/13/garten_vogel/Europe,Berlin/init-v1.mp4 HTTP/1.1" 200 792 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:09.111379022  10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /vod/2023-04/22/13/garten_vogel/Europe,Berlin/seg-1-v1.m4s HTTP/1.1" 200 4029313 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.042035257  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /api/garten_vogel/recordings?before=1682157599&after=1682154000 HTTP/1.1" 200 756 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.080061430  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /api/events?before=1682200799&after=1682114400&camera=garten_vogel&has_clip=1&include_thumbnails=0&limit=5000 HTTP/1.1" 200 3 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.103784745  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 200 166 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.124961320  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/index-v1.m3u8 HTTP/1.1" 200 197 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.146456522  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/init-v1.mp4 HTTP/1.1" 200 792 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.157546855  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/seg-1-v1.m4s HTTP/1.1" 200 2858984 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.569158084  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 200 166 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.589701966  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/index-v1.m3u8 HTTP/1.1" 200 197 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.619945964  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/init-v1.mp4 HTTP/1.1" 200 792 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.629285524  10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/seg-1-v1.m4s HTTP/1.1" 200 2858984 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
NickM-27 commented 1 year ago

the media-internals that were provided show the playback happening as expected and shows no errors. So either it wasn't the right one that was selected, or this playback error has nothing to do with frigate itself. We have definitely seen errors like this before happening due to a bad network or proxy setup, have you tried with local ip and port?

SchoolGuy commented 1 year ago

@NickM-27 Then I see the following problems (mind that my frigate runs inside a k3s and as such all connections are NATed):

$ kubectl -n frigate port-forward pods/frigate-578c7849c7-jgtrr 5000:5000
Forwarding from 127.0.0.1:5000 -> 5000
Forwarding from [::1]:5000 -> 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
E0423 20:07:03.240178     452 portforward.go:379] error copying from remote stream to local connection: readfrom tcp4 127.0.0.1:5000->127.0.0.1:42860: write tcp4 127.0.0.1:5000->127.0.0.1:42860: write: broken pipe
Handling connection for 5000
E0423 20:07:15.471483     452 portforward.go:379] error copying from remote stream to local connection: readfrom tcp4 127.0.0.1:5000->127.0.0.1:42830: write tcp4 127.0.0.1:5000->127.0.0.1:42830: write: broken pipe
SchoolGuy commented 1 year ago

Any more ideas?

github-actions[bot] commented 1 year ago

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.

SchoolGuy commented 1 year ago

Bump. This issue is still present and unsolved.

NickM-27 commented 1 year ago

This looks like some issue specific to the network setup here

github-actions[bot] commented 1 year ago

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.