-
-
Notifications
You must be signed in to change notification settings - Fork 3k
[Beta Support]: Safari: /vod/clip/ endpoint generates empty first segment, fails to play some clips #21840
Replies: 2 comments · 5 replies
-
|
Can you provide logs with |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Chrome vs Safari |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
For the specific clip you are trying to play, it looks like it's right at the edge of a recording segment, and only 589ms of the segment gets added to the playlist: The This happens on a specific clip, correct? What have you set the frame rate to in your camera's firmware for this stream? This could be a Safari-specific quirk. I don't have an issue on Safari for any of my clips, but that's likely just because none of them I've seen are right at the edge of a segment boundary. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
|
The problem is that there is no minimum viable duration on its own as that depends on the clips frame rate, iframe interval, etc. We already have a minimum duration which works in most cases, there can always be an outlier depending on the cameras settings. |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
|
Yep, there isn't :( Anyway, this one is statistically quite rare, plus - Chrome can overcome it and I encounter this only in Tracked Object Details section. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Yeah. Firefox doesn't have this issue either. Thanks, Tim Apple... If this does turn out to be a broader issue for users, maybe we can look deeper. But with it being so isolated, I think we'll hold off on any changes for now and see what else might come up. |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem you are having
Environment:
Issue:
Explore → Tracked Object Details fails in Safari with "Media failed to decode (error 3)"
Root cause:
/vod/clip/generates nearly empty first segment (120 bytes) that Safari rejects. Chrome works ok.Comparison - same timestamps:
/vod/front_door/start/1769785903/end/1769785938//vod/clip/front_door/start/1769785903.354639/end/1769785937.860702/Working manifest (
/vod/):#EXTM3U #EXT-X-MAP:URI="init-v1-a1.mp4" #EXTINF:10.886, seg-1-v1-a1.m4s ← 7,929,936 bytes #EXTINF:9.943, seg-2-v1-a1.m4s #EXTINF:9.943, seg-3-v1-a1.m4s #EXT-X-ENDLIST
Failing manifest (
/vod/clip/):#EXTM3U #EXT-X-MAP:URI="init-c1-v1-a1.mp4" #EXTINF:0.589, seg-1-v1-a1.m4s ← 120 bytes (empty!) #EXT-X-DISCONTINUITY #EXT-X-MAP:URI="init-c2-v1-a1.mp4" #EXTINF:9.943, seg-2-v1-a1.m4s ...
Segment sizes:
/vod/.../seg-1-v1-a1.m4s: 7,929,936 bytes ✅/vod/clip/.../seg-1-v1-a1.m4s: 120 bytes ❌Expected behavior:
Either skip empty segments or merge them with next segment.
Beta Version
0.17.0-93016c6
Issue Category
WebUI / Frontend
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output (if applicable)
Install method
Docker Compose
docker-compose file or Docker CLI command
Operating system
Debian
CPU / GPU / Hardware
RK3588
Screenshots
Seems nothing extraordinary happens during clip record time.
Steps to reproduce
I have this issue for few clips, the rest is ok.
Note: Same video plays fine in:
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions