2016-08-10 166 views
0
gst-launch-1.0 filesrc location=subtitleseng.srt ! subparse ! overlay. filesrc location=video.mp4 ! qtdemux ! queue ! theoradec ! ffmpegcolorspace ! subtitleoverlay name=overlay ! xvimagesink 

Setting pipeline to PAUSED ... 
Pipeline is PREROLLING ... 
WARNING: from element /GstPipeline:pipeline0/GstSubtitleOverlay:overlay: Internal GStreamer error: negotiation problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer. 
Additional debug info: 
gstsubtitleoverlay.c(799): _pad_blocked_cb(): /GstPipeline:pipeline0/GstSubtitleOverlay:overlay: 
Subtitle sink is blocked but we have no subtitle caps 
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: GStreamer encountered a general stream error. 
Additional debug info: 
qtdemux.c(3891): gst_qtdemux_loop(): /GstPipeline:pipeline0/GstQTDemux:qtdemux0: 
streaming stopped, reason not-linked 
ERROR: pipeline doesn't want to preroll. 
Setting pipeline to NULL ... 
Freeing pipeline ... 

我甚至嘗試使用GStreamer的管道玩字幕的視頻(無音頻)是給我的錯誤

gst-launch-1.0 filesrc location=/subtitleseng.srt ! subparse ! input-selector ! sub. filesrc location=video.mp4 ! decodebin ! input-selector ! streamsynchronizer name=sub ! subtitleoverlay name=sub ! xvimagesink 

Setting pipeline to PAUSED ... 
ERROR: Pipeline doesn't want to pause. 
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc1: Resource not found. 
Additional debug info: 
gstfilesrc.c(508): gst_file_src_start(): /GstPipeline:pipeline0/GstFileSrc:filesrc1: 
No such file "home/usr/Downloads/video.mp4" 
Setting pipeline to NULL ... 
Freeing pipeline ... 

給予即使該文件存在這個錯誤。

請幫我解決這個或方向,這將有助於我做同樣的

+0

請整理你的問題 - 你發佈了多個非常相似的gst-launch管道(我的意思是一個有逃脫'!',另一個沒有它) - 他們也使用不同的路徑到文件 - 它非常混亂。發佈一個gst-launch - 一個調試輸出並描述最新的錯誤..文件不存在 - 您在家以前缺少/)我也認爲您不能在同一個命令中輸入兩次gst-launch - 這不是它的工作原理(如果我理解0.10)。另一件事是 - 切換到1.x,長時間不支持0.10。 – nayana

+0

我很抱歉在發佈問題時發生的錯誤 $ gst-launch-1.0 filesrc location = subtitleseng.srt! subparse!輸入選擇器!子。 filesrc location = videocartoon.mp4!解碼器!輸入選擇器! streamsynchronizer name = sub!隊列! subtitleoverlay! xvimagesink – babbu

+0

由於長度受限,我無法在相同註釋中添加錯誤。上述錯誤是 將管道設置爲PAUSED ... 管道正在預加載... 錯誤:來自元素/ GstPipeline:pipeline0/GstFileSrc:filesrc0:內部數據流錯誤。 其他調試信息: gstbasesrc.c(2865):gst_base_src_loop():/ GstPipeline:pipeline0/GstFileSrc:filesrc0: 流任務已暫停,原因未協商(-4) 錯誤:管道不希望預卷。 將管道設置爲NULL ... 釋放管道... – babbu

回答

0

它的工作對我來說是這樣的 - 我確實看到了字幕:

gst-launch-1.0 filesrc location=cartoon.mp4 ! decodebin ! video/x-raw ! videoconvert ! subtitleoverlay name=over ! autovideosink filesrc location=subs.srt ! subparse ! over. 

訣竅是在videoconvert subtitleoverlay前.. HTH

相關問題