Python中文
首页
教程
问答
标签
搜索
登录
注册
windows上的gstreamer playbin设置uri
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我正在尝试使用此站点上的CLI示例播放一些音频文件:</p> <p><a href="http://pygstdocs.berlios.de/pygst-tutorial/playbin.html" rel="nofollow noreferrer">http://pygstdocs.berlios.de/pygst-tutorial/playbin.html</a> <a href="http://pygstdocs.berlios.de/pygst-tutorial/playbin.html" rel="nofollow noreferrer">http://pygstdocs.berlios.de/pygst-tutorial/playbin.html</a></p> <p>我在windows上,它在读取文件时出错。我指定了 以下路径:</p> <pre><code>$ python cliplayer.py C:\\voice.mp3 0:00:00.125000000 3788 009DA010 ERROR basesrc gstbasesrc.c:2834:gst_base_src_activate_pull:<source> Failed to start in pull mode Error: Could not open resource for reading. ..\..\..\Source\gst-plugins-base\ext\gio\gstgiosrc.c(324): gst_gio_src_get_stream (): /GstPlayBin2:player/GstURIDecodeBin:uridecodebin0/GstGioSrc:source: Could not open location file:///C:/file:/C:/voice.mp3 for reading: Error opening file: Invalid argument </code></pre> <p>我应该如何指定windows上的文件路径??在</p> <p>另外,在这一行代码中我需要做什么特别的事情吗?在</p> ^{pr2}$ <p>谢谢你!在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>您注意到实际的路径是<code>file:///C:/file:/C:/voice.mp3</code>?在</p> <p>正确的路径应该是:<code>file:///C:/path/to/voice.mp3</code>。在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何找到类似于How'matplotlib.pyplot.gcf()`works?
7 回答
如何找到类字段的定义?
7 回答
如何找到精灵在团队中的位置?
2 回答
如何找到素数,但有错误。我找不到你
5 回答
如何找到素数(Python)
3 回答
如何找到索引i右侧的不同值
3 回答
如何找到索引Numpy数组时将折叠哪些轴?
4 回答
如何找到索引中的值,在列表中增加值?
8 回答
如何找到纬度/经度/高度点之间的三维距离?
1 回答
如何找到线和numpy meshgrid生成的曲面之间的交点?
5 回答
如何找到线段上距任意点最近的点?
9 回答
如何找到组中所有可能的子组
6 回答
如何找到组内值之间的最小差异
6 回答
如何找到经过训练的朴素贝叶斯分类器用于决策的单词?
9 回答
如何找到给selenium webdriver对象的文件夹名?
8 回答
如何找到给出最佳分数的列车测试分割的最佳随机状态值?
3 回答
如何找到给定Python发行版提供的模块?
9 回答
如何找到给定subversion工作副本的根文件夹
2 回答
如何找到给定一维阵列中的所有峰值?
9 回答
如何找到给定列表中的字符串组合,这些字符串加起来就是某个字符串(没有外部库)
6 回答