You're viewing help content for version:

This section covers the following topics:

  • Overview
  • Prerequisites
  • Creating a Video Padding Workflow
    • Creating a Workflow
    • Using the Workflow in AEM Screens Project
  • Validating the Output for the Workflow


The following use case involves placing a video (example: 1280 x 720) in a channel where the display is 1920 x 1080 and having the video be placed at 0x0 (upper left). The video should not be stretched or modified in any way and do not use Cover in the video component.

The video will be displayed as an object from pixel 1 to pixel 1280 across and from pixel 1 to pixel 720 down and the rest of the channel will be default color.


Before you create a workflow for video, please complete the following prerequisites:

  1. Upload a video in Assets folder in your AEM instance
  2. Create an AEM Screens project (for example, TestVideoRendition) and a channel named (VideoRendering), as shown in the figure below:

Creating a Video Padding Workflow

To create a video padding workflow, you must create a workflow for your video and then use the same in your AEM Screens project channel.

Follow the steps below to create and use the workflow:

  1. Creating a Workflow
  2. Using the Workflow in an AEM Screens Project

Creating a Workflow

Follow the steps below to create a workflow for your video:

  1. Navigate to your AEM instance and click tools from side rail. Select Workflow --> Models to create a new model.

  2. Click Models --> Create --> Create Model. Enter the Title (as VideoRendition) and Name in the Add Workflow Model. Click Done to add the workflow model.

  3. Once you create the workflow model, select the model (VideoRendition), and click Edit from the action bar.

  4. Drag and drop the Command Line component to your workflow.

  5. Select the Command Line component and open the properties dialog box.

  6. Select the Arguments tab to enter the fields in the Command Line - Step Properties dialog box.

    Enter the format in the Mime Types (as video/mp4) and the command as (/usr/local/Cellar/ffmpeg -i ${filename} -vf "pad=1920:height=1080:x=0:y=0:color=black" to start the workflow in the Commands field.

    Please refer to the details on Mime Types and Commands in the note below.

  7. Select the workflow (VideoRenditions) and click Start Workflow from the action bar to open the Run Workflow dialog bbox.

  8. Select the path of your asset in the Payload (as /content/dam/huseinpeyda-crossroads01_512kb 2.mp4) and enter the Title (as RunVideo) and click Run.


Using the Workflow in an AEM Screens Project

Follow the steps below to use the workflow in your AEM Screens project:

  1. Navigate to an AEM Screens project (TestVideoRendition --> Channels -->VideoRendition).

  2. Click Edit from the action bar. Drag and drop the video that you initially uploaded to Assets.

  3. Once you have uploaded the video, click Preview to view the output.


Validating the Output for the Workflow

You can validate your output by:

  • Check preview of the video in the channel
  • Navigate to the /content/dam/testvideo.mp4/jcr:content/renditions/ in CRXDE Lite, as shown in the figure below:

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy