1

gstreamer (v0.10) で、.ogv のみのビデオ ファイルを .mp3 ファイルで多重化し、ビデオとオーディオの両方を含む .ogv ファイルを取得しようとしています。私はこのパイプラインを試します:

gst-launch-0.10 filesrc location="video.ogv" ! oggdemux ! queue ! oggmux name=mux ! filesink location="test.ogv" filesrc location="audio.mp3" ! audioconvert ! vorbisenc ! queue ! mux.

このコマンドラインを使用すると、エラーが発生します:

ERROR : of element /GstPipeline:pipeline0/GstAudioConvert:audioconvert0 : not negotiated
Additional debogging information :
gstbasetransform.c(2541): gst_base_transform_handle_buffer (): /GstPipeline:pipeline0/GstAudioConvert:audioconvert0:
not negotiated
ERROR : the pipeline refuse to pass in preparation phase

何が悪いのかわかりません。なにか提案を ?ありがとう。

4

1 に答える 1

3

filesrc と audioconvert の間に MP3 デコーダーを追加するか、decodebin などを追加する必要があります。

gst-launch-0.10 filesrc location="video.ogv" ! oggdemux ! queue ! oggmux name=mux ! filesink location="test.ogv" 
    filesrc location="audio.mp3" ! decodebin ! audioconvert ! vorbisenc ! queue ! mux.
于 2014-10-19T13:45:39.690 に答える