androidvideoffmpegmetadata360-virtual-reality

Android - 360 video metadata


So with ffmpeg I've concatenated two 360 videos into one. The problem is that I lost all the 360 video metadata in the final video (so it's not recognized as a 360 video anymore). If I use exiftool on the final video, I lack those metadatas :

I've tried to inject those metadatas with ffmpeg, like this for example :

ffmpeg -i <input_video> -metadata Spherical="true" -codec copy <output_video>

I don't get any errors doing that, but exiftool still doesn't show the metadatas.

I know Google has a Python script that does this well, here .

But I would like to inject metadatas in my app as well, any help would be much appreciated,

thanks !


Solution

  • I've managed to do it using mp4 parser :

    mp4 parser (github)