如何使用gstreamer& smpte用gst-launch连接2个视频文件? [英] How can I use gstreamer & smpte to concatenate 2 video files with gst-launch?

查看:327
本文介绍了如何使用gstreamer& smpte用gst-launch连接2个视频文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个视频文件(vid1.mov和vid2.mov),它们都具有相同的帧大小和帧速率.我想有1个最后的视频,其中一个显示vid1.mov,然后一个vid2.mov,一个接一个.我还希望从一个视频过渡到另一个视频(而不是突然更改视频),并且发现了

I have 2 video files (vid1.mov and vid2.mov), both have the same frame size and frame rate. I want to have 1 final video with shows vid1.mov and then vid2.mov, one after the other. I also want there to be a transition from one video to another (rather than an abrupt change of video), and have discovered the smpte plugin for gstreamer, which goes what I want.

在ubuntu linux命令行上使用gst-launch,如何将两个视频与过渡一起合并?

Using gst-launch on the ubuntu linux command line, how can I merge the 2 videos together with a transition?

(假设我想使用与2秒长且type = 234的示例相同的转换)

(Assume I want to use the same transition as in the smpte example of 2 seconds long and type=234)

我试图像这样修改smpte示例:

I tried modifying the smpte example like this:

gst-launch filesrc location=vid1.mov ! decodebin ! ffmpegcolorspace ! smpte name=s border=20000 type=234 duration=2000000000 ! ffmpegcolorspace ! ximagesink filesrc location=vid2.MOV ! decodebin ! ffmpegcolorspace ! s.

它同时开始播放两个视频,然后从一个过渡到另一个,因此它只显示2秒的vid1.mov,然后播放所有vid2.mov.我如何才能播放所有vid1.mov,然后在vid1.mov结束前2秒钟,开始播放vid2.mov,并开始过渡,以便它像vid1.mov结束一样完成过渡,然后应继续播放所有vid2.mov正常显示.

It starts playing both videos at the same time, then transitioning from one to the other, so it only shows 2sec of vid1.mov, and then plays all of vid2.mov. How can I get it play all of vid1.mov, then 2sec before vid1.mov ends, it starts playing vid2.mov, and starts transitioning, so that it finishs transitioning just as vid1.mov ends, it should then continue to play all of vid2.mov as normal.

推荐答案

还有其他人将我指向GNonLin,用于gstreamer非线性编辑工具,该工具将用于此.但是我有其他问题比照. 通过GStreamer& GNonLin不起作用

Someone else has pointed me to GNonLin, for gstreamer non-linear editing stuff, which would be used with this. However I have other problems with it cf. Video Transitions with GStreamer & GNonLin not working

这篇关于如何使用gstreamer& smpte用gst-launch连接2个视频文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆