gstream的音乐可视化错误

2024-10-02 04:18:23 发布

您现在位置:Python中文网/ 问答频道 /正文

嗨,我正在尝试使用以下命令在gstreamer中可视化音乐文件:

gst-launch filesrc location=file.mp3 ! decodebin ! audioconvert ! 
tee name=myT myT. ! queue ! autoaudiosink myT. ! queue ! goom ! 
colorspace ! autovideosink

但是我得到了一个错误:“可能是时间戳问题,或者这台计算机太慢了。”

^{pr2}$

假设线程尝试执行以下命令:

gst-launch filesrc location=file.mp3 ! decodebin ! audioconvert ! tee name=myT 
{ ! queue ! autoaudiosink } { tee. ! queue ! goom ! colorspace ! autovideosink }

但它会给出以下链接错误:

** (gst-launch-0.10:5308): WARNING **: Trying to connect elements that don't share a common ancestor: tee and queue1
0:00:00.125000000  5308   003342F0 ERROR           GST_PIPELINE grammar.tab.c:656:gst_parse_perform_link: could not link tee to queue1
WARNING: erroneous pipeline: could not link tee to queue1

有人能分辨出什么毛病吗?谢谢


Tags: to命令queuelinklocationlaunchmp3file
2条回答

我不能给你一个确切的答案,因为我没有安装windows。在

要调试这个,请使用您的第一个管道(在linux works中)。在gst-launch中使用参数-v,并将元素标识放在autovideosink之前。这将打印通过元素标识的缓冲区信息,寻找任何奇怪的东西。在

你也可以用AutoDirectVideoSink代替AutoDrawSink。我要做的另一个测试是用audiotestsrc生成音频。在

请记住,如果您发现一个bug,您可以在gnomebugzilla中打开一个bug报告,这样GStreamer开发人员就会意识到存在问题。甚至你也可以自己修好,然后发一个补丁。在

对于There may be a timestamping problem, or this computer is too slow.错误请尝试sync=false之类的

`gst-launch filesrc location=file.mp3 ! decodebin ! audioconvert ! tee name=myT myT. ! queue ! autoaudiosink myT. ! queue ! goom ! colorspace ! autovideosink sync=false`

或者你可以试着在球座的两端

^{pr2}$

我还观察到,如果用xvimagesinkximagesink替换{},那么时间戳问题似乎得到了解决。在

相关问题 更多 >

    热门问题