Small black screen when reloading video
StarSpangledSquid opened this issue · 6 comments
Hey! I really love this, it's been a great help for my stream!
One tiny little thing - I have it to randomly select one video and loop it. However, when it loops, it cuts to a black screen for a second, then restarts the video. Is there a way to get rid of this cut so that it loops seamlessly?
@StarSpangledSquid Hmm, I think that might be improved by trying to preload the next video somehow.
Could share two videos you're having issues with so I can see the issue myself?
You can upload them to something like file.io, google drive, or dropbox.
If anything, you might get some improvement by setting the faststart flag on all your videos: https://stackoverflow.com/questions/50914503/fastest-way-to-add-movflags-faststart-to-an-mp4-using-ffmpeg-leaving-everythi
Or in HandBrake:
Hey! I gave that a try using Handbrake but there wasn't any difference. Here's a quick video showing the problem: https://i.gyazo.com/9a34069a9f357bbe98c4b5fe23afe99e.mp4
@StarSpangledSquid can you send me the actual video and your HTML that you're using. I was working on a potential solution, but now see your gif I'm not sure if it would target your issue
Sure thing! Here's the files -
https://drive.google.com/drive/folders/1InX5KjyAr7OEJ18IIypkuSedo_h1REkM?usp=sharing
It happens specifically at the end of the video, when it loops - and it does it with every video I add in there.
Ok yep, i kind of speculated something like this. So keep an eye out for the next version release after 3.0.0, I'll try to have a fix in there for this.
@StarSpangledSquid yep, so after i trimmed out that first frame the video seemed to play pretty good afterward.
But, I also released v3.0.1 which should have even more improvements in it.
So give that a shot and reopen this if you're still having issues, but check your videos for any other extra frames at the start or end first!