Lazarus

Programming => Graphics and Multimedia => Audio and Video => Topic started by: ghamm on March 07, 2020, 07:50:54 pm

Title: Pixelize effect a video
Post by: ghamm on March 07, 2020, 07:50:54 pm
Hi,
I want to write an app that has 2 videos on a form. The first is the original video from a web cam. The second is a pixelated version of the first original video. Say, 64x64. Im trying for the life of me to figure out how I could do that. VLC player? What filter to use etc.. how do I make the  second video a downscaled version of the first etc..

Can you give me some ideas?
Title: Re: Pixelize effect a video
Post by: Handoko on March 07, 2020, 08:27:39 pm
I think you will have better luck using C/C++, there you should be able to find more libraries/filters for video editing programming.

But if you plan to write it yourself, then ask yourself can you write code to perform pixelated effect on a image? If the answer is no, sorry I don't mean to discourage you but you better forget it.

And please, don't do double posting.
Title: Re: Pixelize effect a video
Post by: Martin_fr on March 07, 2020, 09:03:03 pm
Removed duplicate in other board.
Title: Re: Pixelize effect a video
Post by: lainz on March 08, 2020, 01:16:18 am
BGRABitmap has a pixelate filter.
Title: Re: Pixelize effect a video
Post by: ghamm on March 09, 2020, 04:04:59 am
Does BGRABitmap do anything with videos? I know I can resample with BGRABitmap if its a bitmap, but can I do it with videos?
Title: Re: Pixelize effect a video
Post by: Handoko on March 09, 2020, 04:29:31 am
Video components for Pascal are rare. There are a few of them but they are for playback not for editing. You can try if they allow you to 'extract' the image for editing and then 'send' it back.

https://wiki.freepascal.org/Video_Playback_Libraries
TinyPortal © 2005-2018