Ffmpeg PNG image sequence into 360 video

328 views Asked by At

I'm trying to make a PNG sequence I got from blender(already in equirectangular format, same properties all files) into 360 equirectangular video for projection mapping. My files have 2 step frame rate resulting in file names such as 002-004-006.... How is this done with ffmpeg? I'm total noob with this program :) Thank you.

I checked ffmpeg website, however for 360 format with filenames that does not have one step like 01-02-03, instead 2 steps like 02-04-06, I did not really understand how to convert my 7000 PNG images into 360 video.

1

There are 1 answers

1
Fabian On BEST ANSWER

This may not answer your question quite right, but there is a small Python program from Google on GitHub, the "Spatial Media Metadata Injector", which simply sets some metadata so that your (equirectangular) rendered video is played in the media player or on YouTube as a 360° video.

With this ffmpeg command you can convert your PNG image sequence into a video beforehand:

ffmpeg -start_number 2 -i %03d.png -c:v libx264 -r 24 -pix_fmt yuv420p video.mp4

Unfortunately, I don't know how to select only every second number as the file name.