-
Notifications
You must be signed in to change notification settings - Fork 3
Collection Management
Loris Sauter edited this page Nov 30, 2020
·
2 revisions
Work in Progress
While there are some frontend features to work with the media collection for admins (ie users with the role ADMIN
),
most steps are performed using the CLI.
These steps are required to have a working media collection in DRES:
- Create the collection in the CLI
DRES> collection create -n NAME -d DESCRIPTION -p PATH
where
-
NAME
is the human readable name of the collection, must be unique system wide -
DESCRIPTION
is an optional description of the collection -
PATH
is the path to the collection's root folder
- Import the collection
DRES> collection scan -c NAME -vt mp4 -it jpg
This step scans the PATH
property of the collection for files with the matching extensions, video items are created for the given -vt
(video type), in the example command above this is mp4
. Similarily, image items are created based on the -it
(image type) findings, in this case jpg
s.
Addtitional Step for Videos
The submission system expects segment information for video items. These are imported in a secondary step using the command:
DRES> collection importSegments -c NAME -f FILE
FILE
is the path to a csv file with the format:
video,name,start,end
with:
-
video
being the filename of the video items, found during the scan earlier -
name
is the name for the gcurent -
start
is the frame number at the beginning of this segment (0 based) -
end
is the frame number at the end of this segment (0 based)