git clone https://code.videolan.org/videolan/x264.git cd x264 //如果git指令下载速度特别慢的话,可以在下边链接里下载压缩包 //https://www.videolan.org/developers/x264.html ./configure --enable-shared --enable-static--prefix=/usr/local sudo make sudo make install
./configure --enable-libx264 --enable-libx265 --enable-shared --enable-gpl --prefix=/usr/local sudo make sudo make install
安装完后运行ldd which ffmpeg 查看ffmpeg的库是否可以找到
这时一般会打印为:
linux-gate.so.1 => (0x00f90000) libavdevice.so.52 => not found libavfilter.so.1 => not found libavformat.so.52 => not found libavcodec.so.52 => not found libpostproc.so.51 => not found libswscale.so.0 => not found libavutil.so.50 => not found libpthread.so.0 => /lib/libpthread.so.0 (0x00821000) libm.so.6 => /lib/libm.so.6 (0x007da000) libc.so.6 => /lib/libc.so.6 (0x0067b000) /lib/ld-linux.so.2 (0x0065c000)
In file included from /usr/local/include/libavutil/avutil.h:296:0, from /usr/local/include/libavutil/samplefmt.h:24, from /usr/local/include/libavcodec/avcodec.h:31, from video2mp4.cpp:5: /usr/local/include/libavutil/common.h:31:2: error: #error missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS In file included from /usr/local/include/libavutil/avutil.h:296:0, from /usr/local/include/libavutil/samplefmt.h:24, from /usr/local/include/libavcodec/avcodec.h:31, from video2mp4.cpp:5: /usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’: /usr/local/include/libavutil/common.h:209:47: error: ‘UINT64_C’ was not declared in this scope
在本地环境中调试远程服务器上的网站代码执行问题,可以通过以下步骤实现:首先,在本地安装 Visual Studio 并配置远程调试工具。接着,确保服务器和本地机器之间的网络连接畅通,并正确设置防火墙规则以允许调试流量。最后,使用 Visual Studio 的远程调试功能连接到服务器,进行代码调试。这种方法不仅提高了开发效率,还减少了在服务器上直接操作的风险。 ...
[详细]