mikeswanson/SpatialPlayer

how to play the side by side video to spatial

Opened this issue · 5 comments

do you have any ideas, thank you:)

Because this player is designed for MV-HEVC playback, you'd need to convert the side-by-side media to MV-HEVC before trying to play it. You can use my free spatial tool or any of the tools listed at the bottom of that page.

I found this thread
Do you know how to let AVPlayer outputs video frames to the DrawableQueue.

I found a better solution here

@makhocheung did you get SBS video to work on your side? I am trying to do the same thing.

@makhocheung did you get SBS video to work on your side? I am trying to do the same thing.

Hello. After I did a research, I found a solution. As I mentioned before, we can let AVPlayer output video frames to the DrawableQueue. Before putting video frames to DrawableQueue, we need two DrawableQueues to drive video frames to left eye ShaderGraphMaterial and right eye ShaderGraphMaterial, then we can split a video frame into a left video frame and a right video frame, and then respectively put them to the left DrawableQueue and the right DrawableQueue.