graph - How to convert a time series data into a live streaming video -


there event going on..it goes 2 hours , @ each second creates new series data. how can take data(x=[],y=[]),convert graph , convert video live stream , see it? possible?

i have never done seems possible.

first, create png graph using http://www.gnuplot.info.

gnuplot portable command-line driven graphing utility linux, os/2, ms windows, osx, vms, , many other platforms. [...] created allow scientists , students visualize mathematical functions , data interactively, has grown support many non-interactive uses such web scripting.

you can create script routinely updates png new data.

there node.js module interface gnuplot. https://www.npmjs.com/package/plotframes

then, use ffmpeg create hls stream looping image on , on again.

ffmpeg -loop 1 -r 30000/1001 -i graph_960x540.png -an -s 960x540 -r 30000/1001 -c:v libx264 -crf 10 -maxrate 900k -b:v 900k -profile:v baseline -bufsize 1800k -pix_fmt yuv420p -hls_time 2 -hls_list_size 0 -hls_segment_filename 'png2hls/file%03d.ts' png2hls/index.m3u8 

however, video stream required display graph? why not display image , use javascript update image new graphs produced?

cheers.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -