Stream integration error on Fedora 41 core install

I was running HA core on Fedora and started getting an error with the stream integration after upgrading to 41:

209 2024-11-06 14:45:20.839 ERROR (MainThread) [homeassistant.setup] Error during setup of component stream
210 Traceback (most recent call last):
211   File "/srv/homeassistant/lib64/python3.12/site-packages/homeassistant/setup.py", line 416, in _async_setup_component
212     result = await task
213              ^^^^^^^^^^
214   File "/srv/homeassistant/lib64/python3.12/site-packages/homeassistant/components/stream/__init__.py", line 226, in async_setup
215     await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
216   File "/usr/lib64/python3.12/concurrent/futures/thread.py", line 58, in run
217     result = self.fn(*self.args, **self.kwargs)
218              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
219   File "/srv/homeassistant/lib64/python3.12/site-packages/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging
220     import av  # pylint: disable=import-outside-toplevel
221     ^^^^^^^^^
222   File "/srv/homeassistant/lib64/python3.12/site-packages/av/__init__.py", line 20, in <module>
223     from av._core import time_base, library_versions
224 ImportError: libavformat.so.60: cannot open shared object file: No such file or directory

Looks like it is due to Fedora 41 having a newer version of ffmpeg and the associated libraries. I tried making symlinks from the old lib paths to the new ones hoping they would be compatible but that does not seem to be the case. Does anyone know if it is possible to have multiple versions of ffmpeg libs installed on the same machine? Do I just need to just stop living in the past and run HA on docker?

In case anyone else runs into this issue I was able to solve it by just uninstalling ‘av’

pip uninstall av

then reinstalling it with

pip install av --no-binary av