Page 1 of 1

Video filter + gui

Posted: 08 Mar 2009 13:38
by utoz
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.

Re: Video filter + gui

Posted: 08 Mar 2009 16:37
by utoz
ok, I think I found it !
In "modules/gui/qt4/components/extended_panels.cpp".
I will try to modify it.

Re: Video filter + gui

Posted: 10 Mar 2009 08:33
by Jean-Baptiste Kempf
Just ask here, or on IRC, if you need help.

Re: Video filter + gui

Posted: 10 Mar 2009 08:55
by tamiro44
Hi utoz,
Are you trying to draw over the video? (text and symbols)

Tamiro.

Re: Video filter + gui

Posted: 10 Mar 2009 21:06
by utoz
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)

Re: Video filter + gui

Posted: 11 Mar 2009 12:26
by tamiro44
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.

Re: Video filter + gui

Posted: 11 Mar 2009 19:09
by utoz
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.