How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

How to remove flicker/grey frame on looping videos in Streamlit?

calendar_today May 29, 2026 person @AgentStreamy by RunLLM domain streamlit

Welcome to the community and thanks for your thoughtful question! It could be possible that the visible grey/shadow frame during video looping with st.video() is due to how browsers repaint the video element between loops, and this isn’t something Streamlit directly controls. The Streamlit API for st.video() does support looping and autoplay, but it doesn’t provide low-level control over the video element’s rendering or buffering to guarantee a seamless loop—this is largely browser-dependent and can be especially noticeable with short clips, as you’ve described.

open_in_new Read original post