pipewire/spa/plugins/videoconvert/meson.build
Wim Taymans 2cbcdbc579 videoconvert: add an ffmpeg based video converter
To activate:

PIPEWIRE_PROPS='{ video.adapt.converter = video.convert.ffmpeg }' build/src/examples/video-play

This makes it possible to start firefox with mjpg capture and then
video-play and it will decode the mjpeg transparently. Works for other
incompatible video formats as well, as long as they can be mmapped.

Ideally this should use something GPU accelerated and this is what the
vulkan converter will do.
2024-09-06 12:27:02 +02:00

26 lines
727 B
Meson

videoconvert_sources = [
'videoadapter.c',
'videoconvert-dummy.c',
'plugin.c'
]
extra_cargs = []
extra_dependencies = []
if avcodec_dep.found() and avutil_dep.found() and swscale_dep.found()
videoconvert_ffmpeg = static_library('videoconvert_fmmpeg',
['videoconvert-ffmpeg.c' ],
dependencies : [ spa_dep, avcodec_dep, avutil_dep, swscale_dep ],
install : false
)
extra_cargs += '-D HAVE_VIDEOCONVERT_FFMPEG'
extra_dependencies += videoconvert_ffmpeg
endif
videoconvertlib = shared_library('spa-videoconvert',
videoconvert_sources,
c_args : extra_cargs,
dependencies : [ spa_dep, mathlib ],
link_with : extra_dependencies,
install : true,
install_dir : spa_plugindir / 'videoconvert')