Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 560 Bytes
2cae2a9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import { createTextOverlayImage } from "./createTextOverlayImage.mts";
import { addImageToVideo } from "./addImageToVideo.mts";
export async function addTextToVideo() {
const inputVideoPath = "/Users/jbilcke/Downloads/use_me.mp4"
const { filePath } = await createTextOverlayImage({
text: "This tech is hot 🥵",
width: 1024 ,
height: 576,
})
console.log("filePath:", filePath)
/*
const pathToVideo = await addImageToVideo({
inputVideoPath,
inputImagePath: filePath,
})
console.log("pathToVideo:", pathToVideo)
*/
} |