Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit cd17940

Browse files
authored
Add start event details
1 parent c179a5c commit cd17940

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ ffmpeg('some/input.mp4')
2525

2626
### Ffmpeg usage
2727

28-
If your command ends up with an ffmpeg error (eg. 'ffmpeg exited with code X : ...'), be sure to try the command manually from command line.
28+
If your command ends up with an ffmpeg error (eg. 'ffmpeg exited with code X : ...'), be sure to try the command manually from command line. You can get the ffmpeg command line that is executed for a specific Fluent-ffmpeg command by using the `start` event:
29+
30+
```js
31+
ffmpeg('some/input.mp4')
32+
.on('start', function(cmdline) {
33+
console.log('Command line: ' + cmdline);
34+
})
35+
...
36+
```
2937

3038
If it does not work, you most likely have a ffmpeg-related problem that does not fit as a fluent-ffmpeg issue; in that case head to the [ffmpeg documentation](ffmpeg.org/documentation.html) to find out what you did wrong.
3139

0 commit comments

Comments
 (0)