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

Lovelace card only up to 4 cameras maximum? #774

Open
kingp0dd opened this issue Nov 16, 2024 · 9 comments
Open

Lovelace card only up to 4 cameras maximum? #774

kingp0dd opened this issue Nov 16, 2024 · 9 comments
Labels
question Further information is requested

Comments

@kingp0dd
Copy link

kingp0dd commented Nov 16, 2024

I am casting a dashboard to chromecast through:

action: cast.show_lovelace_view
data:
  entity_id: media_player.chromecast
  dashboard_path: dashboard-y
  view_path: camtest

At first, it shows all 12 camera thumbnails, then it will refresh the page after 2 seconds, and then only 4 camera streams will be left playing. The rest of the cards show the following error:

"Failed to start WebRTC stream..."

screenshot:

image

EDIT:

i found this in wiki:

https://github.com/AlexxIT/WebRTC/wiki/Cast-or-share-camera-stream

Up to 4 cameras fit on a regular lovelace view. If you switch the lovelace view to panel mode, one camera will be displayed in full screen.

Is it actually limited to 4 cameras? i was able to fit more than 4 by setting Visibility and row settings of my card. Another note, the same dashboard view works fine on PC and Android browser

@AlexxIT AlexxIT added the question Further information is requested label Nov 16, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Nov 16, 2024

Show config for all your cameras. rtsp DESCRIBE it's error from FFmpeg. Not related to WebUI.

@kingp0dd
Copy link
Author

kingp0dd commented Nov 16, 2024

What's weird is the cards are streaming just fine when viewed on a browser or android app. The errors are only showing when casting the dashboard to my Chromecast TV using the cast lovelace action

type: grid
cards:
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_2
    grid_options:
      columns: 6
      rows: auto
    tap_action:
      action: none
    hold_action:
      action: none
    aspect_ratio: "16:9"
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.reolink_doorbell_fluent
    aspect_ratio: "16:9"
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_9
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_4
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_12
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_6
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_10
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_8
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_7
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_5
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_11
    grid_options:
      columns: 6
      rows: auto
  - camera_view: live
    type: picture-glance
    entities: []
    camera_image: camera.10_10_20_2_3
    grid_options:
      columns: 6
      rows: auto
column_span: 10

@AlexxIT
Copy link
Owner

AlexxIT commented Nov 17, 2024

You show the default picture-glance cards. They're not relevant to this project. This project is about a custom card.

@kingp0dd
Copy link
Author

May i know what type of card i should use? I followed the instructions for casting a dashboard from here

https://github.com/AlexxIT/WebRTC/wiki/Cast-or-share-camera-stream

@kingp0dd
Copy link
Author

kingp0dd commented Nov 17, 2024 via email

@kingp0dd
Copy link
Author

Now that go2rtc is enabled by HASS by default, does installing this from HACS not install go2rtc anymore?

@AlexxIT
Copy link
Owner

AlexxIT commented Nov 17, 2024

The error in your screenshot is definitely from go2rtc. By the way, this is a completely different project of mine and does not involve this repository. This is an error from FFmpeg. FFmpeg is used for audio conversion.
I don't understand how this error could have gotten into your screenshots at all.

@kingp0dd
Copy link
Author

kingp0dd commented Nov 17, 2024 via email

@kingp0dd
Copy link
Author

kingp0dd commented Nov 17, 2024 via email

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

2 participants