How to add frames to slow fps source?
I have a very slow source (MJPEG, about ~1 FPS) and I want to add an overlay on it, and store it as 30fps video. The overlay displays the current time (updated every 100ms).
Here is my pipeline:
I was expecting
FramerateConverter
to:
- Recycle the same frame
- Enable time counter to update every 100ms
- Video shown at 30fps
But if I enable FramerateConverter
, it simply won't work anymore. Only one frame is shown, the first one, and then nothing gets updated ever.
NOTE: Xav is non-blocking. It has another process reading frames and storing it in its buffer, then sending it with handle_demand
(and using redemand
if not enough frames exist)2 Replies
Hi there, I suppose something may be wrong with the demand handling in the source, but I'm afraid I can't help without the source
I tried to reproduce with the camera capture and without your custom elements, but it works fine:
Hey! Thanks for the answer. I'll take a better look at what I'm doing in the source. Thanks for pointing that out!