Skip to content

Simple Python script for making video clips of things you've tagged using the ELAN free coding software.

License

Notifications You must be signed in to change notification settings

MatthewRueben/elan-video-clipper

Repository files navigation


INTRODUCTION

This is a tool for extracting video clips using codings made in ELAN. If you have done video coding in ELAN and would like to make video clips of, say, all the codings in a certain Tier, then this is the tool for you. The tool is pretty simple and inflexible right now, but you're welcome to add functionality or fork it to make your own custom version.


GETTING READY

You will need a video and a file of ELAN codings. The ELAN file can not be in the .eaf format, but rather needs to be the tab-delimited text format that you can export from ELAN. To convert, just open your .eaf file in ELAN and go File -> Export As... -> Tab-Delimited Text file.

Right now the video must be of .m4v format. Someone should make this better.


COMMAND LINE WORKFLOW (paraphrased, not actual wording)

  1. Run the script: python make_video_clips_from_codings.py ./path/to/codings.txt ./path/to/video.m4v
  2. "Which tier name?" User> Hug_Type
  3. "That tier has XX occurrences in this video."
  4. "Which code for that tier? (or hit RETURN to get all codes)" User> Guest Over
  5. "That tier has XX occurrences for that code."
  6. <lists the codings you've selected>
  7. "Would you like to make video clips of these? (y/n)" User> y
  8. "Making videos..."

AN EXAMPLE

See the file README-example-usage.txt for a full workflow from my (MatthewRueben's) command line.

About

Simple Python script for making video clips of things you've tagged using the ELAN free coding software.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages