Send opencast media packages to remote pc folder

92 views
Skip to first unread message

Giuseppe Amodeo

unread,
Mar 23, 2021, 7:50:17 PM3/23/21
to Opencast Users
Hello everyone, 

what is the quickest and easiest way to send the opencast recordings to a folder on a remote PC? Would it be possible to implement a workflow for this operation in the admin UI tasks?

Thanks & Kind regards,
Giuseppe

Greg Logan

unread,
Mar 23, 2021, 8:06:30 PM3/23/21
to Opencast Users
Hi Giuseppe,

I would think something like the copy workflow operation handler[1] or the zip handler[2] and an nfs mount or something similar would be the easiest.

G



--
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@opencast.org.

Giuseppe Amodeo

unread,
Mar 24, 2021, 5:28:04 AM3/24/21
to Opencast Users, Greg Logan
Hi Greg,

thanks for the advice. In opencast documentation is written, "The easiest way to test a workflow is to just put it into the workflow folder where it will be picked up by Opencast automatically and will be available in Opencast a few seconds later."
Does this mean that if I create a new workflow and copy it to the workflow folder, it appears automatically in the adminUI, or better in the task that I can choose for a single event?

Thank you for the support.

Lars Kiesow

unread,
Mar 24, 2021, 11:07:20 AM3/24/21
to us...@opencast.org
You need to tag them properly for them to show up in the admin
interface, but other than that, the answer is yes.

Important tags are:

archive Shows in „Start Tasks“
upload Show in “new event” → upload
schedule Show in “new event” → schedule
editor Shows in editor

–Lars

Giuseppe Amodeo

unread,
Mar 28, 2021, 4:36:34 PM3/28/21
to us...@opencast.org
Dear Greg, dear Lars,

I followed your valuable advice and came up with this new.XML file, which represents the workflow I want to implement. Basically, I started from the "Offload" workflow and added the copy workflow operation handler. Am I on the right track? I don't quite understand what I have to enter for the configuration key "source-flavors". Currently, the workflow is shown in the Admin UI "Start Task" but doesn't work. I would appreciate your feedback.
new.xml

Greg Logan

unread,
Mar 29, 2021, 3:17:23 PM3/29/21
to Opencast Users
Hi Giuseppe,

Yes, you're very close.  The source-flavors config is looking for something like presenter/source.  Take a look at a recording's assets in your admin UI (Hamburger menu in the Actions column -> Assets -> Media), which will show you what files are flavoured with what.  If you want all of the input media, you probably want presenter/source and presentation source.  You can put both of those in the source-flavors config with something like <configuration key="source-flavors">presentation/source,presenter/source</configuration>, which can be shortened to <configuration key="source-flavors">*/source</configuration>

The other catch you may be running into is that the target directory must be writable by the user Opencast is running under.

G

Giuseppe Amodeo

unread,
Mar 31, 2021, 3:49:02 AM3/31/21
to us...@opencast.org
Hi Greg, 

thanks for the reply. I implemented your suggestions in the file attached (new_2), but the workflow gives me back always "Processing failure". Can you please take a look at the file and tell me where I'm going wrong/what I'm forgetting?
new_2.xml

Giuseppe Amodeo

unread,
Mar 31, 2021, 9:43:06 AM3/31/21
to us...@opencast.org
Hi Greg,

please ignore my last message, the workflow works, I just forgot your suggestion about the writability of the target directory. Now I come to the next step in my workflow, I want to give the file copied to my folder a different name. Can I implement this step directly in the workflow? Another question: if I want to copy other assets of the mediapackage (e.g. catalogues, attachments, etc.) with my workflow, I just have to add the corresponding Asset Type in the configuration key "source-flavors"?

Greg Logan

unread,
Mar 31, 2021, 10:50:18 AM3/31/21
to Opencast Users
Hi Giuseppe,

Adding additional flavours will get you more files.  You can try just a single * as the flavour, or */*.  I'm not 100% sure if that will match everything, but it probably should.

In terms of naming files, per [1] there is a target-filename config key.  Depending on what kind of names you want you might need multiple copy workflow operation handlers.

G

Giuseppe Amodeo

unread,
Apr 13, 2021, 10:06:54 AM4/13/21
to Opencast Users, Greg Logan
Hi Greg,

here I come with a new question. Is it possible to change/modify the UID of an event? I implemented a zip handler workflow to save the event media package, but I get a folder named as the UID of the event, so it is difficult to understand which event the folder refers to.

Reply all
Reply to author
Forward
0 new messages