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
[BUG] : ffmpeg issue on MacOS #589
Comments
Installed ffmpeg with brew but still no luck. |
can u simple run ffmpeg in console ? share screenshot after executing |
Yes I can :) (iTerm2) |
Before I upstream the issue to Jaffree Library can you check once again after closing the program(refreshes Path if FFmpeg was added later) and restarting your pc |
Did with no success unfortunately. |
Ohk then, seems an Issue with Jaffree, will upstream the issue there |
Here it is, kokorin/Jaffree#223 |
Thanks a lot! |
@lordelan @Shabinder Usually it happens if ffmpeg was installed after JVM started or if JVM was started from a console which in it's turn was launched before ffmpeg installation. To be 100% sure I would suggest full reboot if possible. |
this happens bcuz it tries to reference a file named ffmpeg in his path whereas actually, one doesn't exist.
I thought so too and suggested same, but @lordelan says issues persisted |
can you share the path of ffmpeg , call |
@Shabinder |
@kokorin |
@Shabinder It could be so that the app runs under another user, or it could have another PATH var |
Interestingly enough I had the same issue in Windows but I solved it by downloading the bin folder of ffmpeg and pointing a path environment variable to it. |
Yup that's how one adds a path to ffmpeg, seems like some specific issue in your mac installation. |
I updated my Mac to Big Sur, installed ffmpeg again, rebooted but it still won't work. I'd like to thank u guys for your support though. |
@Shabinder there is new Jaffree version available, it logs some system information if failed to start ffmpeg/ffprobe process. |
I am actually rewriting the whole app, so was looking to build that a release the updated version with that. But if it gets delayed then will release a new hotfix in Spotiflyer itself |
@1xKarthik did you find a solution? |
This solved the problem for me: #891 (comment) |
It shows a warning that "No FFmpeg found at path" and this error when downloading a song:
com.github.kokorin.jaffree.JaffreeException: Failed to start process. at com.github.kokorin.jaffree.process.ProcessHandler.execute(ProcessHandler.java:148) at com.github.kokorin.jaffree.ffmpeg.FFmpeg.execute(FFmpeg.java:400) at com.shabinder.common.core_components.media_converter.DesktopMediaConverter$convertAudioFile$2.invokeSuspend(DesktopMediaConverter.kt:34) at com.shabinder.common.core_components.media_converter.DesktopMediaConverter$convertAudioFile$2.invoke(DesktopMediaConverter.kt) at com.shabinder.common.core_components.media_converter.DesktopMediaConverter$convertAudioFile$2.invoke(DesktopMediaConverter.kt) at com.shabinder.common.core_components.parallel_executor.ParallelExecutor$Operation.execute(ParallelExecutor.kt:170) at com.shabinder.common.core_components.parallel_executor.ParallelExecutor$launchProcessor$1.invokeSuspend(ParallelExecutor.kt:113) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.selects.SelectBuilderImpl.resumeWith(Select.kt:304) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) Caused by: java.io.IOException: Cannot run program "ffmpeg": error=2, No such file or directory at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) at com.github.kokorin.jaffree.process.ProcessHandler.execute(ProcessHandler.java:141) ... 14 more Caused by: java.io.IOException: error=2, No such file or directory at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:319) at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:250) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
The text was updated successfully, but these errors were encountered: