FFmpeg for Communities
FFmpeg is a solution for converting and streaming audio and video and, when installed, is used for proper transcoding of video assets as well as for AEM Communities' enablement feature.
FFmpeg is used in the author environment to obtain metadata for uploaded enablement resources as well as generate a thumbnail to display when listing the enablement resource.
FFmpeg should be installed on the server(s) hosting the AEM author instance(s).
- Go to https://www.ffmpeg.org
- Download the latest version of FFmpeg for your specific environment (Macintosh, Windows, or Linux)
- it is important to keep FFmpeg up-to-date due to security vulnerabilities in older versions
- Install FFmpeg following instructions for the OS.
- Make sure the FFmpeg executable is set in your system path.You should be able to run FFmpeg from any directory in your system.
- for example, ffmpeg -version
Configure FFmpeg Transcoding Service
By default, when FFmpeg is installed, multiple renditions are configured (transcodings) as per the DAM Update Asset workflow definition.
As the transcodings are CPU intensive, it is recommended to modify the list of target renditions. In most cases, transcoding is not necessary.
To modify the DAM Update Asset workflow, and in this example, to turn off transcoding:
- Sign into the author instance with administrative privileges
- From global navigation: Tools > Workflow > Models
- Locate DAM Update Asset
- Double-click to open the workflow for edit in the Classic UIResulting location: http://localhost:4502/cf#/etc/workflow/models/dam/update_asset.html
- Double-click the FFmpeg transcoding step to access the Step Properties dialog
- Under the Process tab:
- Arugments : Clear all entries to disable transcoding Default values: profile:firefoxhq,profile:hq,profile:flv,profile:iehq
- Select OK to close the Step Properties dialog
- Select Save to save the DAM Update Asset workflow(upper left corner)