Skip to content
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

Live stream freeze all time with reolink cameras #1741

Closed
Gamso opened this issue Dec 11, 2024 · 18 comments
Closed

Live stream freeze all time with reolink cameras #1741

Gamso opened this issue Dec 11, 2024 · 18 comments
Labels
question Further information is requested

Comments

@Gamso
Copy link

Gamso commented Dec 11, 2024

I cleared my browser cache and i used the latest version of Home Assistant.
image

Card diagnostic information:

card_version: 6.0.3
browser: >-
  Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101
  Firefox/133.0
date: 2024-12-11T16:21:19.199Z
lang: fr
timezone: Europe/Paris
git:
  hash: 47fdfbc
  build_date: Wed, 11 Dec 2024 03:36:17 GMT
  commit_date: Tue, 10 Dec 2024 19:35:09 -0800
ha_version: 2024.12.2
integrations:
  reolink:
    detected: true
  frigate:
    detected: false
  hass_web_proxy:
    detected: false
  motioneye:
    detected: true
config:
  type: custom:frigate-card
  cameras:
    - camera_entity: camera.e1_zoom_salon_fluent
      title: Salon
      live_provider: ha
      engine: reolink
      dependencies:
        cameras:
          - camera.e1_zoom_salon_clair
      capabilities:
        disable_except: []
      ptz:
        presets:
          home:
            action: perform-action
            perform_action: button.press
            target:
              entity_id: button.e1_zoom_salon_guard_go_to
        service: button.press
        data_left_start:
          entity_id: button.e1_zoom_salon_ptz_gauche
        data_left_stop:
          entity_id: button.e1_zoom_salon_arret_ptz
        data_right_start:
          entity_id: button.e1_zoom_salon_ptz_droit
        data_right_stop:
          entity_id: button.e1_zoom_salon_arret_ptz
        data_up_start:
          entity_id: button.e1_zoom_salon_ptz_haut
        data_up_stop:
          entity_id: button.e1_zoom_salon_arret_ptz
        data_down_start:
          entity_id: button.e1_zoom_salon_ptz_bas
        data_down_stop:
          entity_id: button.e1_zoom_salon_arret_ptz
        data_zoom_in_start:
          entity_id: button.e1_zoom_salon_ptz_zoom_avant
        data_zoom_in_stop:
          entity_id: button.e1_zoom_salon_arret_ptz
        data_zoom_out_start:
          entity_id: button.e1_zoom_salon_ptz_zoom_arriere
        data_zoom_out_stop:
          entity_id: button.e1_zoom_salon_arret_ptz
    - camera_entity: camera.e1_zoom_salon_clair
      live_provider: ha
      engine: reolink
      capabilities:
        disable_except:
          - substream
    - camera_entity: camera.e1_zoom_bureau_fluent
      title: Bureau
      live_provider: ha
      engine: reolink
      dependencies:
        cameras:
          - camera.e1_zoom_bureau_clair
      capabilities:
        disable_except: []
      ptz:
        presets:
          home:
            action: perform-action
            perform_action: button.press
            target:
              entity_id: button.e1_zoom_bureau_guard_go_to
        service: button.press
        data_left_start:
          entity_id: button.e1_zoom_bureau_ptz_gauche
        data_left_stop:
          entity_id: button.e1_zoom_bureau_arret_ptz
        data_right_start:
          entity_id: button.e1_zoom_bureau_ptz_droit
        data_right_stop:
          entity_id: button.e1_zoom_bureau_arret_ptz
        data_up_start:
          entity_id: button.e1_zoom_bureau_ptz_haut
        data_up_stop:
          entity_id: button.e1_zoom_bureau_arret_ptz
        data_down_start:
          entity_id: button.e1_zoom_bureau_ptz_bas
        data_down_stop:
          entity_id: button.e1_zoom_bureau_arret_ptz
        data_zoom_in_start:
          entity_id: button.e1_zoom_bureau_ptz_zoom_avant
        data_zoom_in_stop:
          entity_id: button.e1_zoom_bureau_arret_ptz
        data_zoom_out_start:
          entity_id: button.e1_zoom_bureau_ptz_zoom_arriere
        data_zoom_out_stop:
          entity_id: button.e1_zoom_bureau_arret_ptz
    - camera_entity: camera.e1_zoom_bureau_clair
      live_provider: ha
      engine: reolink
      capabilities:
        disable_except:
          - substream
  view:
    default: live
  live:
    preload: false
  menu:
    style: overlay
    buttons:
      microphone:
        enabled: true
      mute:
        enabled: true
      screenshot:
        enabled: true
      recordings:
        enabled: false
      frigate:
        enabled: true
      cameras:
        enabled: true
      substreams:
        enabled: true
        icon: mdi:high-definition
      live:
        enabled: true
      clips:
        enabled: true
      media_player:
        enabled: false
      image:
        enabled: false
      download:
        enabled: false
      ptz_controls:
        enabled: true
      camera_ui:
        enabled: true
      timeline:
        enabled: false
      snapshots:
        enabled: false
      expand:
        enabled: false
      ptz_home:
        enabled: false
      play:
        enabled: false

Description of problem:

Since version 6.0.3, my live freeze every time even in low quality.
In this version, I can also look into the past, as I have the impression that the card generates a buffer.

Here a GIF showing the problem :
firefox_Ef7CtZd8Bq

Additional information:

I use reolink E1 with Home Assistant integration (i'm not use frigate).
I rollback in version 6.0.2 and problem gone.

@Gamso Gamso added the bug Something isn't working label Dec 11, 2024
@dermotduffy
Copy link
Owner

@Gamso Please use the new issue template, include at least the diagnostic information. I would be curious to see if your Home Assistant has been updated to the very latest.

@dermotduffy dermotduffy added question Further information is requested and removed bug Something isn't working labels Dec 11, 2024
@Gamso
Copy link
Author

Gamso commented Dec 11, 2024

Ho sorry for that i just edit my first message. Tell me if you need further informations.

@dermotduffy
Copy link
Owner

If you just open the same entity in HA outside the card (press 'e' on the dashboard, find your entity), does the steam behave the same or differently?

@Gamso
Copy link
Author

Gamso commented Dec 11, 2024

If i watch the steam without the card i don't have the problem like the version 6.0.2.
I use the default settings for reolink E1, which uses the RTSP protocol.

@dermotduffy
Copy link
Owner

If i watch the steam without the card i don't have the problem like the version 6.0.2.

Sorry, I cannot explain why this would be the case. The code between both HA, and the card with the ha live provider, is extremely similar (and v6.0.3 actually made it more similar). In general, it looks a bit like your stream might be HLS instead of WebRTC (I've seen buffering like that before with HLS streams), but I cannot explain why that would be.

Is there anything unusual in your Javascript console (F12 in Chrome), or in your HA logs? Have you tried restarting your HA instance as a last ditch effort? ;-)

@Gamso
Copy link
Author

Gamso commented Dec 12, 2024

Yes i already restart HA. And yes with the version 6.0.3 i see HLS displayed !

image

And here some error show in console :

image

@dermotduffy
Copy link
Owner

And yes with the version 6.0.3 i see HLS displayed !

Aha, ok.

And here some error show in console :

Most of them look like other ecards, although the lit-html one might be related. Seems like it's complaining about a backend error. Anything in your Home Assistant logs at the same time?

@Gamso
Copy link
Author

Gamso commented Dec 12, 2024

I just try and no any log about that.

@dermotduffy
Copy link
Owner

I just try and no any log about that.

OK. Sorry, I have no more ideas. Lets see if anyone else runs into 6.0.3 not working, but 6.0.2 working.

@dermotduffy
Copy link
Owner

dermotduffy commented Dec 12, 2024

I just try and no any log about that.

Just to confirm: Are there any errors at all in the Home Assistant logs when you open the stream in the card?

@Gamso
Copy link
Author

Gamso commented Dec 12, 2024

I just try again and no 0 logs.

if it helps, the browser console for version 6.0.3 :
image

And for the version 6.0.2 :
image

@dermotduffy
Copy link
Owner

dermotduffy commented Dec 13, 2024

@copa80 Is the behavior the same for you? Works with v6.0.2, but not v6.0.3?

@copa80
Copy link

copa80 commented Dec 15, 2024

The Problem is still the same. If I run the entities Itself without frigate card it works fluently. In the Card there is only interruption and freezing stream. Even beweist 6.0.8. does Not help. All was fine before 6.0.0
Anything Must have changed. 10 cams all same freeze. No logs that could help. When stream in frigate Card started automatically (as everything worked fine under 5.x.x) it Said transmission. Now there is an ugly timeline and only stucking.

@dermotduffy
Copy link
Owner

I am wondering if your videos are somehow ending up in HLS, which might make this the same problem as #1755 .

@Gamso
Copy link
Author

Gamso commented Dec 15, 2024

Probably yes. Since v6.0.3 HLS is visible and network frame show a lot of request for this protocole.

@dermotduffy
Copy link
Owner

Try v6.0.11, I have a suspicion/hope it will help those of you impacted -- but I'm not sure!

@copa80
Copy link

copa80 commented Dec 16, 2024

Seems to work now!

@Gamso
Copy link
Author

Gamso commented Dec 16, 2024

i confirm too. Work perfectly again !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants