Open zjysteven opened 3 months ago
What video_codec are you using @zjysteven ? If you could share a small realistic-ish repro then we could debug this better!
Thanks for the reply. I have tried several codecs but had no luck in getting the video displayed. It's quite difficult for me to come up with a repro script. I guess I will close for now and reopen if I somehow have it ready.
Ok @zjysteven - i'll still be looking into it so reach out with any questions!
Hi @freddyaboulton, I finally identified the thing. So if one creates a public URL with demo.launch(share=True)
, the video will not be displayed no matter if the demo is accessed via local or public URL. demo.lauch(share=False)
works fine. This can be confirmed with the official example.
Thanks for isolating the issue @zjysteven !
Happy to help identify the cause. Kindly keep me posted when there's a fix of this. We are very in need of this streaming feature for our demo.
Describe the bug
Hi, thanks for this great work. I was trying to use the new video real-time streaming output feature that is enabled by #8906 (currently under the
5.0-dev
branch).I first ran the example
demo/stream_video_out/run.py
(this) and it worked like a charm. However when I adapted it to my application, the video block displayed nothing despite reporting no errors (there was a video progress bar shown but with timestamp of00:00 / Nan:Nan
).Interestingly, I confirmed that there were video segments saved and they could be played normally with my local video player. Furthermore, after all video segments were generated, if I run another gradio app that reads and plays the video segments with
gr.Video(streaming=True)
, then it could work smoothly.I completely got lost with this weird "bug" and would appreciate any thoughts/ideas/guesses on what I was doing wrong. @abidlabs @freddyaboulton
Have you searched existing issues? π
Reproduction
Unfortunately I don't have a minimal reproducible example because it is an app that involves custom diffusion model and complicated environment setup. But the essence of the code is below.
Screenshot
Please see this video recording where the streamed video output should be displayed in "Real-Time Decoding Output" but it just showed empty. Screencast from 08-16-2024 08_21_42 PM.webm
Logs
No response
System Info
Severity
I can work around it