Page 1 of 1

stretch and compress

Posted: 28 Jun 2013 16:02
by snowdall
Hello,

I am looking to see if VLC perhaps has the capabilities that I'm looking for (perhaps through and extension). So let me explain my problem.

My client has an art installation where a projector projects a video on to a stone. The details in the video map to the various features on the surface of the stone. When the gallery that my client bought this piece from installed it, they used a proprietary piece of software running on Windows XP. This software was essentially a video player, but it had and interesting trick. It would allow you to define points along the edge of the video, and then you could move that point to stretch or compress the video in that small area. It allowed one to shape the video to fit the stone and compensate for some of the short comings of the projector.

Now fast forward 6 years and the XP computer has died and we want to revamp his art installation. When I attempted to load this proprietary software on a modern version of Windows it barfed. Since the video file is a straightforward MPEG I decided a linux solution would be best. I would love to do this with a Raspberry Pi since it could be hidden behind the project and would be cheaper and less energy hungry than a full sized computer.

The question is, can VLC provide similar functionality to stretch or compress along the edges of a video so I can shape it on the stone. I know there are some geometric adjustments, but they seem to be pretty basic and don't allow for small adjustments along the edges. But I also know that VLC has an ability to be customized through extensions and filters. Has anyone know if VLC is capable of this? And if not, is there a linux based player that might?

Thanks,
Snowdall

Re: stretch and compress

Posted: 02 Jul 2013 17:07
by Jean-Baptiste Kempf
You would need to code a new video filter just for that.

Re: stretch and compress

Posted: 04 Jul 2013 21:40
by snowdall
Thanks for the reply. Is it relatively easy to code a video filter (I am a reasonably capable software engineer by trade)? Are there any examples that I can look at?

Thanks,
Snowdall

Re: stretch and compress

Posted: 08 Jul 2013 16:33
by Jean-Baptiste Kempf
If you are on Linux, it is relatively easy, yes.