Now that I've been through this process a few times, here are some notes I've collected...
First of all, the Raspberry Pi 5 8GB could not handle the streaming, likely due to the lack of hardware encoder. The CPU was almost fully pegged and the resulting stream would stumble every 10-15 seconds. I bought a Pi 4B with 8GB and that seems to handle the streaming just fine.
Step 1: In the current version of the Raspberry Pi OS (32-bit), /boot/config.txt has moved to /boot/firmware/config.txt.
Step 6: Compiling ffmpeg fork, the compile flags weren't working for me on 32-bot OS, I used this (note the additional extra-cflags):
cd ~ && git clone --depth 1 https://github.com/neckro/FFmpeg.git \
&& cd ~/FFmpeg \
&& ./configure \
--extra-cflags="-I/usr/local/include -march=armv6 -mfpu=vfp -mfloat-abi=hard" \
--extra-ldflags="-L/usr/local/lib" \
--extra-libs="-lpthread -lm -latomic" \
--arch=armel \
--enable-gpl \
--disable-librtmp \
--enable-nonfree \
--target-os=linux \
--enable-pthreads \
--enable-hardcoded-tables \
--disable-doc \
&& make -j$(nproc) \
&& sudo make install
Step 8: When I tried installing the python dependencies via apt and then tried to install Pebble via pip I would get the "externally managed environment error". I found that if I activated the virtual environment and then installed all the python dependencies via pip and the requirements.txt I didn't have any issues.
Step 9: Paramiko was giving me an error similar to this when I tried to run the main.py script:
venv/lib/python3.12/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"cipher": algorithms.TripleDES,
env/lib/python3.12/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"class": algorithms.TripleDES,
venv/lib/python3.12/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"cipher": algorithms.TripleDES,
venv/lib/python3.12/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"class": algorithms.TripleDES,
Looks like it's related to this issue. I uninstalled Paramiko 3.2.0 and installed 3.5.0 and that seems to have fixed it.
Now that I've been through this process a few times, here are some notes I've collected...
First of all, the Raspberry Pi 5 8GB could not handle the streaming, likely due to the lack of hardware encoder. The CPU was almost fully pegged and the resulting stream would stumble every 10-15 seconds. I bought a Pi 4B with 8GB and that seems to handle the streaming just fine.
Step 1: In the current version of the Raspberry Pi OS (32-bit),
/boot/config.txthas moved to/boot/firmware/config.txt.Step 6: Compiling ffmpeg fork, the compile flags weren't working for me on 32-bot OS, I used this (note the additional extra-cflags):
Step 8: When I tried installing the python dependencies via apt and then tried to install Pebble via pip I would get the "externally managed environment error". I found that if I activated the virtual environment and then installed all the python dependencies via pip and the requirements.txt I didn't have any issues.
Step 9: Paramiko was giving me an error similar to this when I tried to run the main.py script:
Looks like it's related to this issue. I uninstalled Paramiko 3.2.0 and installed 3.5.0 and that seems to have fixed it.