Announcing the new Datavyu v1.4.0 with enhanced features, bug fixes, and a new video player for Windows!

We are in the process of migrating away from this forum—feel free to browse existing help topics. For new support inquiries, please reach out to us via email at [email protected]


I'm wondering if there is a way to use the built-in export function on multiple files.

The formatting the built-in export uses is exactly what I'm looking for, just with multiple files. The tutorial in the scripting section creates a file that looks different and did not work for me.

Is there a ruby file somewhere in the application data that performs this export? If so, I can write my own script that will iterate through a folder and perform the logic to create an export for each file.

If there is anymore information I can provide, please let me know.

Thank you!!

asked 01 Sep '15, 17:54

ccp10's gravatar image

accept rate: 0%

There is a Ruby file that implements the frame-by-frame export but it needs tweaking to work with video files that are not 29.97 FPS... and it might not be as up-to-date as the internal function. Here's a link to the file: export by frame script

I'm not sure how comfortable you are with Java and Ruby, but if you just need a reference into the internal exporting routines, check out the GitHub page for the exporting class : exporting Java class

Here's some sample Ruby code to make use of the exporting class:

import org.datavyu.controllers.ExportDatabaseFileC;

outfn1 = File.expand_path("~/Desktop/export.csv") outfn2 = File.expand_path("~/Desktop/export_by_frame.csv")

exporter = ExportDatabaseFileC::new() exporter::exportAsCells(outfn1, $db) exporter::exportByFrame(outfn2, $db)

If you wanted to run it over multiple files, you would just put the relevant parts inside a loop with a loadDB().

Again, I'm not sure how experienced you are with programming so if any of this doesn't make sense, don't hesitate to ask!

permanent link

answered 01 Sep '15, 20:24

Shohan%20Hasan's gravatar image

Shohan Hasan ♦♦
accept rate: 14%


Thank you so much for your reply! This is exactly what I was looking for, and I was able to get the script working immediately.

I really appreciate your help!

permanent link

answered 02 Sep '15, 10:06

ccp10's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 01 Sep '15, 17:54

question was seen: 3,700 times

last updated: 02 Sep '15, 10:06

powered by OSQA