Log in or register to post comments

White Frames when Video starts to Play

March 15, 2019 - 10:21am #6

Hi there,

in my testproject, a video with an alpha channel (webM - transcoded in Unity to VP8) and material "mobile/particles/alpha blended" starts to play as soon as the image target has been found. But the first frames of the video are always white after the tracker has been found. Searching the forums, i found older threads (2014/15) with similar problems, but i could not find a solution for my purpose. Could somebody help me with this issue.

Thanks in advance,

chrispi

White Frames when Video starts to Play

March 16, 2019 - 10:46am #5

Try something like this if you arn't already.   Using this or trying a different codec (if possible and depending on platform) usually works for me.  Maybe also try hiding things until the prepareCompleted.

videoPlayer.prepareCompleted += PrepareCompleted;

void PrepareCompleted(VideoPlayer vp) { vp.Play(); }



 

White Frames when Video starts to Play

March 18, 2019 - 5:16pm #4

Hey guys! I found myself stocked in the same problem! now everything works fine with tracking and the transparent video+audio, but the first frame is White!

I am using a h264 codec with a luma mask side, cause it is quite impossible to use other codecs, have transparency and avoid big data. But what kind of other codecs do you suggest for?

 

And I tried to paste the snippets in my shader but it is not working, I can't start my PlayMode. I think I don't get the right spot, would be cool to get some help from some masters in the field!

 

Cheers

G51R 

White Frames when Video starts to Play

March 18, 2019 - 5:16pm #3

Hey guys! I found myself stocked in the same problem! now everything works fine with tracking and the transparent video+audio, but the first frame is White!

I am using a h264 codec with a luma mask side, cause it is quite impossible to use other codecs, have transparency and avoid big data. But what kind of other codecs do you suggest for?

 

And I tried to paste the snippets in my shader but it is not working, I can't start my PlayMode. I think I don't get the right spot, would be cool to get some help from some masters in the field!

 

Cheers

G51R 

White Frames when Video starts to Play

October 23, 2019 - 8:12pm #2

Easy solution is to play and pause the video on the Start method, then play it again on marker detected.

White Frames when Video starts to Play

October 24, 2019 - 3:50pm #1

Just tweak the materialVideo.

In the shader (unlit transparent) select a totally transparent texture (I made a little texture...png with 16 x 16 pixels);

So Before first frame loads there is no white or black flash.

Log in or register to post comments