Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video not getting displaying on Quad following the guide #16

Open
spaul13 opened this issue Feb 11, 2019 · 9 comments
Open

Video not getting displaying on Quad following the guide #16

spaul13 opened this issue Feb 11, 2019 · 9 comments

Comments

@spaul13
Copy link

spaul13 commented Feb 11, 2019

As specified in Readme, I have added the required ffmpeg dlls, Using the quad one from the demo, just specified the video and enable Play on Awake. After playing this on the editor, the logs have shown seems to have no error but I can't see my video on the Quad mesh renderer. shader is YUV2RGBA.

Can anyone please tell me why? I am using Unity 2018.1.0b4.
Here is the log what I am getting

[ViveMediaDecoder] play on wake.
[ViveMediaDecoder] init Decoder.
[ViveMediaDecoder] Init success.
[ViveMediaDecoder] Video format: (4096, 2048)
[ViveMediaDecoder] Total time: 0.015625
[ViveMediaDecoder] OnApplicationQuit

Can anyone please tell me why my video not being displayed?

@kyo8568131
Copy link
Contributor

Hi spaul13,
From the log message, the total time is only 0.015625 so the frame may not enough to fill the decode buffer in native. Please help to try with other video or modify native buffer size.
Thanks.

@spaul13
Copy link
Author

spaul13 commented Feb 12, 2019

Thanks for the reply. @kyo8568131 . I have used a bigger size video and it works but I want to use ViveMediaDecoder for the previous smaller size video. As per guideline, I have changed the BUFF_VIDEO_MAX value to 1 in the config file under Assets/ViveMediaDecoder/

but still, the same problem prevails. I can't see the video. can u plz tell me whether I am changing the buffer_size at correct place or properly or not?

@kyo8568131
Copy link
Contributor

You could move the config file to the project path(i.e. ./YourProject/ rather than ./YourProject/Assets/ViveMediaDecoder).
If the issue remains, please help to provide sample video for further evaluation.
Thanks.

@spaul13
Copy link
Author

spaul13 commented Feb 12, 2019

I have tried to move my config file under my project folder and checks whether it works or not but still, the issue remains, I am here sharing the google drive link of the video which I was trying. Mainly it consists I single I frame (intra-frame encoded frame)

https://drive.google.com/open?id=131kWXgWgSSRLOUGNiIkU0ojPxJj36MxZ

Please ask me for further queries and please let me know whether this video can work or not?

@kyo8568131
Copy link
Contributor

It is an issue that the native decode incomplete. And I also found the native buffer state might be imprecision. I will trigger update process soon. Thanks.

@spaul13
Copy link
Author

spaul13 commented Feb 15, 2019

@kyo8568131 Thanks for the reply. I will wait for the issue to be solved. I didn't understand why the decode is incomplete for these small-sized videos. @kyo8568131 can u please commit or send me the build file for the native scripts so that I can also try a little bit from my end.

What I noticed the config file is loaded using the loadconfig() func which is defined in DecoderFFmpeg.cpp which is not compiled in the .dll so from c# script there is not loading and reading of the configuration file done so any change in the config file is likely to affect. This is my probable observation. Any comment on this?

@kyo8568131
Copy link
Contributor

I've push the new update both on here and Unity Asset store.
Please give it a try, thanks.

@spaul13
Copy link
Author

spaul13 commented Feb 20, 2019

@kyo8568131 thanks a lot. It's working properly.

One small query can u please tell me how to switch between multiple videos, let's say after each update, I want to switch the video I am playing using ViveMediaPlayer.

(e.g. If u want I can create a different query (or issue) regarding this).

@kyo8568131
Copy link
Contributor

You can call stopDecoding and then initDecoder with other video path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants