Page MenuHomeSolus

Compile ffmpeg with libdrm enabled
Closed, ResolvedPublic

Event Timeline

DataDrake triaged this task as Needs More Info priority.Jan 14 2019, 2:07 AM
DataDrake added a subscriber: DataDrake.

That tells me next to nothing about why this is needed.

Adding this enables hardware acceleration when screencapturing

JoshStrobl closed this task as Invalid.Mar 28 2019, 12:53 PM
JoshStrobl added a subscriber: JoshStrobl.

We've been compiling it with libdrm support since at least 2016 when we started passing the mesalib-devel pkgconfig in, if not earlier. Additionally, our build log indicates such support is being compiled in.

Additionally, our build log indicates such support is being compiled in.

I'm not sure where it indicates that it's compiled with libdrm...(it isn't). Having the library installed doesn't enable it as it's set to off by default.

Source:
  --enable-libdrm          enable DRM code (Linux) [no]

Adding it to the configure line:

--- before      2019-03-29 09:33:49.157144860 +1100
+++ enable-libdrm       2019-03-29 09:27:55.175265192 +1100
@@ -1,4 +1,4 @@
-+ ./configure --prefix=/usr --libdir=/usr/lib64 --disable-debug --disable-stripping --enable-shared --disable-static --enable-avisynth --enable-avresample --enable-gcrypt --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libcaca --enable-libcdio --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libpulse --enable-libsnappy --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-nonfree --enable-nvdec --enable-nvenc --enable-openal --enable-opengl --enable-openssl --enable-sdl2 --enable-version3
++ ./configure --prefix=/usr --libdir=/usr/lib64 --disable-debug --disable-stripping --enable-shared --disable-static --enable-avisynth --enable-avresample --enable-gcrypt --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libcaca --enable-libcdio --enable-libdrm --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libpulse --enable-libsnappy --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-nonfree --enable-nvdec --enable-nvenc --enable-openal --enable-opengl --enable-openssl --enable-sdl2 --enable-version3
 Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/^\s+@([[:alnum:]][[:alnum:]\-]*)({ <-- HERE })?\s*/ at /usr/share/texinfo/Texinfo/Parser.pm line 5599.
 Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/^\s+@([[:alnum:]][[:alnum:]\-]*)({ <-- HERE })?\s*(\@(c|comment)((\@|\s+).*)?)?/ at /usr/share/texinfo/Texinfo/Parser.pm line 5603.
 install prefix            /usr
@@ -44,20 +44,20 @@
 makeinfo supports HTML    yes
 
 External libraries:
-alsa                       libmp3lame                 libxcb
-avisynth                   libopus                    libxcb_shape
-bzlib                      libpulse                   libxcb_shm
-gcrypt                     libsnappy                  libxcb_xfixes
-iconv                      libspeex                   libxvid
-libaom                     libssh                     libzimg
-libass                     libtheora                  lzma
-libbluray                  libtwolame                 openal
-libcaca                    libv4l2                    opengl
-libcdio                    libvorbis                  openssl
+alsa                       libfribidi                 libx265
+avisynth                   libmp3lame                 libxcb
+bzlib                      libopus                    libxcb_shape
+gcrypt                     libpulse                   libxcb_shm
+iconv                      libsnappy                  libxcb_xfixes
+libaom                     libspeex                   libxvid
+libass                     libssh                     libzimg
+libbluray                  libtheora                  lzma
+libcaca                    libtwolame                 openal
+libcdio                    libv4l2                    opengl
+libdrm                     libvorbis                  openssl
 libfdk_aac                 libvpx                     sdl2
 libfontconfig              libwebp                    xlib
 libfreetype                libx264                    zlib
-libfribidi                 libx265
 
 External libraries providing hardware acceleration:
 cuda                       nvdec                      vaapi
@@ -627,7 +627,8 @@
 Enabled indevs:
 alsa                       libcdio                    pulse
 fbdev                      openal                     v4l2
-lavfi                      oss                        xcbgrab
+kmsgrab                    oss                        xcbgrab
+lavfi
 
 Enabled outdevs:
 alsa                       opengl                     sdl2
JoshStrobl reopened this task as Open.EditedMar 28 2019, 11:48 PM
JoshStrobl raised the priority of this task from Needs More Info to Low.
JoshStrobl edited projects, added Software; removed Lacks Project.

@sunnyflunk You're capable of re-opening tasks too you know.

JoshStrobl moved this task from Backlog to Improvement on the Software board.Mar 28 2019, 11:48 PM
livingsilver94 added a subscriber: livingsilver94.

Help wanted to test it. In particular I need a command to add to the test plan.