Kethsar / ytarchive

Garbage Youtube livestream downloader
MIT License
1.08k stars 87 forks source link

Support providing custom ffmpeg path #69

Closed noaione closed 1 year ago

noaione commented 2 years ago

Since the program automatically try to find ffmpeg from PATH, is it possible for user to provide their own ffmpeg path with a parameter like --ffmpeg-path or something like that. In case the user does not put ffmpeg on system PATH.

Would be something like this:

ytarchive --ffmpeg-path "/home/<username>/bin/ffmpeg" https://youtu.be/XXXXXXX

I would like to help make a PR but I don't understand go very much.

Kethsar commented 2 years ago

Yeah, that's easy enough to add support for. Though if you are on Linux it would be fairly easy to add a directory to your PATH as well. For instance, I have the following in my .bash_profile

if [ -d "$HOME/bin" ] ; then
    PATH="$PATH:$HOME/bin"
fi