mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-02 22:29:25 +00:00
Build FFmpeg with v4l2 support for Linux
So that --v4l2-sink works with Linux static builds.
This commit is contained in:
parent
54e1f8e060
commit
3d478d7d5b
2 changed files with 11 additions and 3 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -77,7 +77,8 @@ jobs:
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y meson ninja-build nasm ffmpeg libsdl2-2.0-0 \
|
sudo apt install -y meson ninja-build nasm ffmpeg libsdl2-2.0-0 \
|
||||||
libsdl2-dev libavcodec-dev libavdevice-dev libavformat-dev \
|
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
|
- name: Test
|
||||||
run: release/test_client.sh
|
run: release/test_client.sh
|
||||||
|
@ -93,7 +94,8 @@ jobs:
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y meson ninja-build nasm ffmpeg libsdl2-2.0-0 \
|
sudo apt install -y meson ninja-build nasm ffmpeg libsdl2-2.0-0 \
|
||||||
libsdl2-dev libavcodec-dev libavdevice-dev libavformat-dev \
|
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
|
- name: Build linux
|
||||||
run: release/build_linux.sh
|
run: release/build_linux.sh
|
||||||
|
|
|
@ -81,8 +81,14 @@ else
|
||||||
--enable-muxer=wav
|
--enable-muxer=wav
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ "$HOST" != linux ]]
|
if [[ "$HOST" == linux ]]
|
||||||
then
|
then
|
||||||
|
conf+=(
|
||||||
|
--enable-libv4l2
|
||||||
|
--enable-outdev=v4l2
|
||||||
|
--enable-encoder=rawvideo
|
||||||
|
)
|
||||||
|
else
|
||||||
# libavdevice is only used for V4L2 on Linux
|
# libavdevice is only used for V4L2 on Linux
|
||||||
conf+=(
|
conf+=(
|
||||||
--disable-avdevice
|
--disable-avdevice
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue