2016-08-10 28 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 ... 

を与えている私も、ファイルが存在する場合であっても、このエラーを与えるは私にエラー

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パイプ(私はエスケープされた '!'と1つもありません)を投稿します。 1つのgst-launchをポストする - 一つのデバッグ出力を記述し、何が間違っているのかを記述する - ファイルがない - あなたがhome/homeの前にいない;)また、同じコマンドでgst-launchを2回タイプすることはできないと思う - (私が0.10を理解すれば)。もう1つは、 - 1.xに切り替えると、0.10は長い間サポートされていません。 – nayana

+0

質問を投稿したときに間違いをしたことに私は残念です $ gst-launch-1.0 filesrc location = subtitleseng.srt!サブパルス!入力セレクタ!サブ。 filesrc場所= videocartoon.mp4!デコードビン!入力セレクタ!ストリーム同期名= sub!待ち行列!サブタイトルオーバーレイ! xvimagesink – babbu

+0

私は制約の長さのために同じコメントにエラーを追加できません。上記のエラーは です。パイプラインをPAUSEDに設定しています... パイプラインはPREROLLINGです... エラー:from element/GstPipeline:pipeline0/GstFileSrc:filesrc0:内部データフローエラー。 追加のデバッグ情報: gstbasesrc.c(2865):gst_base_src_loop():/ GstPipeline:pipeline0/GstFileSrc:filesrc0: ストリーミングタスクが一時停止し、その理由は交渉ではない(-4) ERROR:パイプラインはプリロールに望んでいません。 パイプラインを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. 

トリックはsubtitleoverlay前videoconvertにありました.. HTH