Forums » Tutorial and setups »
Can anyone explain why so many disable ffmpeg-static and various options?
Added by D M almost 2 years ago
I didn't disable or enable any options when building tvheadend. I used ./Autobuild.sh, and that's it. I notice most people disable FFmpeg, HDHomeRun, and so on. Can anyone explain the significance of disabling these options? Is there a reason I should disable FFmpeg?
Replies (5)
RE: Can anyone explain why so many disable ffmpeg-static and various options? - Added by Dave Pickles almost 2 years ago
If ffmpeg_static is enabled, the build procedure will download and compile an old version of ffmpeg (v4.4.1, latest is 5.1.2). I believe this was necessary at one time because newer ffmpeg versions were incompatible with Tvheadend.
Without ffmpeg_static, Tvheadend by default will look for libav (which is provided by the ffmpeg package installed from your distribution). If that is not installed then transcoding using ffmpeg will not be available.
Although some folks (including me!) use '--disable-ffmpeg' when building Tvheadend, that option is not in the configure script; the correct one is '--disable-libav'.
Turning off the various other options is mainly about housekeeping, reducing the build time and size of the binary.
RE: Can anyone explain why so many disable ffmpeg-static and various options? - Added by Jonas Lang almost 2 years ago
It’s purely a matter of choice. I don’t need HD Homerun for example so I disable it. No unnecessary clutter. Ffmpeg static may include libraries that the user doesn’t require so they are free to build whatever package they choose. Other options in the build process may cause issues for certain users so again they are free to disable them. Using the following build method appears to give you the most freedom of all as you are compiling manually
cd /tmp
mkdir -p makepkg
cd makepkg
git clone https://github.com/tvheadend/tvheadend.git
cd tvheadend
echo "LANGUAGES_ALL = en_GB" > Makefile.common
./configure \
--prefix=/usr \
--enable-ffmpeg_static \
--disable-ffmpeg
make -j3
make install
RE: Can anyone explain why so many disable ffmpeg-static and various options? - Added by Dave Pickles almost 2 years ago
Apologies. Tvheadend is not compatible with ffmpeg v5 - see https://github.com/tvheadend/tvheadend/pull/1460. Fortunately most distributions (including Debian and Ubuntu but not Arch) are still including v4.
RE: Can anyone explain why so many disable ffmpeg-static and various options? - Added by D M almost 2 years ago
Jonas Lang wrote:
It’s purely a matter of choice. I don’t need HD Homerun for example so I disable it. No unnecessary clutter. Ffmpeg static may include libraries that the user doesn’t require so they are free to build whatever package they choose. Other options in the build process may cause issues for certain users so again they are free to disable them. Using the following build method appears to give you the most freedom of all as you are compiling manually
[...]
Thanks for the update. I decided to stick with the following. DIsabling ffmpeg doesn't work for me. Is there a way to build just for a specific language?
BUILD_CONFIGURE_EXTRA="--disable-dvbscan --disable-hdhomerun_client --disable-hdhomerun_static --disable-linuxdvb --disable-satip_server --disable-satip_client" ./Autobuild.sh -t bullseye-amd64
RE: Can anyone explain why so many disable ffmpeg-static and various options? - Added by Jonas Lang almost 2 years ago
Are you talking about the web UI. Something like this
webui LANGUAGES="bg cs da de en_US en_GB es et fa fi fr he hr hu it lv nl pl pt ru sv uk"