【发布时间】:2016-09-20 11:11:16
【问题描述】:
我是 gstreamer 的初学者,正在努力使用 Gstreamer 1.0 的管道来无缝连接两个 MP4 媒体容器,它们都带有视频和音频流。 在我看来,使用“concat”元素是最方便的方法,我可以连接任一视频流:
gst-launch-1.0 concat name=c ! autovideosink filesrc location=1.mp4 ! decodebin ! videoconvert ! c. filesrc location=2.mp4 ! decodebin ! videoconvert ! c.
或音频流:
gst-launch-1.0 concat name=c ! autoaudiosink filesrc location=1.mp4 ! decodebin ! audioconvert ! c. filesrc location=2.mp4 ! decodebin ! audioconvert ! c.
但到目前为止,创建一个将两个容器与视频和音频连接起来的管道还没有运气。
从this article 我意识到streamsynchronizer 是必需的,所以有人可以帮忙提供示例管道以显示它的外观吗?
【问题讨论】:
-
“到目前为止没有运气”是什么意思?这个管道对我有用,我可以连续播放两个 mp4 视频:
gst-launch-1.0 concat name=c ! videoconvert ! videoscale ! autovideosink filesrc location=video1.mp4 ! decodebin ! c. filesrc location=video2.mp4 ! decodebin ! c. -
@EzequielGarcia 是的,它可以工作.. 但他也需要在同一管道中有音频:)
标签: video concatenation gstreamer