Stream configuration

Hello very bright people:
I am trying to connect to a video camera I have set up. It is on the same subnet as HA and I am able to get access to it with Internet Explorer using it’s IP address.
I have added “stream:” to my configuration.yaml
I have run

sudo apt-get install -y python-dev pkg-config libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libavresample-dev libavfilter-dev

However at the end of the above installation I get:

Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf libmp3lame0 armhf 3.100-2
  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libpango-1.0-0 armhf 1.42.4-6
  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
Err:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf libpangoft2-1.0-0 armhf 1.42.4-6
  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
Err:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf libpangocairo-1.0-0 armhf 1.42.4-6
  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
Err:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf libvpx5 armhf 1.7.0-3
  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
Err:6 http://raspbian.raspberrypi.org/raspbian buster/main armhf libzmq5 armhf 4.3.1-4
  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
Err:7 http://raspbian.raspberrypi.org/raspbian buster/main armhf libpulse0 armhf 12.2-4
  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/l/lame/libmp3lame0_3.100-2_armhf.deb  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/pango1.0/libpango-1.0-0_1.42.4-6_armhf.deb  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/pango1.0/libpangoft2-1.0-0_1.42.4-6_armhf.deb  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/pango1.0/libpangocairo-1.0-0_1.42.4-6_armhf.deb  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/libv/libvpx/libvpx5_1.7.0-3_armhf.deb  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/z/zeromq3/libzmq5_4.3.1-4_armhf.deb  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/pulseaudio/libpulse0_12.2-4_armhf.deb  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I have run “sudo apt-get update” but this did not make the above error go away.
I have run “sudo apt-get --fix-missing” and had the following:

pi@hassbian1:~ $ sudo apt-get update --fix-missing
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Ign:3 https://gitlab.com/hassbian/repository/raw/master stretch InRelease
Get:4 https://gitlab.com/hassbian/repository/raw/master stretch Release [3,111 B]
Ign:5 https://gitlab.com/hassbian/repository/raw/master stretch Release.gpg
Reading package lists... Done
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. I have had a look at "info apt-secure" and I am not sure what it all means.

When I load HA I get the following:

-- Logs begin at Sun 2019-12-08 20:18:54 GMT. --
Dec 08 20:19:40 hassbian1 hass[524]:     Could not find libavdevice with pkg-config.
Dec 08 20:19:40 hassbian1 hass[524]:     Could not find libavutil with pkg-config.
Dec 08 20:19:40 hassbian1 hass[524]:     Could not find libavfilter with pkg-config.
Dec 08 20:19:40 hassbian1 hass[524]:     Could not find libswscale with pkg-config.
Dec 08 20:19:40 hassbian1 hass[524]:     Could not find libswresample with pkg-config.
Dec 08 20:19:40 hassbian1 hass[524]:     ----------------------------------------
Dec 08 20:19:40 hassbian1 hass[524]: ERROR: Command errored out with exit status 1: /srv/homeassistant/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_ze4rezm/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_ze4rezm/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-w8qivpej/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.7/av Check the logs for full command output.
Dec 08 20:19:40 hassbian1 hass[524]: 2019-12-08 20:19:40 ERROR (MainThread) [homeassistant.setup] Setup failed for stream: Requirements for stream not found: ['av==6.1.2'].

All advice gratefully received!

can you share your config for the camera?
Also can you share how you connect to the camera in Internet Explorer?

I’m very tired so double check this advice before you follow it.

If I’m reading the apt error correctly through sleepy eyelids, you’re running old debian/raspian and haven’t upgraded to buster.

If that’s the case then you need to do an apt-get update, then an apt-get dist-upgrade, then make sure your sources lists all point to buster, and probably some other stuff that’s raspberry pi specific.

apt-get dist-upgrade doesn’t actually upgrade the distro to a new version. It upgrades packages in the system, but won’t, for instance, upgrade your distro from Stretch to Buster.

Yup, hence why there were more words after that command in my post. I decided not to go any further because I’d need to Google the rest and figured the OP could just take over the task :slightly_smiling_face:

1 Like

I read those words, but didn’t read them in the intended manner. LOL. Sorry about that.

Carry on, nothing to see here. :stuck_out_tongue:

1 Like

Thank you @anon43302295 and @flamingm0e for your advice. I don’t understand what Stretch and Buster are - but is this connected with having to move to Hassio from Hasbian? If so, I will get on and make the transition.

UPDATE: I see that Stretch and Buster are versions of Raspbian - I will get this done.

1 Like