我应该在Mac上使用什么h264编码器作为gstreamer管道?

时间:2015-09-01 03:42:23

标签: macos gstreamer

在Mac OS X上,据我所知,我已经安装了所有gstreamer插件:

brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-ffmpeg010

我正在尝试使用以下gstreamer管道将一系列照片从延时转换为.mp4:

gst-launch-1.0 -e multifilesrc location="image_%04d.jpg" ! image/jpeg, framerate=12/1 ! decodebin ! video/x-raw, width=1296, height=976 ! progressreport name=progress ! omxh264enc target-bitrate=15000000 control-rate=variable ! video/x-h264, profile=high ! h264parse ! mp4mux ! filesink location=test.mp4

当我运行命令时,我收到错误:

WARNING: erroneous pipeline: no element "omxh264enc"

是否有可用于Mac OS X的h264编码管道可以完成此管道,或者是安装omxh264enc的方法吗?

1 个答案:

答案 0 :(得分:0)

尝试安装gst-libav包并使用其中一个avenc_ *插件。例如。 avenc_mpeg4。它是一种软件编码器,而omxh264代表HW编码器。