Hello,
I’m trying to create multiple clips with custom begin and end times. I have a whole bunch of .eaf files, each of which contains a particular word of interest. These are all long videos (e.g. an hour each), and what I’d like to end up with is a set of short clips containing only the (approximately) 30 seconds surrounding the word of interest (i.e. a span starting 15 seconds prior to the token and ending 15 s after). I’ve approached this so far in two ways but have encountered problems with both.
- “export multiple files as” + “create multiple media clips”
Using the instructions at: https://www.mpi.nl/corpus/html/elan/ch01s09s02.html I created a .csv file listing all the annotations in all the videos. This seems to work fine. I went to create multiple media clips and called the .csv file. A process report is generated, but the clipped files are nowhere to be seen! This is the first problem; however, I’m not sure that the “export multiple files as” + “create multiple media clips” method will actually be able to solve my problem, as I am ultimately looking for clips longer than a single annotation. (My plan was that I could eventually edit the .csv file to reflect my desired durations and begin and end times, and then re-run “create multiple media clips”, but I’m not sure this is even a possibility.)
- pympi package using “extract” function:
I’ve tried to create my own script in Python (to be specific, I had programmer friends do it) using the pympi package http://dopefishh.github.io/pympi/Elan.html. This script calls a .csv file that has the file paths and desired begin and end times of the clips. However, there seem to be compatibility issues there, as I use the most up-to-date version of ELAN and the package is for ELAN 2. I’ve had no luck finding another Python package with similar functionality.
If you have any advice on how to solve the problem, using either of these possible solutions or in any other way, I would appreciate it very much! I can clip the files by hand but I think it will take 40 hours…
Thank you!
Emily
