Quantcast

Is better use a plugin or appsrc API?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Is better use a plugin or appsrc API?

Roberto Barumerli
Hi all,
I am struggling with the gstreamer enviroment.

I am trying to figure how to create an application, or a plugin, that from a set of frames. I have to sequence them into a video and than save it into a file.
The frames are a set of a images and their timing is based on a text file with the milliseconds.

In example:
<img1.jpg, 0ms>
<img2.jpg, 100ms>
<img3.jpg, 250ms>
<img4.jpg, 400ms>
<img5.jpg, 700ms>
ecc..

I read about plugins and about appsrc... but I do not understand which is a better choice. Someone could help me?

Thanks in advance,
Roberto

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Is better use a plugin or appsrc API?

Baby Octopus
I would do something like this without building any custom plugin

multifilesrc ! jpegdec ! x264enc ! mp4mux ! filesink

1. Name the file sequentially so that multifilesrc can read it one after the other
2. Attach a pad probe for GstBuffer on x264enc's sink pad. Change the buffer PTS with what you read from the text file in your application(I assume each jpeg has only a single frame. If it has multiple frames, it could get slightly complicated!)

Hope that helps

~BO
Loading...