Log in or register to post comments

White Frames when Video starts to Play

March 15, 2019 - 10:21am #1

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 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

March 16, 2019 - 10:46am #2

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(); }



 

Log in or register to post comments