ffmpeg x11grab compilation

今天编译ffmpeg时遇到个错误是Xfixes not found,于是google了一下找到下面这个帖子,解决了问题。


For the x11grab input device to be compiled you need to run ./configure with –enable-x11grab.

When you’ve run ./configure x11grab should be listed in the indev section like this.

   
   
  • Enabled indevs:
  • dv1394            lavfi            v4l2
  • fbdev            oss            x11_grab_device

If x11grab was not listed, then it is most likely Xfixes.h and/or XShm.h files are not in your compiler include path. These are validated in the ./configure script, and x11grab is disabled if they are not available. This is the check inside the configure script:

enabled x11grab                         &&
check_header X11/Xlib.h                 &&
check_header X11/extensions/XShm.h      &&
check_header X11/extensions/Xfixes.h    &&
check_func XOpenDisplay -lX11           &&
check_func XShmCreateImage -lX11 -lXext &&
check_func XFixesGetCursorImage -lX11 -lXext -lXfixes

On ubuntu 11.10 the libraries are available, but the headers are not installed. XShm.h is in the libxext-dev package and Xfixes.h is in libxfixes-dev

 
 
  • sudo apt-get install libxfixes-dev
  • sudo apt-get install libxext-dev

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
FFmpeg是一个开源的多媒体框架,可以用于录制、转码和处理音视频文件。它可以在多个平台上运行,包括Linux、Windows和macOS。在引用中的指南中,提供了在Linux上安装FFmpeg的步骤。 引用中提到,有一个使用Gambas2编写的应用程序,它使用FFmpeg来录制视频。该应用程序使用xwininfo来获取窗口信息,并使用FFmpeg进行屏幕录制。虽然该应用程序可能具有一些功能不足和稳定性问题。 引用中提到,对于基于Intel CPU X86架构的平台,可以使用FFmpeg VAAPI的硬解方案。FFmpeg用于处理各种格式的视频解码,而VAAPI则提供对硬件加速视频处理的访问。 综上所述,FFmpeg是一个功能强大的多媒体框架,可以用于处理音视频文件,录制屏幕以及其他多媒体操作。它可以在多个平台上运行,并且有许多不同的用途和用法,包括使用Gambas2编写的应用程序和硬解方案。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [基于FFmpeg+VAAPI的硬件加速渲染技术](https://blog.csdn.net/irainsa/article/details/129442085)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [Eye of the cat:ffmpeg x11grab的前端,用于截屏-开源](https://download.csdn.net/download/weixin_42168555/18540589)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值