<p>you can use Spatial Media Metadata Injector to fix the metadata <a href="https://github.com/google/spatial-media/releases/tag/v2.0" rel="nofollow noreferrer">https://github.com/google/spatial-media/releases/tag/v2.0</a></p>

CC BY-SA 4.0
2021-02-10T17:01:57.720Z
2021-02-10T17:01:57.720Z
Atreju
<p>I have a video (MP4/AVC) that is in 2:1 aspect ratio and uses equirectangular projection for a spherical video (often called &quot;360° video&quot;).</p>
<p>VLC can play spherical videos since version 3.0.0. Through conversion the video in question has &quot;lost&quot; the required metadata to be recognized as a spherical video with equirectangular projection.</p>
<p>I'm not sure which and what metadata to add to the video, in order to fix the video file, such that it is correctly recognized as a spherical video.</p>
<p>This is what I've tried so far, but it didn't work:</p>
<pre><code>ffmpeg -i input.mp4 -c copy -metadata ProjectionType=equirectangular fixed.mp4
</code></pre>
<p>Unfortunatelly, this didn't fix the issue.</p>
<p>After googling around, I was led to believe, that I may fix the issue with MP4Box off the <a href="https://gpac.wp.imt.fr/" rel="nofollow noreferrer">GPAC</a> project, however I'm not sure where to start. I was led to believe it's not just fixable with simply adding metadata, instead I'd need to change the container types?</p>
<p>In any event, I'd like a solution that uses <code>ffmpeg</code> and/or <code>MP4Box</code> as those tools are readily available to me.</p>
<p><em>(this question has been originally posted on unix.SE, but I had no answers or comments there, and I figured it's more in line with this than using Linux)</em></p>

<ffmpeg><file-formats><360video>
How to turn video with spherical, equirectangular projection into an actual "360° video" playable with VLC?
polemon
# How to turn video with spherical, equirectangular projection into an actual "360° video" playable with VLC?

(Asked by: username_0 on 2020-07-20)

I have a video (MP4/AVC) that is in 2:1 aspect ratio and uses equirectangular projection for a spherical video (often called "360° video").
VLC can play spherical videos since version 3.0.0. Through conversion the video in question has "lost" the required metadata to be recognized as a spherical video with equirectangular projection.
I'm not sure which and what metadata to add to the video, in order to fix the video file, such that it is correctly recognized as a spherical video.
This is what I've tried so far, but it didn't work:
ffmpeg -i input.mp4 -c copy -metadata ProjectionType=equirectangular fixed.mp4

Unfortunatelly, this didn't fix the issue.
After googling around, I was led to believe, that I may fix the issue with MP4Box off the GPAC project, however I'm not sure where to start. I was led to believe it's not just fixable with simply adding metadata, instead I'd need to change the container types?
In any event, I'd like a solution that uses ffmpeg and/or MP4Box as those tools are readily available to me.
(this question has been originally posted on unix.SE, but I had no answers or comments there, and I figured it's more in line with this than using Linux)

**Tags:** ffmpeg, file-formats, 360video


---

## 1 answers

### Answer by username_1 on 2021-02-10. Score: 0

you can use Spatial Media Metadata Injector to fix the metadata <https://github.com/google/spatial-media/releases/tag/v2.0>


---

