|
329 | 329 | </p> |
330 | 330 | <p>{{ t('recognize', 'For Nextcloud Snap users, you need to adjust this path to point to the snap\'s "current" directory as the pre-configured path will change with each update. For example, set it to "/var/snap/nextcloud/current/nextcloud/extra-apps/recognize/bin/node" instead of "/var/snap/nextcloud/9337974/nextcloud/extra-apps/recognize/bin/node"') }}</p> |
331 | 331 | </NcSettingsSection> |
332 | | - <NcSettingsSection :name="t('recognize', 'FFMPEG')"> |
333 | | - <p v-if="ffmpeg === undefined"> |
334 | | - <span class="icon-loading-small" /> {{ t('recognize', 'Checking FFMPEG') }} |
335 | | - </p> |
336 | | - <NcNoteCard v-else-if="ffmpeg === false" type="warning"> |
337 | | - {{ t('recognize', 'Could not execute the ffmpeg binary. You may need to set the path to a working binary manually.') }} |
338 | | - </NcNoteCard> |
339 | | - <NcNoteCard v-else type="success"> |
340 | | - {{ t('recognize', 'ffmpeg {version} binary was installed successfully.', { version: ffmpeg }) }} |
341 | | - </NcNoteCard> |
342 | | - <p> |
343 | | - {{ t('recognize', 'If the shipped ffmpeg binary doesn\'t work on your system for some reason you can set the path to a custom ffmpeg binary.') }} |
344 | | - </p> |
345 | | - <p> |
346 | | - <NcTextField :value.sync="settings['ffmpeg_binary']" @update:value="onChange" /> |
347 | | - </p> |
348 | | - </NcSettingsSection> |
| 332 | + <NcSettingsSection :name="t('recognize', 'FFMPEG')"> |
| 333 | + <p v-if="ffmpeg === undefined"> |
| 334 | + <span class="icon-loading-small" /> {{ t('recognize', 'Checking FFMPEG') }} |
| 335 | + </p> |
| 336 | + <NcNoteCard v-else-if="ffmpeg === false" type="warning"> |
| 337 | + {{ t('recognize', 'Could not execute the ffmpeg binary. You may need to set the path to a working binary manually.') }} |
| 338 | + </NcNoteCard> |
| 339 | + <NcNoteCard v-else type="success"> |
| 340 | + {{ t('recognize', 'ffmpeg {version} binary was installed successfully.', { version: ffmpeg }) }} |
| 341 | + </NcNoteCard> |
| 342 | + <p> |
| 343 | + {{ t('recognize', 'If the shipped ffmpeg binary doesn\'t work on your system for some reason you can set the path to a custom ffmpeg binary.') }} |
| 344 | + </p> |
| 345 | + <p> |
| 346 | + <NcTextField :value.sync="settings['ffmpeg_binary']" @update:value="onChange" /> |
| 347 | + </p> |
| 348 | + </NcSettingsSection> |
349 | 349 | <NcSettingsSection :name="t('recognize', 'Classifier process priority')"> |
350 | 350 | <p v-if="nice === undefined"> |
351 | 351 | <span class="icon-loading-small" /> {{ t('recognize', 'Checking Nice binary') }} |
@@ -444,7 +444,7 @@ export default { |
444 | 444 | libtensorflow: undefined, |
445 | 445 | wasmtensorflow: undefined, |
446 | 446 | gputensorflow: undefined, |
447 | | - ffmpeg: undefined, |
| 447 | + ffmpeg: undefined, |
448 | 448 | cron: undefined, |
449 | 449 | modelsDownloaded: null, |
450 | 450 | imagenetJobs: null, |
@@ -604,11 +604,11 @@ export default { |
604 | 604 | const { nodejs } = resp.data |
605 | 605 | this.nodejs = nodejs |
606 | 606 | }, |
607 | | - async getFfmpegStatus() { |
608 | | - const resp = await axios.get(generateUrl('/apps/recognize/admin/ffmpeg')) |
609 | | - const { ffmpeg } = resp.data |
610 | | - this.ffmpeg = ffmpeg |
611 | | - }, |
| 607 | + async getFfmpegStatus() { |
| 608 | + const resp = await axios.get(generateUrl('/apps/recognize/admin/ffmpeg')) |
| 609 | + const { ffmpeg } = resp.data |
| 610 | + this.ffmpeg = ffmpeg |
| 611 | + }, |
612 | 612 | async getLibtensorflowStatus() { |
613 | 613 | const resp = await axios.get(generateUrl('/apps/recognize/admin/libtensorflow')) |
614 | 614 | const { libtensorflow } = resp.data |
|
0 commit comments