563

How can I use gstreamer & smpte to concatenate 2 video files with gst-launch?

Question:

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 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-smpte.html" rel="nofollow">smpte plugin for gstreamer</a>, which goes what I want.

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

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

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.

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.

Answer1:

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. <a href="https://stackoverflow.com/questions/6910446/video-transitions-with-gstreamer-gnonlin-not-working" rel="nofollow">Video Transitions with GStreamer & GNonLin not working</a>

Recommend

  • gst-launch with tcpserversink not working
  • How to output GStreamer video to Gdk.Pixbuf using Vala?
  • Convert Speex files to MP3, programatically? [closed]
  • how can I grab video from usb video capture + dvb device with gstreamer?
  • Combine multiple images with gstreamer
  • cut parts of a video using gstreamer/Python (gnonlin?)
  • GStreamer Launch RTSP Server for ReStreaming IP Camera H264
  • Date cannot be in the future SQL
  • Android - Call default browser with and redirect to a designated url
  • Persistent stty Settings?
  • What is ./.local/share/Trash (Unix) [closed]
  • Python adding lots of things to PATH. How do I stop?
  • python: forcing relative imports to search from script file
  • Portable JRE on Linux - possible?
  • Jenkins Grails plugin does not list lastest versions of Grails
  • Iron Router: How do I send data to the layout?
  • Building Qt project for C++11 standard
  • Python pickle not one-to-one: different pickles give same object
  • How to generate and display a QR Code in ionic 2
  • Content-Length header not returned from Pylons response
  • Play WS (2.2.1): post/put large request
  • Atlas images wrong size on iPad iOS 9
  • How to access EntityManager inside Entity class in EJB3
  • FB SDK and cURL: Unknown SSL protocol error in connection to graph.facebook.com:443
  • Using $this when not in object context
  • Jenkins: How To Build multiple projects from a TFS repository?
  • How do I fake an specific browser client when using Java's Net library?
  • How reduce the height of an mschart by breaking up the y-axis
  • Perl system calls when running as another user using sudo
  • vba code to select only visible cells in specific column except heading
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • Apache 2.4 - remove | delete | uninstall
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Understanding cpu registers
  • coudnt use logback because of log4j
  • How do I configure my settings file to work with unit tests?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Binding checkboxes to object values in AngularJs