How do I build ffmpeg-full with support of aes encription ans also with vaapi or vdpau instructions?

I have IP-Camera and it has an option of AES encription and I found out that to recieve an encripted data stream from IP Camera ffmpeg need to be compiled with --enable-aesenc flag and also if I want to have hardware support for HEVC and H.264 decoding from my IP Camera I need not only CPU or GPU with such abilities but also to use flags

--enable-vaapi (Incase I have Intel GPU)

or

--enable-vdpau (Incase I have Nvidia GPU)

during ffmpeg building

But I see no such options in make menuconfig menu. Am I correct in assuming that I need to edit ffmpeg-full Makefile in this case?

And if yes I believe building of such setup would require some additional libraries? Will they be downloaded automatically or I must take of it in advance and download it from somewhere?

Thank you!

UPD: It seems I have found lines which I need to edit to enable vaapi or vdpau

Here is lines of code in Makefile

FFMPEG_CONFIGURE:= \
	CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC) -Wno-error=incompatible-pointer-types" \
	LDFLAGS="$(TARGET_LDFLAGS)" \
	./configure \
	--enable-cross-compile \
	--cross-prefix="$(TARGET_CROSS)" \
	--arch="$(ARCH)" \
	$(if $(REAL_CPU_TYPE),--cpu=$(REAL_CPU_TYPE),) \
	--target-os=linux \
	--prefix="/usr" \
	--pkg-config="pkg-config" \
	--enable-shared \
	--enable-static \
	--enable-pthreads \
	--enable-zlib \
	--disable-doc \
	--disable-debug \
	\
	--disable-lzma \
	--disable-vaapi \
	--disable-vdpau \
	--disable-outdevs

It seems that I only need to change --disable-vaapi for --enable-vaapi, do I?

You do not have any vaapi vdpau xv video card driver in OpenWrt. You can provide API headers and a dead end api library but it will never serve any purpose.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.