databrary / datavyu

Desktop video coding/annotation tool
http://datavyu.org/
GNU General Public License v3.0
26 stars 18 forks source link

"videos_to_column" produces incorrect onset time #294

Open sh0sh1n opened 5 years ago

sh0sh1n commented 5 years ago

Describe the bug Using the Ruby API function to save Controller tracks information sets a negative start time for the first track. Should be 0.

To Reproduce Steps to reproduce the behavior:

  1. Open a spreadsheet file with videos starting at different positions
  2. Run script with function: set_column(videos_to_column)

Expected behavior Start time of first track should be non-negative.

Desktop (please complete the following information):

sh0sh1n commented 5 years ago

Debugged this and the onset time reported is correct...it just happened to be a negative value which did not get converted to an appropriate timestamp; e.g., -3840ms is set as -1:59:56:160. It seems to subtract the negative time from 2 hours.