Page 1 of 1

3D for passive LG Technology

Posted: 07 Jan 2013 09:44
by El_Duraminga
Hi folks,
Recently I've bought a LG-3D-Passive monitor for a few bucks.
The passive stereoscopic technology interlaces the even and the odd lines with the two different images.
I don't find any other solution in the huge amount of VLC options to obtain an interlaced output starting from an HSBS video so that, after a lot of troubles to cross-compile VLC for Windows (that is a pain), I tried to find a solution implementing the HSBS conversion for myself.
Since the planar YV format provided by the MP4 streams, uses a spatial compression of the Chroma components the even and odd lines are indistinguishable and my first tentative to realize a simple filter goes wrong.
Therefore I patched the original Direct3D driver from Damien Fouilleoul and used the internal acceleration of my graphics card NVIDIA to do the dirty work.
The plugin works exclusively on a fixed Full-HD plane but it is able to HW scale any video, the result is impressive and seems to be extremely fast and fluid (compared to other solutions) on my Win7-64, and the capabilities of VLC do the rest.
Now … I realized this plugin in a couple of days, for my personal use, my solution is designed explicitly for the LG technology and it works great on my graphic card , however if someone else is interested in this solution or in this specific approach, I can detail and provide the work I've done.
Note: on Linux there is something similar in the last SVN Mplayer project applied to the OpenGL driver, so I think the porting should not be impossible.
Good things to you.

Re: 3D for passive LG Technology

Posted: 07 Jan 2013 11:53
by Jean-Baptiste Kempf
Would you be able to share it to other people? Would you be able to share the patch?

Re: 3D for passive LG Technology

Posted: 08 Jan 2013 10:02
by El_Duraminga
Would you be able to share it to other people? Would you be able to share the patch?
Yes, I would be very happy to share this work, as a long-time C/C++software developer (usually on Linux) I think I can do it.
I wrote here in my first instance because I have a couple of problems.
The simplest one is the usual approach to the project, that is "where to post my work", if you have an answer I will be very glad to comply.
The second is a question is about the "impact" of this patch and how to proceed to make it public.
What I've done is not a simple plugin, it is a workaround on one of the most used piece of codes in VLC, to implement a very specific technology and I'm a little scared of that.
I think that the safest way could be to realize a video-filter "similar" to the anaglyphic introduced in the GIT version of VLC and getting the things done by the CPU but It is heavy because I should at least blend and change the output format to RGB inside the fillter and I'm not sure about the effects of changing the format on the fly in a filter. A more powerful way could be to create another video output plugin, maybe hidden, an available only by the command line (which is the approach I used until now), something like "direct3dhsbsinterlaced" or similar, so I'm a bit undecided on what to do .
Bye, and thanks for now.

Re: 3D for passive LG Technology

Posted: 10 Jan 2013 13:21
by El_Duraminga
I have opened a new project on SourceForge regarding this project.

The link is : http://sourceforge.net/p/vlcinterlacedhs

I will update everything as soon as possible.

Bye.