Log in

View Full Version : Plotting csv files


alexh110
13th December 2008, 19:15
Hi, I wondered whether there is any way to use AviSynth to plot a csv array?

I have a 3-column csv file, with the first two columns containing the x and y coordinates.

The third column contains the luminance values I would like to plot.

If not with AviSynth; are there any free photoshop-type programs that will do this?

Leak
13th December 2008, 23:22
If not with AviSynth; are there any free photoshop-type programs that will do this?
I would be surprised if PhotoShop supported this; your request sounds more like a job for MS Excel, OO.org Calc or perhaps gnuplot...

kemuri-_9
14th December 2008, 02:09
well... some kind of avisynth filter (though would probably need to be developed) could do it...

but it would be more feasible to do it through one of the choices Leak mentioned,
with OO.org (OpenOffice) Calc and gnuplot being the free options.

alexh110
14th December 2008, 13:49
Thanks very much I'll give them a go.

alexh110
14th December 2008, 14:09
OK first problem! I'm using Open Office Calc; but I can't figure out a way to plot the data in the way I wanted to (as described above).

alexh110
14th December 2008, 14:16
N.B. I've now converted the csv file into an xls file for convenience.

alexh110
14th December 2008, 14:29
Looks like it's gonna' take me forever to learn Gnuplot!
Could someone just tell me what command lines to type to achieve what I want?

talen9
14th December 2008, 21:36
Have a look at Gnuplot web site (http://www.gnuplot.info/), there's a ton of demos, tutorials and documentation :)

CaqKa
20th March 2011, 22:34
what about if the data is csv data from gps, with speed data etx, that i would like to overlay over the video, that i was driving and at the same time recording the gps data?

so i am talking, i have a video of me snowboarding, and also csv data from my tracks (google android application), that i want to overlay over the video.

any suggestions how can i access the csv in avisynth?

Sir BlunderBrain
21st March 2011, 13:42
Take a look at the ConditionalReader filter http://avisynth.org/mediawiki/ConditionalReader. It won't read .csv files directly, but it does provide a way to read the value of a variable from an external file for each frame. You might be able to combine that with <somefilter> that overlays the relevant data on your video.