Announcing the new Datavyu v1.3.6 with enhanced features and transcription support!

Hello,

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

ccp10
21114
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 ♦♦
381126
accept rate: 12%

Shohan,

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

ccp10
21114
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×46
×24
×4
×3

question asked: 01 Sep '15, 17:54

question was seen: 2,624 times

last updated: 02 Sep '15, 10:06

powered by OSQA