Digital Asset Management

Alternative Command Parameters

Updated: November 15, 2024

The Nuxeo Platform automatically converts the new Video files ingested in the system to produce mp4 and webM videos. The mp4 file will be used to display the playback.

From our experience and our customers feedback, the mp4 conversion used by default does not suit all video format given as an input, in particular video encoded with ProRes codec. In this case, the playback is not displayed in the browser. Therefore you need to override the default ffmpeg-tomp4 command with the following code:

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.video.convert.commandline.override">

  <require>org.nuxeo.ecm.platform.video.convert.commandline</require>

  <extension target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent"
    point="command">

    <command enabled="true" name="ffmpeg-tomp4">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -acodec aac -strict -2 -pix_fmt yuv420p -vcodec libx264 -r 29.97 -v 0 #{outFilePath}</parameterString>
      <winParameterString> -i #{inFilePath} -acodec aac -strict -2 -pix_fmt yuv420p -vcodec libx264 -r 29.97 -v 0 #{outFilePath}</winParameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

  </extension>

</component>