mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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.
26 lines
727 B
Meson
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')
|