1
除了playbin/playbin2之外,我可以在GStreamer應用程序中一起播放音頻和視頻嗎?如何在GStreamer中一起播放音頻和視頻?
解複用後我如何在音頻接收器和視頻接收器中播放音頻?
請回復。如果可能請給出一個代碼示例。 在此先感謝。
除了playbin/playbin2之外,我可以在GStreamer應用程序中一起播放音頻和視頻嗎?如何在GStreamer中一起播放音頻和視頻?
解複用後我如何在音頻接收器和視頻接收器中播放音頻?
請回復。如果可能請給出一個代碼示例。 在此先感謝。
下面是一個OGG文件的例子
gst-launch filesrc location=test.ogg ! oggdemux name=demuxer \
demuxer. ! queue ! vorbisdec ! audioconvert ! audioresample ! autoaudiosink \
demuxer. ! queue ! theoradec ! ffmpegcolorspace ! autovideosink
感謝lot.It工作正常,在我application.Could請你告訴我一兩件事,如果我有MP4容器和編解碼器是H.264那麼哪個插件我會用? – StackReader 2011-05-11 06:29:42
假設音頻是AAC,修改後的管道看起來就像這樣:gst-launch filesrc location = test.mp4! qtdemux name = demuxer \ demuxer。 !隊列! faad! audioconvert! audioresample! autoaudiosink \ 分路器。 !隊列! x264dec! ffmpegcolorspace! autovideosink – 2011-05-13 20:07:00
再次感謝。其工作。 – StackReader 2011-07-06 23:11:11