1

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

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

但我收到此错误:“可能存在时间戳问题,或者这台计算机太慢了。”

Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstDshowVideoSink:autovideosink0-actual-sink-dshowvideo: A lot of buffers are being dropped.
Additional debug info:
..\Source\gstreamer\libs\gst\base\gstbasesink.c(2572): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstDshowVideoSink:autovideosink0-actual-sink-dshowvideo:
There may be a timestamping problem, or this computer is too slow.
ERROR: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0

假设这与线程有关,我尝试了以下命令:

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

谁能告诉我出了什么问题?谢谢

4

2 回答 2

1

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

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

您也可以尝试使用 directdrawsink 而不是 autovideosink。我要做的另一个测试是使用 audiotestsrc 生成音频。

请记住,如果您发现错误,您可以在 gnome bugzilla 中打开错误报告,以便 GStreamer 开发人员知道存在问题。甚至您可以自己修复它并发送补丁。

于 2010-02-26T12:31:13.177 回答
0

对于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`

或者您可能必须尝试在 T 恤的两个水槽端,例如

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

我还观察到,如果您替换autovideosinkxvimagesinkximagesink时间戳问题显然似乎已解决。

于 2011-07-26T16:22:26.900 回答