- Home /
How do you prevent looping video from flashing at loop point?
So I have a looping video that I am trying to import into unity pro. It imports and looks fine, except that it flashes white at the loop point. The movie is a 4 second loop at 320x240 pixels, and I have tried several different frame rates (25,29.97,30). I am creating the loops with Adobe After Effects, and they loop fine in quicktime player. Is this a unity bug? Is there any way to get these movies not to flash when looping? Has anyone else experienced this, and know a work around?
Thanks,
-Matt
GREAT tip $$anonymous$$att, thanks. So typical of Unity to screw that up.
Answer by Matt Woods · Jul 25, 2011 at 06:52 PM
Update. I just solved it. I chose to render an MP4 out of After Effects, and this imported fine. I had tried several different quicktime codecs to no avail, but using an .MP4 wrapper instead of a .MOV worked.
You might as well mark your answer as accepted so that people know you figured it out.
Answer by dmitry-kharko · Sep 12, 2018 at 09:39 AM
Hello, I have researched this bug and found settings for converting videos. If you use H.264 (this codec is good for working on both iPhone and Androids phones). Unity 2018.1.1f1 VideoPlayer works correctly with the following settings: 1. 30FPS (set type Constant Framerate). 2. Avg Bitrate (kbps) 1000 - 1500 (if the video is slow and doesn't have many changes between frames) and set "2-Pass Encoding" to "True". 3. And most importantly, set "Encoder Tune" to "Zero Latency" and Fast Decoder to "True" (these settings are for economy and slow processors, helping to decode video faster). The size of my video is 720x1080, audio format aac with bitrate 160.
I hope this helps you.
Your answer
Follow this Question
Related Questions
Unity doesn't import sound correctly 1 Answer
How to import video from Web page CMS to assets 2 Answers
Video Texture Loop 2 Answers
Cutscene not working??? 0 Answers
Video Texture Loop on TV 0 Answers