Topic locked

Video Playback-Black screen appears for a moment

January 18, 2013 - 4:08am #1

Video Playback ImageTarget video is Black Screen appears for a moment.

Is there a way that does not make a black screen?

 

Best Regards,

secimo

Video Playback-Black screen appears for a moment

March 26, 2014 - 12:32am #25

Great, thanks!

Video Playback-Black screen appears for a moment

March 25, 2014 - 3:34pm #24

I've just created a post in the Android forum, showing a possible solution for this issue:

https://developer.vuforia.com/forum/android/video-playback-texture-black-screen-appears-beginning-fo

 

Hope this help someone :)

Video Playback-Black screen appears for a moment

January 14, 2014 - 3:26am #23

Sorry, not sure what this has to do with this thread.

If you have a question related to Android, I suggest you ask it clearly in the Android forums and create a new thread.

 

thanks

N

Video Playback-Black screen appears for a moment

January 14, 2014 - 1:34am #22

NalinS

How to make this on the new vuforia 2.8 for Android with all the code in the java clases?

Thank you very much

 

Video Playback-Black screen appears for a moment

October 25, 2013 - 1:11am #21

Ok, I checked again with the development team and it seems that this is due to buffering in Unity, and it's not possible to query how many frames will be black before the video starts playing.

However you may be able to use this workround on a case-by-case basis:

 

In VideoPlaybackBehaviour.cs, method HandleStateChange, the first statement needs to be changed from:
 
if (newState == VideoPlayerHelper.MediaState.PLAYING || newState == VideoPlayerHelper.MediaState.PAUSED)
{
    renderer.material.mainTexture = mVideoTexture; renderer.material.mainTextureScale = new Vector2(1, 1);
}
 
to:
 
if (newState == VideoPlayerHelper.MediaState.PLAYING || newState == VideoPlayerHelper.MediaState.PAUSED)
{
    StartCoroutine(DelayVideoPlayback());
}
 
Additionally, the following method needs to be added to the class:
 
IEnumerator DelayVideoPlayback()
{
    const int numFramesToDelay = 10;
    for (int i = 0; i < numFramesToDelay; i++)
       yield return null;
 
    renderer.material.mainTexture = mVideoTexture; renderer.material.mainTextureScale = new Vector2(1, 1);
 
}
 
 
Obviously you need to set the number of frames to delay by trial and error.  Give this a shot and see if it works.
 
N

Video Playback-Black screen appears for a moment

October 24, 2013 - 9:00am #20

Do we know even what is causing it? Is it the video not being prebuffered or something to do with texture properties? 

Video Playback-Black screen appears for a moment

October 24, 2013 - 8:57am #19

Sorry, but we have no update here.

N

Video Playback-Black screen appears for a moment

October 24, 2013 - 8:32am #18

The issue of the black frames at the start of a video playing on a texture is still there. Has anyone found a work around for this yet?

Video Playback-Black screen appears for a moment

March 6, 2013 - 4:12am #17

Hi columbus,

We do plan to look at this in due course but to be clear it is not a priority at the moment.

One thing you could possibly experiment with is to try different video formats to see which are worse/better.  This also may help to narrow down the scope of the problem.

Sorry that there will be no immediate fix here, and very much hope that you can find a way around this.

N

Video Playback-Black screen appears for a moment

March 5, 2013 - 8:36am #16

Hi

I´d like to ping this issue, since it still seems to percist. (despite the major release in the mean-time)
I cut a sequenz into several short clips which I want to play "seamless" with the next clip, after a button was pressed, if possible. But every clip starts with a few black frames. And since one of my clips is only some frames long it doesn´t get rendered at all, but just stays black(I changed the video-behaviour in a way that the last frame stays visible). - does this behaviour mean, that the video itself is already playing? Which would mean, that it isn´t a load-delay.

I´d be thankful for any suggestion in this matter

thx

Maik

 

Video Playback-Black screen appears for a moment

February 4, 2013 - 3:58am #15

Hi secimo

I tested this last week and it seems that the momentary black screen has always been there with the Unity Video Playback sample, as I tested with various devices and with the previous version of Vuforia.

As a result this issue is under investigation and I will revert back when I have more info.

Thanks,

N

Video Playback-Black screen appears for a moment

February 4, 2013 - 1:24am #14

Issue #1: on a texture

I have tested on iPad2 running iOS 6.1, was not resolved.

Moment, a black screen is displayed first.

This problem is like the iOS version was not a problem.

 

Best Regards,

secimo

Video Playback-Black screen appears for a moment

January 22, 2013 - 6:07am #13

Could you please try a few other video files and let me know if the same thing happens.

I need to be able to accurately reproduce a problem before anything can be done to fix it, so PM me a link to any video file if you can.

N

Video Playback-Black screen appears for a moment

January 22, 2013 - 5:57am #12

I only see the black video frame on the texture. Perhaps trying a larger video file of about 20MB may help to reproduce the issue.

Thanks negrelja, Issue #1: on

January 21, 2013 - 7:20am #11

Thanks negrelja,

Issue #1: on a texture

"I have tested on iPhone 5 running iOS 6.0 and iPad 2 running iOS 6.0.1 and was able to reproduce the black frame issue with the Sample Video Playback without any modifications to the project files"

 

I just tested on an iPhone 5 running iOS 6.02 and did not see any black frame.  Do you see it just on the texture part or is it on the whole screen?

 

Issue #2: fullscreen -  We are investigating this 

 

thanks

N

 

Video Playback Issues

January 21, 2013 - 6:28am #10

Please let me clarify, I was actually talking about two separate, unrelated issues.

Issue #1: Flashing black video frame at beginning when playing a local video on a texture.

Issue #2: App gets stuck on black loading screen when a fullscreen video reaches the end.

The only major difference between my app and the video playback sample is that I am forcing my local videos to play fullscreen.

hmmm, can you clarify

January 21, 2013 - 6:08am #9

hmmm, can you clarify please?

When playing on a texture (file must be local) there is no fullscreen player, so the camera feed should still be there.

Are you saying when you try and play on a texture from a local file that you get a black screen at the end?

Also, what is different between your app and the video playback sample?

N

 

 

Video on Texture

January 21, 2013 - 6:02am #8

I've only noticed this issue when playing on a texture. I have not seen this happen in fullscreen, but still having the issue that the video player will not close once the video has reached the end. Thanks.

Can I just check:  does this

January 21, 2013 - 1:44am #7

Can I just check:  does this happen only in full screen mode?

N

Also in my case, the default

January 18, 2013 - 4:41pm #6

Also in my case, the default behavior of the sample.

 

I started out when loaded into the ImageTarget.
The display of the black screen, is about 0.2 seconds.
 
In the operation of the subsequent black screen does not come out.
 
BestRegards,
secimo

Flashing Black Video Frame

January 18, 2013 - 1:38pm #5

I have tested on iPhone 5 running iOS 6.0 and iPad 2 running iOS 6.0.1 and was able to reproduce the black frame issue with the Sample Video Playback without any modifications to the project files. It only seems to be happening the first time the video is played/loaded. If you pause and play again there seems to be a very slight delay for the video to resume but no flashing black frame. I suspect that the video player frame is being shown before the video is fully loaded. Seems that the larger the video file size = longer black frame delay.

No it's not the default

January 18, 2013 - 1:13pm #4

No it's not the default behavior. Could it be your video? - are you seeing this with our Video Playback sample as well?

Also devices have you tested with?

Video Playback Black Video Frame

January 18, 2013 - 12:42pm #3

I've noticed the same issue. I'm playing video on a texture and noticed that the video frame goes black for a split second just before the video starts playing. Is this simply the default behavior? I'd prefer seeing the Video Keyframe linger for an extra second rather than a black frame if possible.

I'm running Unity 4, Vuforia 2.0, xCode 4.5.2, iOS 6.0.1

Hi secimo, does the texture

January 18, 2013 - 5:38am #2

Hi secimo,

does the texture appears as black only for a few frames (a very short time) ?

 

Topic locked