Trekky12 / kburns-slideshow

generate slideshow movies with Ken Burns effect on images
MIT License
58 stars 15 forks source link

How Can I Use Zoom and Pan Effects in Python Code #7

Closed thisisashukla closed 3 years ago

thisisashukla commented 3 years ago

Hi @Trekky12

Thanks for this awesome repository. I am working on a project where i need to implement custom zoom and pan effects on images and stitch them up together to make a video.

I have to implement pan and zoom effects with custom areas in images to be zoomed and panned. There are focus areas in every image i want the zoom and pan effects to highlight.

I am not good with shell scripting or FFMPEG, but i have working knowledge of Python. Any help on how can i implement custom zoom and pan effects on a set of images using only Python would be really appreciated.

It would be a great help if you can spare some time to guide me on implementing KBurns effects on images using Python. Thanks

Trekky12 commented 3 years ago

Hey @thisisashukla,

this project is using FFMPeg filters to create the zoom-pan effects. The underlying logic is based on the awesome blogpost https://el-tramo.be/blog/ken-burns-ffmpeg/ of @remko. The blogpost explains the filter chains of FFMPeg in detail.

Unfortunately I can't assist you in creating these effects without FFMPeg and with only python.

With this project it is not possible to use other zoom-pan effects than the available ones. But I think the software "PhotoFilmStrip" (https://www.photofilmstrip.org/en/) has another approach for these kind of effects. Maybe you can look into this.

thisisashukla commented 3 years ago

Thanks for your quick response @Trekky12 i'll check the blog. I am trying to generate these effects programmatically so the software is not of much use to me I believe.

Thanks again.

Trekky12 commented 3 years ago

@thisisashukla can this issue be closed?

thisisashukla commented 3 years ago

Ye sure @Trekky12