Build FFmpeg with v4l2 support for Linux

So that --v4l2-sink works with Linux static builds.
This commit is contained in:
Romain Vimont 2024-11-24 17:01:37 +01:00
parent 54e1f8e060
commit 3d478d7d5b
2 changed files with 11 additions and 3 deletions

View file

@ -77,7 +77,8 @@ jobs:
sudo apt update
sudo apt install -y meson ninja-build nasm ffmpeg libsdl2-2.0-0 \
libsdl2-dev libavcodec-dev libavdevice-dev libavformat-dev \
libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev \
libv4l-dev
- name: Test
run: release/test_client.sh
@ -93,7 +94,8 @@ jobs:
sudo apt update
sudo apt install -y meson ninja-build nasm ffmpeg libsdl2-2.0-0 \
libsdl2-dev libavcodec-dev libavdevice-dev libavformat-dev \
libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev \
libv4l-dev
- name: Build linux
run: release/build_linux.sh

View file

@ -81,8 +81,14 @@ else
--enable-muxer=wav
)
if [[ "$HOST" != linux ]]
if [[ "$HOST" == linux ]]
then
conf+=(
--enable-libv4l2
--enable-outdev=v4l2
--enable-encoder=rawvideo
)
else
# libavdevice is only used for V4L2 on Linux
conf+=(
--disable-avdevice