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:Jump to 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.
21 Replies
cc @Luis - any suggestions?
Hello @Gaurav Chadha any help here? Thank you
Hi @Frankie, which one of the ffmpeg nodes are you using or are you using a custom node for this?
Hello @Luis I’m using a custom node
I see, would you mind sharing the node here or opening an in-app support ticket so I can further help?
Okay sending the code here now
Here you go @Luis
Ok thanks I’ll check it out
I will be looking forward to your response
Hey @Luis don’t worry I figured the font thing out
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
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.
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.
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?
Sure, here you go @Luis
I will be looking forward to your response. Thank you
Great thank you
Hey, when sharing the node can you copy it's entire config like from here for example where you see the copy option?
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.
Oh alright. Here you go @Luis
Alright, will implement right away
Ok great, just let us know if you need further help.