pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/ffmpeg4 ffmpeg4: add pulseaudio option to e...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b210fdd295e8
branches:  trunk
changeset: 316007:b210fdd295e8
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Sun Dec 02 17:11:16 2018 +0000

description:
ffmpeg4: add pulseaudio option to enable libpulse support.

With this option and xcb option (for x11grab) I can capture X11 applications
that use pulseaudio by the following ffmpeg4 command options:
% ffmpeg4 -y -f x11grab -video_size 800x600 -r 24 -i :0.0+0,0 \
  -f pulse -i oss_output.audio.monitor -pix_fmt yuv420p capture.mp4

diffstat:

 multimedia/ffmpeg4/options.mk |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 8ad1761cabb0 -r b210fdd295e8 multimedia/ffmpeg4/options.mk
--- a/multimedia/ffmpeg4/options.mk     Sun Dec 02 16:41:57 2018 +0000
+++ b/multimedia/ffmpeg4/options.mk     Sun Dec 02 17:11:16 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.8 2018/11/07 13:10:01 ryoon Exp $
+# $NetBSD: options.mk,v 1.9 2018/12/02 17:11:16 tsutsui Exp $
 
 # Global and legacy options
 
@@ -7,7 +7,7 @@
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.ffmpeg4
 PKG_SUPPORTED_OPTIONS= ass av1 bluray doc fdk-aac fontconfig freetype \
-                       gnutls lame libvpx opencore-amr opus rpi \
+                       gnutls lame libvpx opencore-amr opus pulseaudio rpi \
                        rtmp tesseract theora vorbis x11 x264 x265 xcb xvid
 PKG_SUGGESTED_OPTIONS= lame ass av1 bluray freetype fontconfig libvpx \
                        openssl theora vorbis x11 x264 xvid
@@ -116,6 +116,14 @@
 CONFIGURE_ARGS+=       --disable-openssl
 .endif
 
+# pulseaudio option
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+CONFIGURE_ARGS+=       --enable-libpulse
+.include "../../audio/pulseaudio/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-libpulse
+.endif
+
 # RTMP support via librtmp
 .if !empty(PKG_OPTIONS:Mrtmp)
 CONFIGURE_ARGS+=       --enable-librtmp



Home | Main Index | Thread Index | Old Index