Windows上的gstreamer uri格式 [英] gstreamer uri format on windows

查看:391
本文介绍了Windows上的gstreamer uri格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用gstreamer,mp3播放媒体文件,但我得到的uri格式错误,并且找不到该文件.

I am trying to play media files with gstreamer ,mp3 currently but I am getting the uri format wrong and it can't find the file.

文档中的原始命令

gst-launch-1.0 playbin uri=file:///home/joe/my-random-media-file.mpeg

我正在尝试使其在Windows上运行并编写

I am trying to make it work on windows and writing

gst-launch-1.0 playbin uri=file://C:\gstreamer\1.0\x86\bin\pima.mp3

这是我得到的输出

将管道设置为PAUSED ... 错误:管道不想暂停. 错误:来自元素/GstURIDecodeBin:uridecodebin0/GstGioSrc:source:无法打开资源进行读取. 其他调试信息: gstgiosrc.c(332):gst_gio_src_get_stream():/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstGioSrc:source: 无法打开位置文件:///C:/gstreamer/1.0/x86/bin/file:/pima.avi,以供读取:打开文件时出错:参数无效 将管道设置为NULL ... 正在释放管道...

Setting pipeline to PAUSED ... ERROR: Pipeline doesn't want to pause. ERROR: from element /GstURIDecodeBin:uridecodebin0/GstGioSrc:source: Could not open resource for reading. Additional debug info: gstgiosrc.c(332): gst_gio_src_get_stream (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstGioSrc:source: Could not open location file:///C:/gstreamer/1.0/x86/bin/file:/pima.avi for reading: Error opening file: Invalid argument Setting pipeline to NULL ... Freeing pipeline ...

有人可以帮我解决这个问题吗?

Can anybody help on how I can get around this ?

我还尝试使用

gst-launch filesrc location=hello.mp3 ! mad ! audioresample ! osssink

,但发现未安装osssink.如何安装它或任何其他可以播放mp3文件的接收器.关于如何确定自己的gstElement来构建管道的建议非常有用.例如,如何播放AVI视频.

but found out that osssink was not installed .How can I get it installed or any other sink that can play mp3 files. A piece of advice on how I can figure out my own gstElements to build pipelines would be very helpful .For example how can I go about playing avi videos.

谢谢您的时间.

推荐答案

以下语法对我有用:

gst-launch-1.0 playbin uri=file:///C:/gstreamer/1.0/x86/bin/pima.mp3

这篇关于Windows上的gstreamer uri格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆