twrecked / lovelace-hass-aarlo

Lovelace card for hass-aarlo integration.
75 stars 23 forks source link

Home Assistant crashing when starting live stream #47

Closed burken- closed 4 years ago

burken- commented 4 years ago

I've been using the aarlo-component and the lovelace-card for some time. Still image and archive videos are working just fine but every time I click to start the live stream home assistant crasches and restarts.

Using ffmpeg to capture the stream manually works fine.

The home assistant logs doesn't give much information (what I can tell)

2020-08-19 21:33:47 DEBUG (MainThread) [custom_components.aarlo] not homekit detected 2020-08-19 21:33:47 DEBUG (SyncWorker_0) [pyaarlo] _start_stream2::activities={'user-stream'} 2020-08-19 21:33:47 DEBUG (SyncWorker_0) [pyaarlo] post+response running 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] sending cameras/4N5266SU1E953 to 4N5266SU1E953 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] Vardagsrum BASE got cameras/4N5266SU1E953 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/4N5266SU1E953/activityState=startUserStream 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] Vardagsrum CAMERA got one cameras/4N5266SU1E953 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/4N5266SU1E953/activityState=startUserStream 2020-08-19 21:33:48 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:Vardagsrum:activityState:startUserStream 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] sending cameras/4N5266SU1E953 to 4N5266SU1E953 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] Vardagsrum BASE got cameras/4N5266SU1E953 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/4N5266SU1E953/activityState=startUserStream 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] Vardagsrum CAMERA got one cameras/4N5266SU1E953 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/4N5266SU1E953/activityState=startUserStream 2020-08-19 21:33:48 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:Vardagsrum:activityState:startUserStream 2020-08-19 21:33:48 DEBUG (SyncWorker_0) [pyaarlo] url=rtsps://arlostreaming317-z1-prod.wowza.arlo.com:443/vzmodulelive/... 2020-08-19 21:33:48 INFO (MainThread) [homeassistant.components.stream] Started stream: rtsps://arlostreaming317-z1-prod.wowza.arlo.com:443/vzmodulelive/... 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] sending cameras/4N5266SU1E953 to 4N5266SU1E953 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] Vardagsrum BASE got cameras/4N5266SU1E953 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/4N5266SU1E953/activityState=userStreamActive 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] Vardagsrum CAMERA got one cameras/4N5266SU1E953 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] _event::stream::activities={'user-stream-active', 'user-stream'} 2020-08-19 21:33:48 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/4N5266SU1E953/activityState=userStreamActive 2020-08-19 21:33:48 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:Vardagsrum:activityState:userStreamActive

These are the last log rows before crashing.

Aarlo: v0.7.0-beta.3 Lovelace-hass-aarlo: v0.1.4.1

System: arch | x86_64 dev | false installation_type | Home Assistant Core os_name | Linux os_version | 4.15.0-112-generic python_version | 3.8.5 timezone | Europe/Stockholm version | 0.112.4 virtualenv | true

Any idea how to debug further or any idea what might be wrong?

twrecked commented 4 years ago

What kind of cameras? What browser and OS?

And can you paste in a lovelace card configuration?

I'll double check my setup and make sure it's still working for me.

burken- commented 4 years ago

Cameras:

Home Assistant mainly accessed using latest Chrome browser on Windows 10, windows 8.1 and android

Lovelace configuration:

door: switch.magnet_entredorr
door_bell: switch.ringklocka
entity: camera.aarlo_entredorr
image_click: play
light: light.entrebelysning
name: Entrédörr
show:
  - motion
  - sound
  - snapshot
  - battery_level
  - signal_strength
  - captured_today
  - image_date
top_date: false
top_status: false
top_title: false
type: 'custom:aarlo-glance'
twrecked commented 4 years ago

Can you try direct streaming? See here.

You have all the necessary version of software so just need to modify your configuration.

burken- commented 4 years ago

Direct streaming works fine for all cameras! Thanks for the help and for a great component

twrecked commented 4 years ago

I'm closing this because everything is going.