ytarchive icon indicating copy to clipboard operation
ytarchive copied to clipboard

Support providing custom ffmpeg path

Open noaione opened this issue 4 years ago • 1 comments

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.

noaione avatar Dec 26 '21 04:12 noaione

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

Kethsar avatar Dec 26 '21 04:12 Kethsar