Large Panorama to Panning Video

Viewed 989

What would be the most efficient way to create a video from a panoramic image that would for example have the size: 5000 width x 600 height px?

I created this GIF image that would explain things a bit better. Imagine that the video would be inside the red border. So the video would potentially be panning from left to right.

GIF explanation

2 Answers

Dynamically Crop a panorama video to 1280x720 with timestamp settings from a detector:

ffmpeg script: crop=1280:ih:'func_cropstartx':0
func_cropstartx:
cropstartx[0] = location[0].x
for every location 0 < i <= N:
    cropstartx[i] = if (gte(t\, location[i].time)\, location[i].x\, cropstartx[i-1]);

Use a sorted list of setpoints
Example:

crop = 1280:ih:'if(gte(t\,10)\,600\,if(gte(t\,8)\,400\,if(gte(t\,6)\,300\,if(gte(t\,4)\,200\,100))))' : 0
Related