Relative path to folder in project folder.

Hello,

I would like to use ffmpeg plugin to render mpeg movies directly from Movie render Quee.
All works fine , i set path of ffmpeg.exe in project settings.
What i want is , i want to put ffmpeg folder inside project directory and set executable path with relative path rather then absolute path.
As you can see in attached image , currently path is C:/Program Files/ffmpeg/bin/ffmpeg.exe
i want something likethis
{GameDirectory}/ffmpeg/bin/ffmpeg.exe

When new artist join the project , i dont need them to install ffmpeg and use it directly from the game project directory.
Hope its clear.
Thanks.

1 Like

Any update on this by chance?

Did you ever find a solution to this? I’m having the same issue trying to use it in a packaged application.

hey yes, i made a pluginfor that , just tell unreal to use specific path at startup

into init.py

import os
thisfolder = os.path.split( os.path.abspath(file) )[0].replace(‘\’, ‘/’)
ffmpeg_path = ‘{}/../bin’.format(thisfolder)
ffmpeg_path = os.path.abspath(ffmpeg_path)
os.environ[‘PATH’] = ‘{};{}’.format(os.environ[‘PATH’], ffmpeg_path)
print (os.environ[‘PATH’])