Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[TRI-4524] The ffmpeg extension installs 5.1.6 (not 7.x) #1688

Copy link
Copy link
@matt-aitken

Description

@matt-aitken
Issue body actions

This is because we install ffmpeg using apt-get and it only installs the latest version that's connected to the base image you use (as far as I can gather). We call apt-get update, but that doesn't help…

Instead a different approach needs to be taken. You can create this ffmpeg7 extension yourself by creating this file in your codebase, then importing the ffmpeg() function into the build extensions in your trigger.config file.

import { BuildExtension } from "@trigger.dev/build";

export function ffmpeg7(): BuildExtension {
  return {
    name: "ffmpeg-7",
    onBuildComplete(context) {
      if (context.target === "dev") {
        return;
      }

      context.logger.debug("Adding ffmpeg 7");

      context.addLayer({
        id: "ffmpeg",
        image: {
          instructions: [
            "RUN apt-get update && apt-get install -y --no-install-recommends wget xz-utils && apt-get clean && rm -rf /var/lib/apt/lists/*",
            "RUN wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz -O ffmpeg.tar.xz && tar xvf ffmpeg.tar.xz -C /usr/bin --strip-components=1 --no-anchored 'ffmpeg' 'ffprobe' && rm ffmpeg.tar.xz",
          ],
        },
        deploy: {
          env: {
            FFMPEG_PATH: "/usr/bin/ffmpeg",
            FFPROBE_PATH: "/usr/bin/ffprobe",
          },
          override: true,
        },
      });
    },
  };
}

TRI-4524

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.