-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Config Support]: Cannot playback clips on Android / Home Assistant or Frigate #4594
Comments
Is your camera h.265? Are the phone and computer on the same time zone / showing the same time? What if you try to download the clip on the phone? |
The camera is set to h264 it is Hikvision 180 degree panoramic camera. The phone and computer same time zone same time. Yes downloading the clips onto the phone play via VLC player fine. |
The time in the events list is the start time of the event. The snapshot could be from any point of time during the event. They are not expected to be the same. |
Hi, Thanks for the reply, the difference seems to be 10 hours which is co-incidentally difference between my time zone Queensland Australia and UTC 10 hours. Should Frigate in LXC in Docker be running UTC or the host Proxmox time zone which is Queensland Australia? If so how do I set the timezone in Docker for Frigate? Thanks |
With current versions you will want Frigate running the host timezone (not utc). In 0.12 it won't matter |
Hey Nick, Thanks, sounds good when do you think version 0.12 will be out? |
You can follow the progress here #4055 |
Great thanks, in the interim I update the portainer stack docker compose to the following: volumes: Also in the LXC set to Australia using dpkg-reconfigure tzdata |
yes you will want to add that 👍 |
Okay I have the timezones and times aligned showing correctly in snapshots, however I still cannot play clips on Android via HA or Frigate :5000 direct. "The media could not be loaded, either because the server or network failed or because the format is not supported" Works when I download to device but not when I click event and clip. Is there any logs anywhere that I could look at to find out more details I am not familiar where logs are for frigate in proxmox > docker. |
I would wait and try for a new recording and see if it has any issues |
Yup I did that, and that is how I know snapshot date and time is aligned, works on PC okay. Where do I find logs for this to get more details? |
I'm not sure on mobile, would need browser logs and docker logs. as far as your camera config goes, if you set your I Frame interval to be the same as your fps. also maybe try turning the profile to base profile. What android device do you have? |
Okay will check. I have a Galaxy S21 Ultra, I can confirm that the clips play fine with audio etc using Firefox browser on Android but not Chrome or Dolphin Browser. I have made the changes you mentioned for I frame and profile with not change for Chrome and Dolphin Browser both do not play clips. |
Hi, I have the Chrome Log with the error details: Found some info of someone having similar with a different project: The fix / suggestion was 'if you're playing HLS or DASH streams, consider including the overrideNative setting' not sure if this is relevant? |
There seems to be a few scenarios where this issue comes up one more below: I get the following image same as in the post above: |
Interesting, we did a lot of dependency updates in 0.12 so it is possible this has been fixed already there (if it is related to the linked issue) |
It is pretty hard to get the benefits of Frigate if you cannot play clips on an android mobile device in native chrome Which month do you think version 0.12 will be released? |
I agree but it is difficult to say why this is happening, chrome on my android device is working just fine. Chrome has done a lot of updates lately, it is possible that they broke something. Might be worth trying the beta version of chrome to see if it behaves any differently. |
Thanks, just installed Chrome Beta and the same issue, the above two articles point to code changes to fix. |
The error "Media could not be loaded" is a very generic error that occurs in MANY different cases. It can happen because your stream is h.265 and your browser doesn't support that, it can happen because there is a timezone mismatch and the requested files don't exist, it can happen if one of the segments saved is corrupted, etc. So while it fixed it for the users that asked the question, it is not as though one code change will fix all instances of this error. Also, the fact that this isn't a widespread issue for all users with Chrome on Android means it is likely something more specific. We are also using videojs 7.20.2 in frigate 0.11.1 which would contain the default behaviors that the linked issues suggested Line 22 in a46c370
|
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. |
Hi, did you still encounter the problem? I am using frigate 0.12.1 and i have exactly the same error. I'm also using a Galaxy S21 Ultra. The error also occurs on my Galaxy Tab S8+. |
I'm not sure but I think 0.12.1 caused my problem. In any case the problem is exactly what they closed out here with no fix (other than to say 0.12.1 will fix it). I am still testing Frigate since I can't get a Coral. I only have one camera currently but a few weeks ago had 3 and if I recall correctly I could watch the clips on my phone (Moto G5) with the app and the HA card. Now I can't with HA or Chrome - can download and watch with VLC fine. I guess I'll have to live with it but I wish I wasn't so sure that it worked before and is now broken. I thought I had found a reason when I saw that they no longer opened port 5000 automatically, but when I opened it in the addon there was no effect. |
there were no changes in 0.12.1 related to this as it was a small update that only fixed a few specific bugs
that is not what happened, the issue was closed due to no continued response from OP and the issue was never identified so 0.12.1 was never claimed to fix anything. in the vast majority of cases this issue is due to bad camera / camera settings or something on the device that is watching the stream. If it plays on one device but not another then that further points to an issue with the device since the code to playback is transparent from frigate's POV. Especially in the case that it worked on a device and then stopped some time later, would point to a browser update that could have broken things. |
Sorry to seem unappreciative. I missed the post from the OP that said it worked with Firefox (and indeed it does) which points to a problem with my phone also. They may have snuck in an update recently. I'm still confused that it doesn't work with the Home Assistant app, but there have definitely been updates there in the past month. Then again it's possible that I'm mistaken about it ever working since I lost interest in it when I searched for a Coral USB. |
Hmm, then I think it has something to do with an update of the chromium engine. I'm pretty sure that it was working a few weeks ago. At that time I was on 0.12.0. After it stopped working I found this issue and thought that maybe an update to 0.12.1 would help, but it didn't. I mainly asked, because I thought it was specific to Samsung devices. For now I'm just using the Samsung browser and installed the HA App as a PWA via the Samsung browser. I will check in Chrome periodically. |
it seems it is still going to be specific to a certain camera codec or profile, my android device with chrome has no problem with my cameras; though my cameras are mostly |
Thanks for the info. I was thinking (as is the case a lot of the time) that it was just me and my luck. I tried Edge before I read (re-read?) your post and would probably have downloaded Dolphin before Firefox - so you saved me a little time. I have a home screen link to Frigate in Firefox that I'm sure takes a bit longer than the app to view a clip but it's quicker than downloading and viewing in VLC |
@inspired27 do you have FIREWALL turned on? How do you access from phone CLOUDFLARED OR ELSE? |
I use Cloudflare. Not sure why that would affect the app or Chrome browser, but not Firefox. Same with a firewall but I don't have that either on Android |
I have read somewhere a suggestion. I selected 1080 for my main stream that is recorded and now I can play it on all my android devices. |
I can confirm, that it is also working for me now. But I didn't change anything in my setup. Maybe there Was an update for Chrome. |
I have Reolink RLC -410 camera and it does 2304x1296 or above for main stream or 640x480 for substream. I will try to change role-record to the substream to see if that works |
Thanks. I hope mine starts to work again - currently only have one cam for testing, but it won't work on Blue Iris anymore (for some reason) and I have another that I can't configure to BI either after a power outage and hard reset. Hoping to get a Coral USB soon. Also one is Reolink and the other is Hikvision so will see if the camera has anything to do with it (doubt it though) |
Update: got both cameras to work with Blue Iris again - not sure what I did differently and again they are different brands. |
I am not sure about birdseye. I have never used it. |
birdseye uses the detect stream as the input |
That's what I thought, but I may have my frigate.yaml setup wrong. I have included birdseye:/ enabled: True and my substream (640x480) has roles:/ - detect. I must have something wrong since the card shows the birdseye view but if I open the UI and choose Birdseye it is just a black screen with a large bird. Maybe that's because I'm only using one camera? That will change soon as I have ordered a Google Coral USB. |
by default birdseye only shows a camera when that camera is detecting an object |
I read that - too bad I didn't comprehend or retain that information LOL |
I'm getting the exact same problems. I can watch clips or recordings fine on any pc, any browser. . But not on my phone, android using the home assistant app chrome or brave, Firefox does work though. Have not tried until the last few days and getting the exact same errors as the post above. |
I have recently discovered (?) this blueprint: "https://github.com/SgtBatten/HA_blueprints". It notifies you and sends a thumbnail that you click on to start a clip. So far I have a slight problem with false trigger events, but the playback seems more dependable than the card in Android. Haven't tested extensively on 5G and sometimes the clip won't come up but I think that's on the false events so if I solve that problem it's a 2fer. Even so, the thumbnail is sufficient to see what triggered the camera |
ill have a look at that link thanks, i havnt set up a card yet for alerts,
just getting all working, it all was good until i tried to watch a clip on
my phone. (AT LEAST FIREFOX WORKS)
…On Fri, 23 Feb 2024 at 19:34, Caddyman68 ***@***.***> wrote:
I'm getting the exact same problems.
I can watch clips or recordings fine on any pc, any browser. . But not on
my phone, android using the home assistant app chrome or brave, Firefox
does work though. Have not tried until the last few days and getting the
exact same errors as the post above.
I have recently discovered (?) this blueprint: "
https://github.com/SgtBatten/HA_blueprints". It notifies you and sends a
thumbnail that you click on to start a clip. So far I have a slight problem
with false trigger events, but the playback seems more dependable than the
card in Android. Haven't tested extensively on 5G and sometimes the clip
won't come up but I think that's on the false events so if I solve that
problem it's a 2fer. Even so, the thumbnail is sufficient to see what
triggered the camera
—
Reply to this email directly, view it on GitHub
<#4594 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADIJIWUWDII5SJ5IBSIZLA3YVDVNHAVCNFSM6AAAAAASTLVKKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRHA4DCOJXHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
John Spencer
|
I fiddled around with the thumbnails Frigate notification sent me through that blueprint. Seems like 2 of my cameras don't let me see clips or snapshots at all (or send me to the video window and can't play) so it has to be something with them or their setup in configuration. 3 work, but not all thumbnails sent me to a clip that played - about 80% did. They are 2 Reolink Lumus and 1 Reolink RLC-410-W; all 3 are wireless but the 410-w is connected via POE although the app says it's connected to wifi. Don't know why these would work and the other 2 (Reolink RLC-410-5mp and Amcrest IP5M-T1277EW-AI) don't. Especially the Reolink. I have a RLC-410 that I can't figure out how to get into Frigate for recording at all, only viewing/streaming. Pretty sure it's a firmware problem but it won't let me upgrade and their support wasn't helpful. |
Great news. For the camera thumbnails in the notifications that don't stream the clip, there is a select (3 dots) to download it. It worked for me on wifi and 5G. Pretty quick although not as fast as the ones that just played especially since I already clicked the thumbnail expecting it to just play. 47 second clip took about a minute to download but that was on 5G. Using the default playe (Photos) on my Android phone I could zoom in too; zoom is available on the clips that stream directly also |
Describe the problem you are having
All clips on Android Samsung Galaxy S21 Ultra or Galaxy S10 do not play in Home Assistant App, Home Assistant Frigate Proxy via Chrome or directly ip:5000 Frigate via Chrome on the device.
Message: "The media could not be loaded, either because the server or network failed or because the format is not supported"
Clips playback on PC Chrome, Edge etc fine
Version
0.11.1-2EADA21
Frigate config file
Relevant log output
Frigate stats
No response
Operating system
Proxmox
Install method
Docker Compose
Coral version
USB
Any other information that may be helpful
No response
The text was updated successfully, but these errors were encountered: