Dynamically Re-sizing Images In A Gstreamer Pipeline In Python
I am trying to create a program to do various animations on different images simultaneously and one of the effects I am trying to achieve is zooming into a picture which is achieve
Solution 1:
You can change image size dynamically, but for that you must have some condition
Firstly your pipeline should be build something like that source ! videorate ! ffvideoscale ! colorspace ! capsfilter caps="caps" ....
Secondly in python you get caps property from capsfilters element and you change the resolution in caps.
This should be working, warning if I remember you must add a gobject.timeout_add than 100 ms between resolution change.
Post a Comment for "Dynamically Re-sizing Images In A Gstreamer Pipeline In Python"