@@ -4,19 +4,16 @@ import (
44 "github.com/bcc-code/bcc-media-flows/services/rclone"
55 "github.com/bcc-code/bcc-media-flows/services/telegram"
66 "github.com/bcc-code/bcc-media-flows/utils"
7- "path/filepath"
87
98 "github.com/bcc-code/bcc-media-flows/activities"
109 "github.com/bcc-code/bcc-media-flows/common"
1110 wfutils "github.com/bcc-code/bcc-media-flows/utils/workflows"
1211 "go.temporal.io/sdk/workflow"
1312)
1413
15- // VXExportToPlayout is a workflow that exports a VX to the playout system
16- // It transcodes the video to XDCAM HD 50Mbit/s and muxes it with the audio and subtitle files
17- func VXExportToPlayout (ctx workflow.Context , params VXExportChildWorkflowParams ) (* VXExportResult , error ) {
14+ func VXExportToXDCAM (ctx workflow.Context , params VXExportChildWorkflowParams ) (* VXExportResult , error ) {
1815 logger := workflow .GetLogger (ctx )
19- logger .Info ("Starting ExportToPlayout " )
16+ logger .Info ("Starting ExportToXDCAM " )
2017
2118 ctx = workflow .WithActivityOptions (ctx , wfutils .GetDefaultActivityOptions ())
2219
@@ -53,25 +50,13 @@ func VXExportToPlayout(ctx workflow.Context, params VXExportChildWorkflowParams)
5350 return nil , err
5451 }
5552
56- // Rclone to playout
57- destination := "playout:/tmp"
58- if err != nil {
59- return nil , err
60- }
53+ destination := "brunstad:/Delivery/XDCAM"
6154 err = wfutils .RcloneCopyDir (ctx , params .OutputDir .Rclone (), destination , rclone .PriorityNormal )
6255 if err != nil {
6356 return nil , err
6457 }
6558
66- err = wfutils .Execute (ctx , activities .Util .FtpPlayoutRename , activities.FtpPlayoutRenameParams {
67- From : filepath .Join ("/tmp/" , muxResult .Path .Base ()),
68- To : filepath .Join ("/dropbox/" , muxResult .Path .Base ()),
69- }).Get (ctx , nil )
70- if err != nil {
71- return nil , err
72- }
73-
74- notifyExportDone (ctx , telegram .ChatOslofjord , params , "playout" , '🟩' )
59+ notifyExportDone (ctx , telegram .ChatOslofjord , params , "xdcam" , '🟩' )
7560
7661 return & VXExportResult {
7762 ID : params .ParentParams .VXID ,
0 commit comments