INNER CODE UNIT · TypeScript

getTransitionFromSource

mifi/editly · src/index.ts:287

  const getTransitionFromSource = async () =>
    getSource(getTransitionFromClip(), transitionFromClipId);
  const getTransitionToSource = async () =>
    getTransitionToClip() && getSource(getTransitionToClip(), getTransitionToClipId());

  try {
    try {
      outProcess = startFfmpegWriterProcess();

      let outProcessError;

      outProcess.on("exit", (code) => {
        if (verbose) console.log("Output ffmpeg exited", code);
        outProcessExitCode = code;
      });

      // If we write and get an EPIPE (like when ffmpeg fails or is finished), we could get an unhandled rejection if we don't catch the promise
      // (and meow causes the CLI to exit on unhandled rejections making it hard to see)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…