Vargol / spatial-media

Specifications and tools for 360º video and spatial audio. Modified for Google's VR180
56 stars 11 forks source link

VR180 #12

Open fgrs opened 8 months ago

fgrs commented 8 months ago

I have made a video 3840 × 2160 from dual fisheye canon lens, I fixed fisheye distortion using opencv, now I have left and right halves nicely stretched out to the corners, but I can't get youtube to recognize the video as VR180, I tried your fork to include metadata but I'm getting those errors "Error failed to insert stereoscopic data".

Can you help me understand what I'm doing wrong?

Vargol commented 8 months ago

You should only get that error if the mp4 file doesn't match the mp4 standards. It's not finding the VIDE atom where it inserts the data. VIDE should be in HDLR with should be in MDIA which should be in TRAK which should be in the MOOV atom.

What's probably happened is the software that created the final mp4 has produced a fragmented mp4, which doesn't support spatial metadata. These usually have multiple MOOF atoms instead of a single MOOV atoms. Try re-encoding the file with something that generates a standard mp4.