Enable video thumbnail by default#1971
Conversation
There was a problem hiding this comment.
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.