Name: SceneDB
Owner: UW eScience Institute
Description: Database for OOI CamHD, where video files are indexed by scenes
Created: 2016-05-13 09:16:58.0
Updated: 2016-06-30 21:30:46.0
Pushed: 2016-11-15 21:41:39.0
Homepage: http://uwescience.github.io/SceneDB/
Size: 6707
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Database for OOI CamHD, where video files are indexed by scenes
libraries/tools:
python modules
boto
gcs_oauth2_boto_plugin
psycopg2
Create the postgresql database
art the postgresql server
art_postgres.sh
eate the ashdm database tables
on create_db.py
This will create two tables: scenes
and scene_bounds
.
These instructions assume the videos are already in a Google Storage bucket called escience_camhd
.
To be able to read/write to Google Storage buckets, be sure you are authenticated. If you are using the default service account and that service account has permission to access your bucket, then your instance terminal session will be authenticated already.
scene_bounds
for a set of videosThe following command processes* all the videos to find their scene bounds.
on index_videos.py \
-src-uri gs://escience_camhd/files/RS03ASHS/PN03B/06-CAMHDA301/2016/04/04 \
-find-scene-bounds
* Right now the processing is a stub that inserts hardcoded bounds for each video.
The following command will take all the mp4 files in gs://escience_camhd/files/RS03ASHS/PN03B/06-CAMHDA301/2016/04/04
and index them into the scenes specified in the scene_bounds
table.
on index_videos.py \
-src-uri gs://escience_camhd/files/RS03ASHS/PN03B/06-CAMHDA301/2016/04/04 \
-dst-uri gs://bdmyers_escience_camhd/files/RS03ASHS/PN03B/06-CAMHDA301/2016/04/04/scenes
The overall result is new rows in the scenes
table and new video files in gs://bdmyers_escience_camhd/files/RS03ASHS/PN03B/06-CAMHDA301/2016/04/04/scenes
.
For now you can think of a query as being specified by two things: a SQL query that returns URLs of scenes and code that does something with each scene file.
See an example query of the ashdm database in example_query.py
.
Run the postgresql shell with ./ashdm_psql.sh