RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
235 stars 28 forks source link

How to know type of 360 stereoscopic video? #833

Closed ghost closed 3 years ago

ghost commented 3 years ago

Describe the issue I was developing HMD 360 movie player by user can any 360 video to play. (maximum 8k) But, I don't want to use a AVPro Auto Stereo Detection feature. How can I know stereo packing type from any 360 video? (like topbottom, side by side)

Your Setup (please complete the following information):

To Reproduce

Logs If applicable, add error logs to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Videos If applicable, add a copy of your video or the URL

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

kahnivore commented 3 years ago

Hey @TaysonKR

Once the video is prepared and ready to play you could use:

StereoPacking videoStereoPacking = _mediaPlayer.TextureProducer.GetTextureStereoPacking();

Does that help?

ghost commented 3 years ago

Thank you for your reply. Editor works that code. But, build apk push to HMD then not working. I setting Android Platform video API is Android.VideoApi.ExoPlayer... So... I think there is no clue using by avpro... My opinion is create buttons to set stereo packing type by manualy click or getting type from video file name.

kahnivore commented 3 years ago

@TaysonKR could you test this in your app with the stereo video included in the AVPro Video sample videos please?

ghost commented 3 years ago

@kahnivore I already do that.. but everything is same. Debug.Log to show the StereoPackingType. but, it's always same result "None".

kahnivore commented 3 years ago

@TaysonKR when are you calling _mediaPlayer.TextureProducer.GetTextureStereoPacking();? The call will only work if the video has been loaded and is ready to play.

ghost commented 3 years ago

@kahnivore I called that when MediaPlayerEvent.EventType.ReadyToPlay event. and... This is worked on Windows(Editor), but Android platform not working...

kahnivore commented 3 years ago

Is there a chance you could send the video in question to unitysupport@renderheads.com please so we could test it?

ghost commented 3 years ago

Ok. I will.

ghost commented 3 years ago

Um... this problem may my platform is Android on HMD?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

kahnivore commented 3 years ago

@TaysonKR did you ever send us a video to test with? Have you tried any other Android devices?

ghost commented 3 years ago

my boss OK to make UI for user can choose stereo scopic type. thank you for support!