Question

At this moment i'm using php to convert a stats logs (arround 40k rows) to png graphics (bars, animations) and then using ffmpeg to convert the sequential images (20fps) to video,

a single request of this animation last arround 10 mins on a 2x3.06ghz intel core dedicated server and cost arround 2gb of disk space for png files and 500Mb for the video file

My first trouble is with my hdd space, just 10 users can ruin my 40Gb hdd in few hours...

So i wonder a way to grab each png frame on local storage (maybe generating first the image on a canvas) and then merge all frames togheter (motionjpg?)

I found this javascript plugin but even works for me http://ushiroad.com/mjpeg/

Était-ce utile?

La solution

Finally I solved this with ming! I'm generating animations from 60Kb row json in just 0.7secs with a final swf video of 300Kb

A swf file can then be imported by practically every editing video software out there.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top