FrankieF
BuildShip2y ago
22 replies
Frankie

Frankie - @Harini @Bhavya Please I’m rendering ...

@Harini @Bhavya Please I’m rendering a video with ffmpeg and I notice it doesn’t show the correct font , I have used both srt and ass file format but nothing. It only allows me to change to DejaVu Serif and no other font. Please kindly assist
Solution
So the reason why the fonts are only temporarily installed is because of the serverless environment the node is being executed in. Once the container is terminated, any changes made to the file system (like installing fonts) will be lost. A workaround is to always check before doing anything else if the font exists, if it does not then download and install again. Then you can continue with your regular ffmpeg process. Here's a sample workflow that does this.
Was this page helpful?