Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting path for file crashes when that file appears multiple times in PATH. #36

Closed
Gertm opened this issue Oct 12, 2019 · 1 comment
Closed

Comments

@Gertm
Copy link

Gertm commented Oct 12, 2019

I tried this on Windows 10 and get this result:


C:\ProgramData\chocolatey\bin\ffprobe.exe
C:\ProgramData\chocolatey\lib\ffmpeg\tools\ffmpeg\bin\ffprobe.exe

panic: error executing ([-i D:\Users\Gert\Videos\Don Syme - Keynote - F# Code I Love _ Lambda Days 2019-MGLxyyTF3OM.mp4 -print_format json -show_format -show_streams -show_error]) | error: exec: "C:\\ProgramData\\chocolatey\\bin\\ffprobe.exeC:\\ProgramData\\chocolatey\\lib\\ffmpeg\\tools\\ffmpeg\\bin\\ffprobe.exe": file does not exist

Changing the configuration function could help:

ffmpeg := strings.Replace(strings.Split(outFFmpeg.String(), "\n")[0], utils.LineSeparator(), "", -1)
fprobe := strings.Replace(strings.Split(outProbe.String(), "\n")[0], utils.LineSeparator(), "", -1)

But I can't test on Linux or Mac right now.

@xfrr
Copy link
Owner

xfrr commented Apr 3, 2020

Fixed on f764517

Thanks.

@xfrr xfrr closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants