| 将管道元素转储到图像文件中 | # 按照目标运行管道 $ export GST_DEBUG_DUMP_DOT_DIR= $ gst-launch playbin2 uri=file:// ${avi} $ # 移动 .dot文件到主机(scp 等) # 在主机上 dot # dot 命令是 graphviz 包的一部分 |
| 查询 gst-launch 命令中正在使用哪些元素 | GST_DEBUG=GST_ELEMENT_FACTORY:3 gst-launch playbin2 uri=file://`pwd`/ |
| 中断后台运行的 gst-launch 进程 | 杀死-INT $PID # 其中 $PID 是进程 ID |
| 仅使用 SW 编解码器 | # 备份并删除 $ 查找 /usr/lib/gstreamer-0.10 -name "libmfw*" | grep -v 接收器 | xargs tar cvf /libmfw_gst.tar $ find /usr/lib/gstreamer-0.10 -name“libmfw*”| grep -v sink | xargs rm # 运行你的管道。这次使用了 SW 编解码器 $ gst-launch playbin2 uri=file://`pwd`/media_file # 要再次“安装”FSL插件,只需解压文件 $ cd / && tar xvf libmfw_gst.tar && cd -# 然后运行你的管道。这次使用了硬件编解码器 $ gst-launch playbin2 uri=file://`pwd`/media_file |
我已经更新了食谱!谢谢!
Leo
好的,我删除了所有 libmfw_*,除了 libmfw_gst_isink.so 和 libmfw_gst_v4lsink.so,这样就可以了。谢谢。
实际上,您可能需要飞思卡尔视频接收器,因此请不要移动/删除它们。如果有效请告诉我。
Leo
请尝试以下步骤:
rm .gstreamer-0.10/registry.arm.bin # 这样做是为了强制插件重新加载
gst-inspect | grep ff # 检查 ffmpeg 插件是否存在
gst-启动 playbin2 ....
“仅使用 SW 编解码器”的说明对我来说不起作用。我有一块带有 i.MX6Q CPU 和 4.0.0 版本的 Linux SDK 的 SabreSD 板,其中安装了修补的 ffmpeg 插件。这是我的输出:
root@freescale ~$ gst-launch playbin2 uri=file:///root/RecordedTs-coreel-720p5994.ts
将管道设置为暂停状态...
将管道设置为PREROLLING...
警告:来自元素/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0:没有可用于类型“video/mpegts、systemstream=(boolean)true、packetize=(int)188”的解码器。
附加调试信息:
gsturidecodebin.c(867): unknown_type_cb (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0
错误:来自元素/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:您的 GStreamer 安装缺少一个插件。
附加调试信息:
gstdecodebin2.c(3233): gst_decode_bin_expose():/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
未找到合适的插件
错误:管道不想预卷。
将管道设置为 NULL ...
释放管道...
root@freescale ~$ gst-launch playbin2 uri=file:///root/sample_mpeg4.mp4
将管道设置为暂停状态...
将管道设置为PREROLLING...
警告:来自元素/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0:没有可用于类型“audio/mpeg、mpegversion=(int)4、framed=(boolean)true、stream-format=(string)raw、level=(string)2、base-profile=(string)lc、profile=(string)lc、codec_data=(buffer)1290、rate=(int)32000、channels=(int)2”的解码器。
附加调试信息:
gsturidecodebin.c(867): unknown_type_cb (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0
错误:来自元素/GstPlayBin2:playbin20/GstPlaySink:playsink0:autovideosink 元素不起作用。
附加调试信息:
gstplaysink.c(1353):gen_video_chain():/GstPlayBin2:playbin20/GstPlaySink:playsink0
错误:管道不想预卷。
将管道设置为 NULL ...
释放管道...