-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
ffprobe binary path declaration fails #223
ffprobe binary path declaration fails #223
Comments
I had a exactly this problem with video upload (Linux/nginx), by me helped set the path to ffmpeg/ffprobe binary in nginx conf:
you can check your enviroment with testfile.php:
|
Is |
Yes (Ubuntu 18.04) |
I was asking @tcrux |
Yes (Debian GNU/Linux 9.9 (stretch), nginx/1.10.3).
|
Huh... I just tested with the current master and it works for me out of the box... @tcrux The Back to your main problem, could you include a diff with the changes you made? Did you make them both in I'm also a little puzzled that passing |
I'm having the same issue, but using nginx:alpine as the base docker image. |
In my opinion the problems on my system were caused by a misconfigured nginx in combination with missing FFmpeg paths and perhaps the error handling during the video import and presentation process. FFprobe problems could stop the video import but should not crash the presentation afterwards. My solution: Thx to: #223 (comment) /etc/nginx/sites-available/your_configuration
app/Metadata/Extractor.php:282
|
I just submitted a PR that fixes the "Server error or API not found" errors when ffmpeg cannot be found. From the reports here it appears that the use of nginx is the common factor in Lychee being unable to locate |
Really either should be sufficient. I don't know why that |
FYI, I just merged the fix to master. I'm keeping this issue open until we get a confirmation from @tcrux and @tmp-hallenser that the bug is fixed. |
I can confirm the changes. |
The ffmpeg/ffprobe issue has been fixed for me. But, the video is not shown in the folder view next to the photos (small photo size) - it's just a blank. Console throw the following error on Safari 12.1 (everything works fine on Firefox + Chrome)
|
If you are not seeing a preview then most likely ffmpeg/ffprobe still cannot be found during the upload of the video file. There should be a message about that in the server log ( Did you look at #223 (comment) or #223 (comment) above in this thread? It sounds like with nginx you may need to tweak the http server config, or provide full paths to the ffmpeg/ffprobe binaries in the Lychee server code. The console error is most likely unrelated. I see some very similar ones with Firefox. I never bothered to figure out what exactly causes them; they don't seem to break anything. |
I did some further testing. I think, the log looks okay. https://pastebin.com/1n7cDzQH Here's a screenshot from Safari (Video placeholder is missing next to the picture, but clicking on the empty space opens the Lightbox with the video): Same screenshot using Firefox: The reverse effect occurs if I first upload the video and then the picture. Firefox works shows video + photo, Safari only show video. |
Sorry for the delay in responding; I somehow managed to miss your update. Yes, I can confirm that the server log looks exactly as expected, so I suspect that the problem is on the front end side. Can you confirm that the resolution of your video file is 480x270? I may not have tested with one that small when I was extending video support so there could be a bug lurking in the code somewhere. The weird discrepancy between Firefox and Safari will be difficult to test for me as I don't have access to Safari but I don't like what I'm seeing in the Firefox preview either (there should be a square preview for the video file) so there's definitely something for us to fix here, no matter which browser is used 😃. |
Yes, the resolution is 480x270 (http://file-examples.com/index.php/sample-video-files/sample-mov-files-download/ -> lowest resolution) I think I found 2 issues regarding the preview:
|
The reason There are multiple bugs here because even if I switch the photo layout to "Square thumbnails", it still doesn't display correctly for me (it tries to load the "@2x" variant of the thumbnail, which again doesn't exist because it's only generated if the source is over 400px high). The good news is that this should all be easy to fix though. |
OK, this was a lot more broken than I expected (I thought it would be just a couple of one-liner fixes) but I think I got them all... You are welcome to try the |
I'd like to give the fix a test, but would again need some help. If I understood the docs correctly, one needs to perform: The latter results in the following error: The complete log looks like the following:
npm version is 6.4.1 on alpine linux. |
I never use Are you following the I hope this helps! |
Also note that @ildyria just updated the compiled front end versions in the |
Many thanks - fix looks good so far |
Test OK:
Lychee-Laravel NOK:
The text was updated successfully, but these errors were encountered: