I would like to share some additional notes on this for whoever is setting up 1st generation Nest cameras on RPi3
I had to add --enable-openssl so I could get the camera streams to work on Home Assistant Core 2022.3.8
./configure --enable-shared --enable-pic --enable-openssl
Also, I was getting this error message:
pi@raspberrypi:~ $ ffmpeg
/usr/bin/ffmpeg: not found
So I had to type in the following to fix it:
pi@raspberrypi:~ $ hash -d ffmpeg
After that I got a different error message:
pi@raspberrypi:~ $ ffmpeg
ImportError: libavcodec.so.58: cannot open shared object file: No such file or directory
It turns out that ffmpeg could not find the libraries:
pi@raspberrypi:~ $ ldd `which ffmpeg`
linux-vdso.so.1 (0x7eda8000)
/usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f14000)
libavdevice.so.58 => not found
libavfilter.so.7 => not found
libavformat.so.58 => not found
libavcodec.so.58 => not found
libswresample.so.3 => not found
libswscale.so.5 => not found
libavutil.so.56 => not found
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x754c4000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x75498000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x75342000)
libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x75313000)
libbz2.so.1.0 => /lib/arm-linux-gnueabihf/libbz2.so.1.0 (0x752f3000)
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x752cc000)
libssl.so.1.1 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.1 (0x7524d000)
libcrypto.so.1.1 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1 (0x7503b000)
liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0x7500a000)
/lib/ld-linux-armhf.so.3 (0x54b17000)
libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x74fff000)
libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x74fea000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x74fd6000)
libbsd.so.0 => /lib/arm-linux-gnueabihf/libbsd.so.0 (0x74fab000)
I have fixed it by adding following entries in /etc/ld.so.conf
pi@raspberrypi:~ $ sudo vim /etc/ld.so.conf
/usr/local/lib
/usr/lib
Save file and run command:
pi@raspberrypi:~ $ ldconfig
Then you should see something like this:
pi@raspberrypi:~ $ ldd `which ffmpeg`
linux-vdso.so.1 (0x7eda8000)
/usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f14000)
libavdevice.so.58 => /usr/local/lib/libavdevice.so.58 (0x76ee6000)
libavfilter.so.7 => /usr/local/lib/libavfilter.so.7 (0x76c26000)
libavformat.so.58 => /usr/local/lib/libavformat.so.58 (0x769e5000)
libavcodec.so.58 => /usr/local/lib/libavcodec.so.58 (0x7588b000)
libswresample.so.3 => /usr/local/lib/libswresample.so.3 (0x75868000)
libswscale.so.5 => /usr/local/lib/libswscale.so.5 (0x757ec000)
libavutil.so.56 => /usr/local/lib/libavutil.so.56 (0x75533000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x754c4000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x75498000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x75342000)
libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x75313000)
libbz2.so.1.0 => /lib/arm-linux-gnueabihf/libbz2.so.1.0 (0x752f3000)
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x752cc000)
libssl.so.1.1 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.1 (0x7524d000)
libcrypto.so.1.1 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1 (0x7503b000)
liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0x7500a000)
/lib/ld-linux-armhf.so.3 (0x54b17000)
libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x74fff000)
libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x74fea000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x74fd6000)
libbsd.so.0 => /lib/arm-linux-gnueabihf/libbsd.so.0 (0x74fab000)
Restart Home Assistant Core, 1st generation Nest camera stream should now work!
Hopefully someone find this useful because it took me a day or more to figure this out