Frankie
Frankie7mo ago

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.
Jump to solution
21 Replies
Harini
Harini7mo ago
cc @Luis - any suggestions?
Frankie
FrankieOP7mo ago
Hello @Gaurav Chadha any help here? Thank you
Luis
Luis7mo ago
Hi @Frankie, which one of the ffmpeg nodes are you using or are you using a custom node for this?
Frankie
FrankieOP7mo ago
Hello @Luis I’m using a custom node
Luis
Luis7mo ago
I see, would you mind sharing the node here or opening an in-app support ticket so I can further help?
Frankie
FrankieOP7mo ago
Okay sending the code here now
Frankie
FrankieOP7mo ago
Here you go @Luis
Luis
Luis7mo ago
Ok thanks I’ll check it out
Frankie
FrankieOP7mo ago
I will be looking forward to your response Hey @Luis don’t worry I figured the font thing out
Harini
Harini7mo ago
Oh thanks good to hear @Frankie if you have any feedback or screenshot you what to share if others might find it useful if would be great and we can improve our documentation based on it
Frankie
FrankieOP7mo ago
Hello @Harini Oh yes I do have feedback. So apparently I noticed the font is just temporarily installed. Below is a list of font that's available in the Node.js environment. This explains why I'm able to only change the font to DejaVu Serif becasue is already available in the environment. Please I need a solution to be able to install more fonts and it will be permanently installed. You can see all the fonts I installed are no longer available, so I will have to go and install them back again. Which after a while they get cleared.
No description
Frankie
FrankieOP7mo ago
Hello @Luis please can you look into this? So we can be able to able to install custom fonts. I have font installer node which I'm able to use to install fonts, but the fonts are temporarily installed for a short time.
Luis
Luis7mo ago
Hey @Frankie I see, maybe we can try storing the fonts somewhere persistent like in BuildShip storage. Looking into this now. Are you able to share your updated workflow?
Frankie
FrankieOP7mo ago
Sure, here you go @Luis
Frankie
FrankieOP7mo ago
I will be looking forward to your response. Thank you
Luis
Luis7mo ago
Great thank you
Luis
Luis7mo ago
Hey, when sharing the node can you copy it's entire config like from here for example where you see the copy option?
No description
Solution
Luis
Luis7mo ago
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.
Frankie
FrankieOP7mo ago
Oh alright. Here you go @Luis
Frankie
FrankieOP7mo ago
Alright, will implement right away
Luis
Luis7mo ago
Ok great, just let us know if you need further help.