Video filter + gui

This forum is about all development around libVLC.
utoz
New Cone
New Cone
Posts: 4
Joined: 08 Mar 2009 12:39

Video filter + gui

Postby utoz » 08 Mar 2009 13:38

Hi,
I'm trying to make my own VLC filter. So far, I have programmed a test filter and a gui interface (using video_effects.ui).
Individually each other are working great but I'd like to control the video filter with this gui and I can't find the file which define these controls !

Thanks.

utoz
New Cone
New Cone
Posts: 4
Joined: 08 Mar 2009 12:39

Re: Video filter + gui

Postby utoz » 08 Mar 2009 16:37

ok, I think I found it !
In "modules/gui/qt4/components/extended_panels.cpp".
I will try to modify it.

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: Video filter + gui

Postby Jean-Baptiste Kempf » 10 Mar 2009 08:33

Just ask here, or on IRC, if you need help.
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.

tamiro44
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 15 Feb 2009 15:21

Re: Video filter + gui

Postby tamiro44 » 10 Mar 2009 08:55

Hi utoz,
Are you trying to draw over the video? (text and symbols)

Tamiro.

utoz
New Cone
New Cone
Posts: 4
Joined: 08 Mar 2009 12:39

Re: Video filter + gui

Postby utoz » 10 Mar 2009 21:06

nop, I want to process the image directly.
It seems to work but I have encountered another problem :
VLC seems to handle only YUV images.

I'll explain what is my goal :
I need to send a video stream to an electronic device composed of LED.
So, from any video sources, I want to rescale it and define a fps rate, then apply my special filter on each frame and convert it in RAW RGB and finally send it.

So I am wondering a few things :
- If I activate the rescale filter and the one which defines the fps rate, will my filter work on the new images ? If yes how can I do that ?
- How do I set the output in RGB ? If it is not possible, could I let the video played locally in YUV and set the streamed video to RGB by setting the R into the Y etc. for exemple.

Thanks for your help,
Love VLC!
PS : Yeah I went to the chat but nobody answered.
Edit : PS2 : it worked by the way (editting extended_panels.cpp)
Last edited by utoz on 13 Mar 2009 18:13, edited 1 time in total.

tamiro44
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 15 Feb 2009 15:21

Re: Video filter + gui

Postby tamiro44 » 11 Mar 2009 12:26

First,
I saw at the Advanced Settings: Video->Filters->Extract RGB component video filter.
Is it helpfull?

Second,
I'll glad to know how you can extract the YUV. In my project there is an application that waiting to frames and not an H.264 stream.

Thanks.

utoz
New Cone
New Cone
Posts: 4
Joined: 08 Mar 2009 12:39

Re: Video filter + gui

Postby utoz » 11 Mar 2009 19:09

Yes I saw that option too but it only extract one component.
I think it defines the U and V to extract one of the three components but do not convert into another colorspace.

I'm sorry, I'm not a native english speaker. I'm not sure I've understood your question !
You want to know how to get the YUV values of each pixels in each frame ? If positive, I can help you.
I wrote my video filter after reading the existing ones (look at the gaussianblur for instance).
If you have difficulties, tell me I will paste a short code.


I'd like to add another question :
I saw somewhere in the documentation that video filters cannot be streamed ! Is that true ?
Thanks.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests