簡體   English   中英

gstreamer音樂可視化錯誤

[英]music visualization error with gstreamer

嗨,我正在嘗試使用以下命令在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 }

但是然后它給出了folloiwng鏈接錯誤:

** (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

誰能說出什么錯了? 謝謝

我無法給您確切的答案,因為我沒有安裝Windows。

要進行調試,請使用第一個管道(在Linux中工作)。 將參數-v與gst-launch一起使用,並將元素標識放在autovideosink之前。 這將打印通過元素標識傳遞的緩沖區信息,尋找任何奇怪的東西。

您也可以嘗試使用directdrawsink代替autovideosink。 我要做的另一項測試是使用audiotestsrc生成音頻。

請記住,如果找到錯誤,則可以在gnome bugzilla中打開錯誤報告,以便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`

否則您可能需要嘗試在T形的兩個水槽末端嘗試

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

我還觀察到,如果將autovideosink替換為xvimagesinkximagesink則似乎可以解決時間戳問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM