[Support]: Video playback in review stopped worked for 2 cameras after upgrade from 0.16.4 -> 0.17 #22372
-
Checklist
Describe the problem you are havingSome of the cameras doesn't show recorded videos in the web UI when reviewing. UI hangs for the review. I can open the segment from file system with VLC player and it plays fine. Steps to reproduce
... Version0.17 In which browser(s) are you experiencing the issue with?No response Frigate config filemqtt:
host: 192.168.0.13
port: 1883
topic_prefix: frigate
client_id: frigate
user: frigate
password: frigate123
stats_interval: 300
environment_vars:
PLUS_API_KEY:
xxxxxx
ffmpeg:
hwaccel_args: preset-vaapi
#hwaccel_args: preset-intel-qsv-h264
output_args:
record: preset-record-generic-audio-aac
go2rtc:
api:
listen: 0.0.0.0:1984
rtsp:
listen: 0.0.0.0:8554
webrtc:
candidates:
- 192.168.0.1:8555
- stun:8555
listen: 0.0.0.0:8555
streams:
#talli_etu: rtsp://192.168.0.36:554/0/h264major
#talli_etu_sub: rtsp://192.168.0.36:554/0/h264minor
#640x480 5fps i-frame 5
#only main video stream works not sub
talli_etu:
- ffmpeg:rtsp://admin:123456@192.168.0.39:554/user=admin&password=123456&channel=1&stream=0.sdp?
- ffmpeg:talli_etu#audio=opus
- isapi://admin:123456@192.168.0.39:80/
talli_etu_sub:
#- ffmpeg:rtsp://admin:123456@192.168.0.39:554/user=admin&password=123456&channel=1&stream=1.sdp?#backchannel=0
- ffmpeg:rtsp://admin:123456@192.168.0.39:554/user=admin&password=123456&channel=1&stream=1.sdp?
- ffmpeg:talli_etu_sub#audio=opus
#test: rtsp://192.168.0.37:554/stream1
#test_sub: rtsp://192.168.0.37:554/stream2
#test_sub: ffmpeg:rtsp://admin:123456@192.168.0.39:554/user=admin&password=123456&channel=1&stream=1.sdp?
#test_sub: ffmpeg:rtsp://admin:123456@192.168.0.39/cam/realmonitor?channel=1&subtype=1
#test_sub: ffmpeg:rtsp://192.168.0.39:554/stream1?username=admin&password=E10ADC3949BA59ABBE56E057F20F883E
#704x576 5fps i-frame 5
talli_taka:
- rtsp://192.168.0.30/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp
- ffmpeg:talli_taka#audio=opus
talli_taka_sub:
- rtsp://192.168.0.30/user=admin_password=tlJwpbo6_channel=1_stream=1.sdp
- ffmpeg:talli_taka_sub#audio=opus
#704x576 5fps i-frame 5
talli_sivu:
- rtsp://192.168.0.33/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp
- ffmpeg:talli_sivu#audio=opus
talli_sivu_sub:
- rtsp://192.168.0.33/user=admin_password=tlJwpbo6_channel=1_stream=1.sdp
- ffmpeg:talli_sivu_sub#audio=opus
#704x576 5fps i-frame 5
takaovi:
- rtsp://admin:admin@192.168.0.32:554/cam/realmonitor?channel=1&subtype=0
takaovi_sub:
- rtsp://admin:admin@192.168.0.32:554/cam/realmonitor?channel=1&subtype=1
#704x576 5 fps i-frame 5
#hamrolte_old_etuovi: rtsp://192.168.0.34:554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream
#hamrolte_old_etuovi_sub: rtsp://192.168.0.34:554/user=admin_password=tlJwpbo6_channel=1_stream=1.sdp?real_stream
etuovi:
- rtsp://192.168.0.37:554/stream1
- ffmpeg:etuovi#audio=opus
etuovi_sub:
- rtsp://192.168.0.37:554/stream2
- ffmpeg:etuovi_sub#audio=opus
#704x576 5fps i-frame 5
katos:
- rtsp://admin:1234567a@192.168.0.35:554/cam/realmonitor?channel=1&subtype=0
- ffmpeg:katos#audio=opus
katos_sub:
- rtsp://admin:1234567a@192.168.0.35:554/cam/realmonitor?channel=1&subtype=1
- ffmpeg:katos_sub#audio=opus
#704x576 5fps i-frame 5
katostie:
- rtsp://192.168.0.31/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp
- ffmpeg:katostie#audio=opus
katostie_sub:
- rtsp://192.168.0.31/user=admin_password=tlJwpbo6_channel=1_stream=1.sdp
- ffmpeg:katostie_sub#audio=opus
#704x576 5fps i-frame 5
detectors:
coral:
type: edgetpu
device: usb
audio:
listen:
- bark
- fire_alarm
- scream
- speech
- whispering
- yell
- crying
- car
- car_alarm
- car_passing_by
- bicycle
- dog
record:
enabled: true
expire_interval: 3
sync_recordings: true
continuous:
days: 7
motion:
days: 7
alerts:
retain:
days: 14
mode: all
detections:
retain:
days: 14
mode: all
detect:
enabled: true
# Optional: width of the frame for the input with the detect role (default: shown below)
width: 704
# Optional: height of the frame for the input with the detect role (default: shown below)
height: 576
# Optional: desired fps for your camera for the input with the detect role (default: shown below)
# NOTE: Recommended value of 5. Ideally, try and reduce your FPS on the camera.
fps: 5
annotation_offset: -800
# stationary:
# interval: 10
# threshold: 50
# max_frames:
# Optional: Default for all object types (default: not set, track forever)
# default: 3000
# Optional: Object specific values
# objects:
# person: 1000
# car: 1000
# dog: 1000
# cat: 1000
model:
width: 320 #default 320
height: 320 #default 320
model_type: yolo-generic
path: /config/model_cache/yolov9-s-relu6-best_320_int8_edgetpu.tflite
labelmap_path: /config/labels-coco17.txt
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
enabled: true
# Optional: save a clean PNG copy of the snapshot image (default: shown below)
clean_copy: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
retain:
# Required: Default retention days (default: shown below)
default: 3
# Optional: Per object retention days
objects:
person: 5
birdseye:
# Optional: Enable birdseye view (default: shown below)
enabled: true
# NOTE: Enabling this will set birdseye to run 24/7 which may increase CPU usage somewhat
restream: false
# Optional: Mode of the view. Available options are: objects, motion, and continuous
# objects - cameras are included if they have had a tracked object within the last 30 seconds
# motion - cameras are included if motion was detected in the last 30 seconds
# continuous - all cameras are included always
mode: motion
objects:
# Optional: list of objects to track from labelmap.txt (default: shown below)
track:
- person
- bicycle
- motorcycle
- dog
- car
- truck
- bus
#filters:
# cat:
# min_score: 0.4
# threshold: 0.5
# dog:
# min_score: 0.4
# threshold: 0.5
# person:
# min_score: 0.5
# threshold: 0.6
# car:
# min_score: 0.3
# threshold: 0.5
cameras:
# test:
# ffmpeg:
# inputs:
# - path: /media/frigate/10.17.mp4
# input_args: -re -stream_loop -1 -fflags +genpts
# roles:
# - detect
# detect:
# width: 704
# height: 576
# fps: 5
#Anpviz kamera
# anpviz:
# ffmpeg:
# hwaccel_args: preset-vaapi
# inputs:
# - path: rtsp://admin:123456@192.168.0.39/stream1/
# input_args: preset-rtsp-restream
# roles:
# - detect
# - path: rtsp://admin:123456@192.168.0.39/stream0/
# input_args: preset-rtsp-restream
# roles:
# - record
# live:
# stream_name: test
# test:
# ffmpeg:
# hwaccel_args: preset-vaapi
# inputs:
# - path: rtsp://127.0.0.1:8554/anpviz_sub?video=copy
# #input_args: preset-rtsp-restream
# input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 10000000 -use_wallclock_as_timestamps 1
# roles:
# - detect
# - path: rtsp://127.0.0.1:8554/anpviz
# input_args: preset-rtsp-restream
# roles:
# - record
# live:
# stream_name: anpviz_sub
talli_etu:
ffmpeg:
# hwaccel_args: preset-vaapi
# hwaccel_args: preset-intel-qsv-h264
inputs:
#- path: rtsp://127.0.0.1:8554/talli_etu_sub?video=copy&audio=copy
- path: rtsp://127.0.0.1:8554/talli_etu_sub?video&audio
#input_args: preset-rtsp-restream
input_args: -avoid_negative_ts make_zero -fflags
+genpts+discardcorrupt -rtsp_transport tcp -timeout 10000000
-use_wallclock_as_timestamps 1
roles:
- detect
- audio
- path: rtsp://127.0.0.1:8554/talli_etu?video&audio
input_args: preset-rtsp-restream
roles:
- record
audio:
enabled: true
live:
streams:
talli_etu_sub: talli_etu_sub
motion:
mask:
- 0,34,180,34,181,0,0,0
threshold: 30
contour_area: 10
improve_contrast: true
zones:
metsa:
coordinates: 0.433,0.209,0.272,0.19,0.12,0.18,0,0.2,0,0,1,0,1,0.37
inertia: 3
loitering_time: 0
parkki:
coordinates: 0,0.24,0.204,0.206,0.213,0.381,0.268,0.447,0,0.559
inertia: 3
loitering_time: 0
objects:
- person
- car
piha:
coordinates:
0.006,1,1,1,1,0.566,0.425,0.328,0.219,0.378,0.28,0.451,0,0.576,0,1
inertia: 3
loitering_time: 0
tie:
coordinates:
0.605,0.268,0.297,0.207,0.239,0.231,0.432,0.319,1,0.556,1,0.403
inertia: 3
loitering_time: 0
snapshots:
required_zones:
- piha
- tie
review:
alerts:
required_zones: piha
objects:
filters:
car:
mask: 0.001,0.24,0.203,0.205,0.211,0.382,0.244,0.423,0.001,0.533
bus:
mask: 0.001,0.238,0.205,0.205,0.212,0.38,0.244,0.421,0.001,0.534
talli_taka:
ffmpeg:
# hwaccel_args: preset-vaapi
# hwaccel_args: preset-intel-qsv-h264
inputs:
- path: rtsp://127.0.0.1:8554/talli_taka_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/talli_taka
input_args: preset-rtsp-restream
roles:
- record
motion:
mask:
- 0.271,0.099,0.334,0.048,0.37,0.023,0.413,0,0,0,0,0.135,0,0.382
- 1,1,1,0,0.915,0,0.901,0.172,0.839,1
- 0.039,0.049,0.038,0.087,0.374,0.089,0.373,0.049
objects:
track:
- person
- dog
- cat
live:
streams:
talli_taka_sub: talli_taka_sub
zones:
Taka:
coordinates: 0,0.998,0.835,1,0.909,0,0.427,0,0.273,0.1,0,0.388
loitering_time: 0
review:
alerts:
required_zones: Taka
lpr:
enabled: false
talli_sivu:
ffmpeg:
# hwaccel_args: preset-vaapi
# hwaccel_args: preset-intel-qsv-h264
inputs:
- path: rtsp://127.0.0.1:8554/talli_sivu_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/talli_sivu
input_args: preset-rtsp-restream
roles:
- record
motion:
mask:
- 22,52,261,52,262,28,25,28
- 339,318,403,333,408,0,352,0
- 599,23,704,75,704,0,502,0
zones:
piha:
coordinates: 0,576,704,576,704,78,596,30,501,0,131,122,55,109,0,137
objects:
track:
- person
- dog
- cat
live:
streams:
talli_sivu_sub: talli_sivu_sub
review:
alerts:
required_zones:
- piha
lpr:
enabled: false
takaovi:
ffmpeg:
# hwaccel_args: preset-vaapi
# hwaccel_args: preset-intel-qsv-h264
inputs:
- path: rtsp://127.0.0.1:8554/takaovi_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/takaovi
input_args: preset-rtsp-restream
roles:
- record
motion:
mask:
- 303,59,526,85,457,475,576,576,704,576,704,0,0,0,0,81
objects:
track:
- person
- dog
- cat
live:
streams:
takaovi_sub: takaovi_sub
zones:
Terassi:
coordinates:
0.002,0.145,0.425,0.11,0.738,0.156,0.637,0.817,0.807,0.999,0.002,0.998
loitering_time: 0
lpr:
enabled: false
etuovi:
ffmpeg:
# hwaccel_args: preset-vaapi
# hwaccel_args: preset-intel-qsv-h264
inputs:
- path: rtsp://127.0.0.1:8554/etuovi_sub?video&audio
input_args: preset-rtsp-restream
roles:
- detect
- audio
- path: rtsp://127.0.0.1:8554/etuovi?video&audio
input_args: preset-rtsp-restream
roles:
- record
audio:
enabled: true
objects:
track:
- person
- dog
- cat
motion:
mask:
- 0,25,163,24,165,0,0,0
live:
streams:
etuovi_sub: etuovi_sub
lpr:
enabled: false
katos:
ffmpeg:
# hwaccel_args: preset-vaapi
# hwaccel_args: preset-intel-qsv-h264
inputs:
- path: rtsp://127.0.0.1:8554/katos_sub?video&audio
input_args: preset-rtsp-restream
roles:
- audio
- detect
- path: rtsp://127.0.0.1:8554/katos?video&audio
input_args: preset-rtsp-restream
roles:
- record
audio:
enabled: true
zones:
parkki:
coordinates: 1,1,1,0.083,0.94,0.13,0.507,0.119,0.523,1
inertia: 3
loitering_time: 0
piha:
coordinates: 0,0,298,0,704,0,704,0,704,38,661,72,356,67,365,576,0,576
objects:
filters:
car:
mask: 0.505,0.077,1,0.083,1,1,0.522,1,0.51,0.162
motion:
mask:
- 451,50,678,51,679,21,450,22
snapshots:
required_zones:
- piha
live:
streams:
katos_sub: katos_sub
review:
alerts:
required_zones: piha
katostie:
ffmpeg:
# hwaccel_args: preset-vaapi
# hwaccel_args: preset-intel-qsv-h264
inputs:
- path: rtsp://127.0.0.1:8554/katostie_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/katostie
input_args: preset-rtsp-restream
roles:
- record
motion:
mask:
- 24,53,267,51,268,28,28,28
zones:
metsa:
coordinates: 1,0,0.581,0,0.578,0.157,1,0.411
inertia: 3
loitering_time: 0
piha:
coordinates:
1,0.616,0.568,0.335,0.584,0,0.153,0,0.148,0.158,0,0.243,0,0.477,0.143,0.487,0.296,0.987,1,1,1,0.615
inertia: 3
loitering_time: 0
talli:
coordinates: 0,0.235,0.143,0.152,0.146,0,0,0
inertia: 3
loitering_time: 0
tie:
coordinates: 1,0.398,1,0.611,0.57,0.317,0.579,0.156
inertia: 3
loitering_time: 0
parkki:
coordinates: 0,1,0.272,1,0.135,0.495,0,0.493
inertia: 3
loitering_time: 0
snapshots:
required_zones:
- tie
- piha
- metsa
# live:
# streams:
# katostie_sub: katostie_sub
review:
alerts:
required_zones: piha
objects:
filters:
car:
mask: 0.003,0.494,0.136,0.498,0.271,0.999,0,1
version: 0.17-0
camera_groups:
Tie:
order: 1
icon: LuCar
cameras:
- talli_etu
- katostie
Ovet:
order: 2
icon: LuDoorClosed
cameras:
- etuovi
- takaovi
- katos
- talli_sivu
semantic_search:
enabled: false
model_size: small
face_recognition:
enabled: true
model_size: small
lpr:
enabled: true
device: CPU
recognition_threshold: 0.75
format: "^[A-ZÅÄÖ]{1,3}-[1-9][0-9]{0,2}$"
classification:
bird:
enabled: falsedocker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate017
privileged: true # this may not be necessary for all setups
restart: always
#restart: unless-stopped
#image: ghcr.io/blakeblackshear/frigate:cae11cb
image: ghcr.io/blakeblackshear/frigate:0.17.0
logging:
options:
max-size: "20m"
max-file: "3"
network_mode: "host"
shm_size: "256mb" # update for your cameras based on calculation above
devices:
- /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
- /dev/dri/renderD128
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/automation/frigate/config:/config
- /opt/automation/frigate/config/config.yml:/config/config.yml:rw
- /opt/automation/frigate/config/go2rtc:/config/go2rtc
- /var/lib/video/security/frigate:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1984:1984" # go2rtc
#- "1935:1935" # RTMP feeds, will get deprecated
- "8555:8555" # webrtc
- "8554:8554" # Birdseye In v 0.12
environment:
FRIGATE_RTSP_PASSWORD: xxxxxxxx
PLUS_API_KEY: xxxxxxxxRelevant Frigate log outputnothing is outputted hereRelevant go2rtc log outputnothing is also shown hereOperating systemDebian Install methodDocker Compose Network connectionWired Camera make and modelBulk china camera, both cameras worked perfectly with 0.16 Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpfulweb gui logs |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
|
Based on the symptoms you're describing—where video playback works fine when exported but freezes or hangs at specific timestamps in the Review UI—this appears to be related to how the browser's HLS player handles your video streams.(1) The documentation notes that "The HLS browser player is often sensitive to issues with your stream" and that when you export recordings, "ffmpeg can do some 'clean up' of your stream in the re-encoding process."(2) This explains why exported videos play perfectly while the same footage causes issues in the Review interface. Your logs show successful segment delivery ( Here are steps to troubleshoot:
For the two affected cameras specifically, you might try:
The fact that this started after upgrading from 0.16.4 to 0.17 suggests the newer version may have stricter requirements or different handling for HLS playback compatibility. 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
@hawkeye217 thank you, for your support! I can confirm that in my case its related to the MPEG-TS to fMP4 change and the timing of the audio being incorrect.
In my case weird thing still is that the audio stream is in sync with the sub stream but ends up offset with the recording, so live view is working also with audio. |
Beta Was this translation helpful? Give feedback.



@hawkeye217 thank you, for your support!
I can confirm that in my case its related to the MPEG-TS to fMP4 change and the timing of the audio being incorrect.
In my case I can't adjust the audio settings other than on/off so I cant directly fix the offset.
If anyone else looking into this you have two solutions
- ffmpeg:rtsp://192.168.0.30/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp#video=copyIn my case weird thing still is that the audio stream is in sync with the sub stream but ends up offset with the recording, so live view is working also with audio.