Skip to content

Commit 07cd660

Browse files
committed
chore(doc): update
1 parent a56afe5 commit 07cd660

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

docs/guide/configuration.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ You may set the ffmpeg and ffprobe binary paths manually:
6464

6565
```typescript
6666
export default defineConfig({
67-
bin: { // [!code focus:5]
67+
bin: { // [!code focus:4]
6868
ffmpegPath: 'ffmpeg_path',
6969
ffprobePath: 'ffprobe_path',
7070
},
@@ -79,3 +79,27 @@ export default defineConfig({
7979
| ----------- | ------------------------------------------------------------------------------- |
8080
|ffmpegPath |Argument `path` is a string with the full path to the ffmpeg binary |
8181
|ffprobePath |Argument `path` is a string with the full path to the ffprobe binary |
82+
83+
84+
sample, [download ffmpeg](https://ffbinaries.com/downloads) and ffprobe binary in /bin. Add execution right.
85+
86+
```sh
87+
cd bin
88+
chmod +x ffmpeg
89+
chmod +x ffprobe
90+
```
91+
92+
```typescript
93+
import app from '@adonisjs/core/services/app'
94+
import { defineConfig } from '@jrmc/adonis-attachment'
95+
96+
export default defineConfig({
97+
bin: { // [!code focus:4]
98+
ffmpegPath: app.makePath('bin/ffmpeg'),
99+
ffprobePath: app.makePath('bin/ffprobe'),
100+
},
101+
converters: [
102+
// ...
103+
]
104+
})
105+
```

docs/guide/installation.md

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ yarn add sharp
4343

4444
Variants images for thumbnail video are generates by [fluent-ffmpeg](https://www.npmjs.com/package/fluent-ffmpeg). Make sure you have [ffmpeg](https://ffmpeg.org) installed on your system (including all necessary encoding libraries like libmp3lame or libx264).
4545

46+
It is possible to specify the [path of binaries](/guide/configuration.html#bin-optional). Useful if your installations are specific or if you are dropping off precompiled versions.
47+
4648
Installation required:
4749

4850
::: code-group

0 commit comments

Comments
 (0)