小编use*_*388的帖子

使用 gstreamer 进行简单的编码和解码管道?

我正在尝试创建一个简单的 gstreamer1-0 管道,它对 h264 网络摄像头提要进行编码和解码,希望尽可能使用最基本的元素。我已经(理论上)安装了所有标准的、好的、坏的和丑陋的 gstreamer 库。我使用“理论上”这个词是因为我没有 root 权限,我必须请求 IT 下载/安装我可能需要的每个库,这很痛苦。

我尝试了以下管道,但没有奏效:

gst-launch-1.0 v4l2src ! autovideoconvert ! x264enc bitrate=256 ! decodebin ! autovideosink 
Run Code Online (Sandbox Code Playgroud)

我得到以下输出:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Missing element: H.264 decoder
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Your GStreamer installation is missing a plug-in.
Additional debug info:
gstdecodebin2.c(3977): gst_decode_bin_expose (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
no suitable plugins found
Execution ended after 0:00:01.795803500
Setting pipeline …
Run Code Online (Sandbox Code Playgroud)

encoder decoder gstreamer h.264

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

decoder ×1

encoder ×1

gstreamer ×1

h.264 ×1