1 | ===== Video Processing in DSpace =====
|
---|
2 |
|
---|
3 | ==== Installation Instructions ====
|
---|
4 |
|
---|
5 | 1. Copy the VideoFilter into place:
|
---|
6 |
|
---|
7 | cd <greenstone>/ext/video-and-audio/opt/DSpace
|
---|
8 | cp VideoFilter.java <dspace>/dspace-source/dspace-api/src/main/java/org/dspace/app/mediafilter/VideoFilter.java
|
---|
9 |
|
---|
10 | 2. Replace default ItemUpdate application with one that supports the 'noundo' flag (otherwise you're working directory will fill up with undo files for every video file processed):
|
---|
11 |
|
---|
12 | cd <greenstone>/ext/video-and-audio/opt/DSpace
|
---|
13 | cp ItemUpdate.java <dspace>/dspace-source/dspace-api/src/main/java/org/dspace/app/itemupdate/ItemUpdate.java
|
---|
14 |
|
---|
15 | 3. Configure the new plugin:
|
---|
16 |
|
---|
17 | cd <dspace>/dspace-source/dspace/config/
|
---|
18 | emacs dspace.cfg
|
---|
19 | ...
|
---|
20 | #Names of the enabled MediaFilter or FormatFilter plugins
|
---|
21 | filter.plugins = PDF Text Extractor, HTML Text Extractor, \
|
---|
22 | ...
|
---|
23 | Video Converter
|
---|
24 | #Assign 'human-understandable' names to each filter
|
---|
25 | plugin.named.org.dspace.app.mediafilter.FormatFilter = \
|
---|
26 | ...
|
---|
27 | org.dspace.app.mediafilter.VideoFilter = Video Converter
|
---|
28 | #Configure each filter's input format(s)
|
---|
29 | ...
|
---|
30 | filter.org.dspace.app.mediafilter.VideoFilter.inputFormats = MPEG2 Transport Stream
|
---|
31 | [ctrl][s] [ctrl][x]
|
---|
32 |
|
---|
33 | 4. Recompile DSpace and update installation
|
---|
34 |
|
---|
35 | cd <dspace>/dspace-source
|
---|
36 | mvn package
|
---|
37 | cd <dspace>/dspace-source/target/dspace-1.8.2-build/
|
---|
38 | ant update
|
---|
39 |
|
---|
40 | 5. Open the administrator's wed interface and add a new file format "MPEG2 Transport Stream" with the file extension "*.ts"
|
---|
41 |
|
---|
42 | 6. Still in the web interface, add your video files as raw TS (as exported from ReplayMe!) *or* use batch import to put in an entire directory tree as exported from Greenstone
|
---|
43 |
|
---|
44 | 7. Run the media filter from the command line to ingest video files properly (the -f forces rebuild - useful as previous media filter runs will mark documents as filtered and otherwise won't process them again):
|
---|
45 |
|
---|
46 | cd <dspace>/bin/
|
---|
47 | ./dspace filter-media -f
|
---|
48 |
|
---|
49 | (Note, you can add a "-i" argument with an internal identifier to reprocess a single video file - that's basically how parallel processing works, by calling this command, once per document, on multiple machines).
|
---|