Skip to content

Outputs a hirarchy timeline CSV file with video cut times from a YT video.

Notifications You must be signed in to change notification settings

TimeLineAnnotator/video-cuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

USAGE

from process_file import process_local_file

filename = 'beethoven-op2-no1'
process_local_file(filename)

The video file to be processed must be in same directory from which the script is being run. The code above runs the cut detection algorithm and creates a folder named filename with:

  • hierarchies.csv: a CSV for importing a hierarchy timeline for the video cuts
  • labels.csv: placeholders for the instrument names
  • Images of the first frame of each cut, named Scene-<scene_num>-01.jpg
  • Scenes.csv: the original file generated by pyscenedetect

The "label" column of labels.csv must now be filled with the instrument most proeminent in each of the corresponding frame images. See the example for the abbreviations used.

Then, go to the directory of the piece:

cd <filename>

And create a new hierarchy timeline csv with the entered labels by running:

python insert_labels_into_hierarchies.py

About

Outputs a hirarchy timeline CSV file with video cut times from a YT video.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages