开发者

How would I use gstreamer to stitch a set of images together to form a video slideshow

开发者 https://www.devze.com 2023-01-07 18:58 出处:网络
I\'d like to take a set of images and a sound track and use that to form a basic video slideshow using gstreamer.

I'd like to take a set of images and a sound track and use that to form a basic video slideshow using gstreamer.

There seems to be a lot of documentation and examples of basic gstreamer usage like playing a video or audio file, or even transcoding and the like. But I can't seem to find anything particularly useful for, I suppose, video editing tasks.

I feel that I have a decent grasp of the fundamentals of gstreamer, but I'm having trouble conceptualising how I would join the dots, so to speak. Specifically the bit开发者_如何转开发 where I take a set of images and turn them into a single video output.


The module MultiFileSrc will do that for you.

From the doc

The multifilesrc element is used to read a collection of sequentially named files, e.g., 00001.jpg, 00002.jpg, 00003.jpg, etc., into a GStreamer pipeline.

== Example Pipeline ==

This pipeline reads the files 00001.png, 00002.png, etc., decodes them, and then reencodes the video into Ogg/Theora.

gst-launch multifilesrc location=%05d.png \ caps="image/png,framerate=30/1,pixel-aspect-ratio=1/1" ! \ pngdec ! ffmpegcolorspace ! video/x-raw-yuv,format=(fourcc)I420 ! \ theoraenc ! oggmux ! filesink location=output.ogg


Use pitivi.

If you want to write the program anyway you should use gnonlin, the library pitivi is built upon. You would be putting together a gnlcompositon. See also http://wiki.pitivi.org/wiki/PyGST_Tutorial


Images Slideshow in Gstreamer

try this for an alternative solution. Worked for me.


Do you want to write a program? I think you should check out ffmpeg for making a video by providing a set of images. Its cross platform and hence may suit your need.

I hope it helps.

If you want related to gstreamer library then you can check out source code of various gstreamer based open source applications here.

0

精彩评论

暂无评论...
验证码 换一张
取 消