Skip to content

Commit

Permalink
Merge pull request #960 from mipops/dvpackager-ffmpeg-choice
Browse files Browse the repository at this point in the history
prefer to use a gui-bundled ffmpeg
  • Loading branch information
dericed authored Jan 13, 2025
2 parents 7d8d11f + 1f6dcc9 commit cb87e03
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/dvpackager
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,17 @@ _report(){
}

_get_ffmpeg_path(){
if [[ -x '/usr/lib/dvrescue/bin/ffmpeg' ]] ; then
if [[ -x '/Applications/dvrescue.app/Contents/Helpers/ffmpeg' ]] ; then
FFMPEG_PATH='/Applications/dvrescue.app/Contents/Helpers/ffmpeg'
elif [[ -x '/usr/lib64/dvrescue/bin/ffmpeg' ]] ; then
FFMPEG_PATH='/usr/lib64/dvrescue/bin/ffmpeg'
elif [[ -x '/usr/lib/dvrescue/bin/ffmpeg' ]] ; then
FFMPEG_PATH='/usr/lib/dvrescue/bin/ffmpeg'
elif [[ -x '/cygdrive/c/Program Files/dvrescue/ffmpeg.exe' ]] ; then
FFMPEG_PATH='/cygdrive/c/Program Files/dvrescue/ffmpeg.exe'
else
FFMPEG_PATH="$(which ffmpeg)"
_report "dvpackager would prefer to use an ffmpeg bundled with the DVRescue GUI, but can't find one. We'll use ${FFMPEG_PATH} for now, but suggest installing/updating the DVRescue GUI."
fi
if [[ ! -x "${FFMPEG_PATH}" ]] ; then
_report "ffmpeg can't be found, please install of rerun by ffmpeg's path specified with -F"
Expand Down

0 comments on commit cb87e03

Please sign in to comment.