INNER CODE UNIT · TypeScript
getTransitionToSource
mifi/editly · src/index.ts:289
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)
outProcess.catch((err) => {
outProcessError = err;