Hi I’m new to OPENRNDR and wanted to try out integrating videos.
The video file is FullHD with 25 FPS (and is 60 sec. long).
This is how I load the video: val video_player = VideoPlayerFFMPEG.fromFile( "data/videos/Gabber.mp4", PlayMode.VIDEO )
Issue 1: video_player.restart() doesn’t work for me. I can detect the end of the video just fine, but restart() just seems to do nothing.
Issue 2:
When running two video simultaneously with the regular program, or just one with olive, it can no longer catch up.
I get this warning then it crashes: WARN [Thread-2(display)] o.o.f.VideoPlayerFFMPEG ↘ display queue is full (4 / 5)
I have a Intel Core i7-7700 and Nvidia 1060 6GB. It’s not the best hardware but I feel like it should be capable of doing this.
Any tips or tricks on how to deal with this?
Is this expected behavior?
Is my hardware the issue?
Should videos not be played at 25 FPS or FullHD?
Hi! Welcome to the forum! Your system should be capable of playing such video, but it also depends on the bit rate of the file. You can have videos at 25 FPS and FullHD, but one could be very low bit rate and the other very high.
Still, it is possible that such issues are resolved by using more a recent release.
Could you try using the next-version branch of the openrndr-template? This uses version 0.5.0 of openrndr and orx (which will be the default soon).
Oh 5 Kbps is almost nothing! Must be a very simple video
I haven’t tried with Olive, but I think the tips about persistent state in Live coding | OPENRNDR GUIDE might be relevant (so it doesn’t reload the video every time you save, if that’s what you want).