OpenCV Videowriter creates longer video than original

So I in VL.OpenCV I’m playing a video and at the sametime writing this video with an effect. Similar to Barch process a video example but messier with more logic.

The problem is that the video files the videowriter writes are longer than the original file. I linked the fps from the videoplayer to the video writer but that doesnt seem to work.

When I use the VideoPlayer(Blocking) version i get after the first video got recorder a NaN for the length of the new video. and it doesnt plays the new video anymore. I dont have that problem with the normal videoplayer :(

Thanks in advance

do you see the same issue in the batch processing example?

No, I think the problem is with using the non blocking videoplayer.
The problem is that the videoplayer(blocking) gets stuck when I change the filepath. If I use another videoplayer(blocking) in parallel it is playing the video. Is there a way to “reset”/reinitialise the videoplayer(blocking)