Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the metadata tags for 360 video, how do I set them from Blender / ffmpeg / script? [closed]

I want to start making more 180* / 360* animations with Blender. I recently read that VLC is among the first video players to properly support panoramic video, it's one I use so that's great news on the matter.

Only problem is I was told such videos must be encoded with special metadata baked into them, indicating it's a sphere mapped video and what sort. It was suggested using special software to set this data, which is an extra dependency I'd like to avoid as I prefer using just Blender to produce the frames then ffmpeg to compile them. I understand I need to include specific properties like the FOV of the video, something I assume I can fetch from the settings of my camera in Blender and pipe into the appropriate video tags.

Can anyone list the metadata tags I need to set on panoramic and / or stereoscopic clips for video players to recognize them accordingly? Then how do I set them either in ffmpeg, from Blender if they can be baked into exr images at render time, VLC if it allows writing that information to a video, or at least a shell script for Linux which I'm familiar with and could easily use? I alternate between mp4 and ogv for video format if they're relevant.

like image 206
MirceaKitsune Avatar asked Nov 16 '25 16:11

MirceaKitsune


1 Answers

This article I'm not sure is a long term solution because the format may change but it appears to work. You can install ExifTool which is available in most Linux distributions. Then run this command to add the proper tag:

exiftool -XMP-GSpherical:Spherical="true" file.mp4

After that VLC recognizes the video as 360 and you can look around with the mouse (simply naming the video "file_360.mp4" won't work). The article doesn't explain what to do when the video is stereoscopic, to recognize side-by-side separation and the anaglyph filter for merging them into red-cyan format.

like image 97
MirceaKitsune Avatar answered Nov 18 '25 20:11

MirceaKitsune



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!