目标
我正在努力建立:
支持swscale的x264静态库(.lib)。我想在Visual项目中使用这个库,其中24位RGB位图图像是:
1. Converted from RGB to YUV2
2. The converted image is sent to the x264 encoder
3. and the output of the encoder is streamed to a remote IP-endpoint via UDP.
支持swscale的x264可执行文件(.exe)。我想使用可执行文件达到上述相同的目的。在另一个Visual项目中,我将
尝试使用支持H263和H264代码的build H323Plus(最新版本)。 从config.log发现错误: /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /tmp/ccLlS6ND.o: in function `main':
conftest.c:(.text.startup+0x7): undefined reference to `h263p_encoder'
collect2: error: ld returned 1 exit status 似乎在avcodec
我是交叉编译的新手,刚刚开始在我的linux机器(amd64)上用ARMv5 (linux kernel 2.6.31.8)为主机(NAS)交叉编译包。我安装了crosstool ng,并用它创建了用于ARM编译的工具链。根据网上的一些教程,我成功地编写了x264包。但是现在,当我尝试运行它时,我得到了以下错误消息
./x264: /lib/libm.so.6: version 'GLIBC_2.15' not found (required by ./x264)
好了,现在我知道我需要libm库了,但是它是什么,以及如何用它编译x264?
我按照下面的说明安装了gstreamer0.10和所有模块(基本的、好的、坏的、丑陋的、ffmpeg的)(通过单击prev/next浏览):
一切似乎都运行得很好,但是当我想要执行我的管道时,我得到了这个错误:
glib.GError: no element "x264enc"
显然,该模块没有安装:
gst-inspect x264enc
No such element or plugin 'x264enc'
之后,我通过执行以下命令安装了编解码器:
sudo apt-get install x264
这也不起作用。所以我手动安装了最新的版本:
在成功安装x2
我目前正在Laravel项目中使用Laravel FFMPEG,并运行以下内容,它在https://github.com/protonemedia/laravel-ffmpeg上运行得很好 下面是一个运行正常的代码示例: $lowBitrate = (new X264)->setKiloBitrate(250);
$midBitrate = (new X264)->setKiloBitrate(500);
$highBitrate = (new X264)->setKiloBitrate(1000);