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

0.81.0b0 FFmpeg Camera Test Fails (Xiaomi Xiaofang) #17684

Closed
mynameisdaniel32 opened this issue Oct 22, 2018 · 6 comments · Fixed by #18131
Closed

0.81.0b0 FFmpeg Camera Test Fails (Xiaomi Xiaofang) #17684

mynameisdaniel32 opened this issue Oct 22, 2018 · 6 comments · Fixed by #18131

Comments

@mynameisdaniel32
Copy link
Contributor

Home Assistant release with the issue:
0.81.0b0

Last working Home Assistant release (if known):
0.80.3

Operating environment (Hass.io/Docker/Windows/etc.):
Linux Debian (venv)

Component/platform:
FFmpeg Camera

Description of problem:
Since updating to 0.81.0b0, one of my FFmpeg cameras fails to start, no changes to the config and my other FFmpeg camera works as it did.

It looks like something is causing a test to fail based on the error log below.

The camera I'm using is a Xiaomi Xiaofang running custom firmware to enable an RTSP stream (which works).

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

ffmpeg:
  ffmpeg_bin: /usr/bin/ffmpeg

camera:
  - platform: ffmpeg
    input: -rtsp_transport tcp -i rtsp://10.10.2.149/unicast
    name: Carport
    extra_arguments: -pred 1 -q:v 2

  - platform: ffmpeg
    input: -rtsp_transport tcp -i rtsp://10.10.3.148:8554/unicast
    name: Front Yard
    extra_arguments: -pred 1 -q:v 2

Traceback (if applicable):

2018-10-22 11:33:34 ERROR (MainThread) [homeassistant.components.ffmpeg] FFmpeg '-rtsp_transport tcp -i rtsp://10.10.2.149/unicast' test fails!

Additional information:

@akinomeroglu
Copy link
Contributor

I am using a Dafang camera with a cfw and I can repeat the problem too.

@keirans
Copy link
Contributor

keirans commented Oct 28, 2018

I have 2 cameras using the above configuration and both are non functional in 0.81.0 on hassio.

No changes on the camera side, and both RTSP feeds are OK via VLC.

@edif30
Copy link
Contributor

edif30 commented Oct 28, 2018

I found that this is due to this change - #17609

As soon as I reverted it, issue went away. I was also getting seg faults due to timeouts of this coroutine.

@bieniu
Copy link
Member

bieniu commented Oct 29, 2018

Same issue with HA 0.81.1.

@edif30
Copy link
Contributor

edif30 commented Oct 29, 2018

@jjlawren you ok with me submitting a PR to revert the await in the coroutine for ffmpeg? Or do you want to?

@jjlawren
Copy link
Contributor

@edif30 please make a PR, I won't be able to until tomorrow. Perhaps I'm not seeing this new behavior as I was testing out changes involving skipping tests in #17769 at the same time. Sorry for causing problems for anyone, it seemed like a trivial change to fix the warning in the original PR description.

@pvizeli any suggestions on a proper fix?

@ghost ghost added the in progress label Nov 2, 2018
@ghost ghost removed the in progress label Nov 3, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants