How to add new dll module into VLC

This forum is about all development around libVLC.
hedypan
New Cone
New Cone
Posts: 7
Joined: 13 Jul 2009 12:50

How to add new dll module into VLC

Postby hedypan » 28 Jul 2009 09:05

Hi,

I am trying to add some new functions into VLC for my application. The new function should be added after decoding module and before display module. I am going to make this new function into a DLL module and then link it with other VLC modules.

Any one who knows if it is possible to add an DLL module in to VLC and how to do it?

Thanks!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to add new dll module into VLC

Postby Jean-Baptiste Kempf » 28 Jul 2009 15:00

Read HACKING in VLC folder.
So, more or less, compile VLC, create a new module like an old one and recompile it.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to add new dll module into VLC

Postby Rémi Denis-Courmont » 28 Jul 2009 21:12

VLC updates the modules list at every start from its plugins directory.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

hedypan
New Cone
New Cone
Posts: 7
Joined: 13 Jul 2009 12:50

Re: How to add new dll module into VLC

Postby hedypan » 29 Jul 2009 03:37

Hi, thanks for your information.

The method you introduced is adding a module by adding its sources files to modules.am.

In my case, the source is not a single file but some huge source files, some thing like x264. I think adding this module by adding its sources may make it complex. So, I trying to packet all the source files into one DLL file and then add this DLL file directly into VLC.

Is it possible to add this DLL file directly to VLC without dealing with the inside source files?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to add new dll module into VLC

Postby Jean-Baptiste Kempf » 29 Jul 2009 09:40

Being huge or not doesn't make it change. Make a subfolder, put all the files there...

Else, try to compile your module as out of tree, but I doubt this will be easy.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to add new dll module into VLC

Postby Rémi Denis-Courmont » 29 Jul 2009 18:42

Out-of-tree builds is (supposed to be) easy on Linux. You're going to have a fun time on Windows though...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

hedypan
New Cone
New Cone
Posts: 7
Joined: 13 Jul 2009 12:50

Re: How to add new dll module into VLC

Postby hedypan » 30 Jul 2009 03:15

Thanks guys, are there any reference document for out of tree building method?

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to add new dll module into VLC

Postby Rémi Denis-Courmont » 30 Jul 2009 16:02

There was some on the wiki, but I don't remember where. It just follows the usual pkg-config way anywhow.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

hedypan
New Cone
New Cone
Posts: 7
Joined: 13 Jul 2009 12:50

Re: How to add new dll module into VLC

Postby hedypan » 05 Aug 2009 08:10

Hi, thanks for your information. I've already successfully build my new module according to HACKING. The problem now is how to make this new module really working.

My module is trying to do some kind of image processing after the decoding module. How can I make the new module working directly after decoding.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to add new dll module into VLC

Postby Jean-Baptiste Kempf » 05 Aug 2009 08:13

Video Filter?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

hedypan
New Cone
New Cone
Posts: 7
Joined: 13 Jul 2009 12:50

Re: How to add new dll module into VLC

Postby hedypan » 05 Aug 2009 08:42

Not exactly. It's doing 3D warping job. I guess maybe we can consider it as a video filter.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to add new dll module into VLC

Postby Jean-Baptiste Kempf » 05 Aug 2009 09:28

Well, for example, postprocessing is a video filter.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 36 guests