shared memory

*nix specific usage questions
sharo
Blank Cone
Blank Cone
Posts: 14
Joined: 16 Apr 2010 23:49

shared memory

Postby sharo » 10 May 2010 20:05

Hi there,

I have a video filter which needs to communicate(share resources) with an output access module in VLC. Is there some guidelines in terms of thread communication and shared memory in VLC.

Any help will be greatly appreciated!

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: shared memory

Postby Jean-Baptiste Kempf » 11 May 2010 12:28

You want to output data to memory from VLC or to VLC?
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.

sharo
Blank Cone
Blank Cone
Posts: 14
Joined: 16 Apr 2010 23:49

Re: shared memory

Postby sharo » 11 May 2010 16:35

I guess both: from a VLC thread to another VLC thread

My video filter is running on a separate thread and every once in a while it receives a message which needs to be forwarded to an output_access module. Note that both the video filter and the output_access module are running at the same time.

Any ideas ?

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

Re: shared memory

Postby Rémi Denis-Courmont » 11 May 2010 17:59

Whatever components starts the video filter and the access_out instances should provide them with a rendez-vous mechanism. VLC thread communications mechanisms are otherwise fairly standard: mutexes, condition variables, recursive mutexes, thread-specific variables, semaphores, spin locks.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sharo
Blank Cone
Blank Cone
Posts: 14
Joined: 16 Apr 2010 23:49

Re: shared memory

Postby sharo » 11 May 2010 18:37

Hi Remi,

Thanks for your response.

Could you please give me an example of existing code that I can take a look at.

sharo
Blank Cone
Blank Cone
Posts: 14
Joined: 16 Apr 2010 23:49

Re: shared memory

Postby sharo » 12 May 2010 17:03

Does anybody else have an idea about this.

Or if someone can point me to the right place within the VLC codebase - that will be greatly appreciated.

Thanks

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

Re: shared memory

Postby Rémi Denis-Courmont » 12 May 2010 19:31

You can use the audiobargraph audio and video filters as an example.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 10 guests