Skip to content

Commit

Permalink
Build FFmpeg with v4l2 support for Linux
Browse files Browse the repository at this point in the history
So that --v4l2-sink works with Linux static builds.
  • Loading branch information
rom1v committed Nov 24, 2024
1 parent 54e1f8e commit 376f0d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/deps/ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ else
--enable-muxer=wav
)

if [[ "$HOST" != linux ]]
if [[ "$HOST" == linux ]]
then
conf+=(
--enable-libv4l2
)
else
# libavdevice is only used for V4L2 on Linux
conf+=(
--disable-avdevice
Expand Down

0 comments on commit 376f0d7

Please sign in to comment.