I am using Python 2.7, PyGTK 2.24 and PyGST (Gstreamer).
To ensure smooth playback of one clip to another (without blinking), I combined all the clips that I need into one larger video. This allows me to search for the exact place I need in the code. One of the clips is similar to the “fill”, which should loop whenever one of the other clips does not play.
However, to make my code simpler and more streamlined, I want to use segments to define different clips in a larger video. Then, at the end of each segment (I know that there is an event of the end of the segment), I look for the fill clip. When I need another clip, I'm just looking for this segment.
My question is: how exactly do I create these segments? I assume it will be event_new_new_segment () , but I'm not sure. Can I create multiple search clips using this function? Is there any other that I should use. Are there any problems with this search method in my video that I should know about?
Secondly, how do I look for this unit?
Thanks!
source share