On Tue, Jun 25, 2013 at 3:13 PM, Tomas Neme <lacrymol...@gmail.com> wrote:
> I'm wanting to make a new module, a very simple producer-consumer
> through unix sockets, and I don't know how to get started.

You should be asking yourself if this is a wise decision. Regardless
of the transport, you have said nothing about the protocol. Do you
really want to make a new media stream protocol instead of using one
already available and maybe implemented by libavformat? Maybe you are
better off to work with libavformat:

http://permalink.gmane.org/gmane.comp.video.ffmpeg.devel/115568

> How do I get it to be available to programs like melt and melted? I

Put the shared library file into the MLT plugin repository, which is
usually $prefix/lib/mlt but could also be changed via MLT_REPOSITORY
environment variable.

> see there's a factory.c file in every module directory, which calls
> the mlt*_registrer_* functions, but I'm just not sure how this is
> called, and how everything is achieved, and.. well, pretty much about
> how does one go about making it all work.

MLT expects a plugin to export a function named mlt_register(), which
it will invoke. Within that function, the your plugin calls
mlt_repository_register() for each mlt_service that it provides. You
can also write a MLT app that registers services and does not
have/need a mlt_register() function.

> Will I need to recompile mlt with my module?

no

> will I need to add my module to src/modules/?

no, but that might be more convenient

> I'm sorry if I'm asking too-obvious stuff. I've also got no experience
> making libraries in C, so I'm probably asking some fairly stupid
> questions
>
> Thanks
> Tomas
>
> --
> "The whole of Japan is pure invention. There is no such country, there
> are no such people" --Oscar Wilde
>
> |_|0|_|
> |_|_|0|
> |0|0|0|
>
> (\__/)
> (='.'=)This is Bunny. Copy and paste bunny
> (")_(") to help him gain world domination.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel



--
+-DRD-+

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to