-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Enable video thumbnail by default #1971
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but what if ffmpeg and ffprobe at not at this path ?
also according to:
https://github.com/PHP-FFMpeg/PHP-FFMpeg#how-this-library-works
This should not be necessary. Wouldn't it be better to first check whether they are in the path and then if not hardcode the paths instead ?
You can also use a database migration and access the values with Configs::getValueAsString() if you want to make those path configurable (possibly a better option). :)
Agree that there are better well-designed alternatives than this quick turnaround. Yet, I don't have any PHP knowledge, so won't go any further. My installation is set up from the master branch. Per my experience, video thumbnail begins to work only after
I think "failing fast right at start" is better than "feature malfunctioning silently with no obvious clue". The latter usually leads to more difficult and longer troubleshooting sessions. So I consider this quick turnaround an improvement over existing code. |
@ildyria Looks like the fixer PR automation is broken. I manually added a commit to fix the code style. |
I fixed your PR. |
@qwerty287 given that I contaminated this PR, could you review it too please ? |
@ildyria I did a brand-new installation with the changes and video thumbnails are working out of the box 😃 |
There is no video thumbnail out of the box and the related doc to enable it is outdated. The PR makes video thumbnail generation default behavior.