我目前知道如何将两个视频融合为一个,很难做到这一点(连续30多个小时的研究工作,我使用了以下管道:
gst-launch-1.0 filesrc location=candidate.webm ! decodebin ! videoscale ! video/x-raw,width=680,height=480 ! compositor name=comp sink_1::xpos=453 sink_1::ypos=340 ! vp9enc ! webmmux ! filesink location=out.web filesrc location=interviewer.webm ! decodebin ! videoscale ! video/x-raw,width=200,height=140 ! comp.
在这种情况下,我将两个视频混合在一起,使它们的第二个在右下角,第一个是“背景”。好吧,有人知道我也如何在同一文件中同时获得两个音频吗?我希望有人对我的管道有用。
我目前知道如何将两个视频融合为一个,很难做到这一点(连续30多个小时的研究),我使用了以下管道:gst-launch-1.0 filesrc ...] >
audiomixer
元素确实获取多个音频流并将它们混合为一个音频流。