Help with Stream on FreeNAS Jail

Would love to use the stream component but how would I go about installing the packages for it in a FreeNAS jail? https://www.home-assistant.io/components/stream/
FreeNas wants nothing to do with:

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

This is a debian/ubuntu install command. You will need to find similar packages available for FreeBSD, and use pkg install. Also, make sure you are doing this INSIDE the jail and not on FreeNAS.

Research how to install pyav on freenas, it may not be possible though: https://docs.mikeboers.com/pyav/develop/installation.html