Recent

Author Topic: Pixelize effect a video  (Read 537 times)

ghamm

  • New Member
  • *
  • Posts: 29
Pixelize effect a video
« 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?

Handoko

  • Hero Member
  • *****
  • Posts: 3496
  • My goal: build my own game engine using Lazarus
Re: Pixelize effect a video
« Reply #1 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.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6303
    • wiki
Re: Pixelize effect a video
« Reply #2 on: March 07, 2020, 09:03:03 pm »
Removed duplicate in other board.

lainz

  • Hero Member
  • *****
  • Posts: 3570
    • Lainz
Re: Pixelize effect a video
« Reply #3 on: March 08, 2020, 01:16:18 am »
BGRABitmap has a pixelate filter.
https://lainz.github.io - My Website
https://lazpaint.github.io/ - LazPaint Downloads

ghamm

  • New Member
  • *
  • Posts: 29
Re: Pixelize effect a video
« Reply #4 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?

Handoko

  • Hero Member
  • *****
  • Posts: 3496
  • My goal: build my own game engine using Lazarus
Re: Pixelize effect a video
« Reply #5 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