simple-ffmpegjs 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/simpleffmpeg.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simple-ffmpegjs",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Declarative video composition for Node.js — define clips, transitions, text, and audio as simple objects, and let FFmpeg handle the rest.",
|
|
5
5
|
"author": "Brayden Blackwell <braydenblackwell21@gmail.com> (https://github.com/Fats403)",
|
|
6
6
|
"license": "MIT",
|
package/src/simpleffmpeg.js
CHANGED
|
@@ -800,9 +800,12 @@ class SIMPLEFFMPEG {
|
|
|
800
800
|
|
|
801
801
|
const wmConfig = exportOptions.watermark;
|
|
802
802
|
|
|
803
|
-
// For image watermarks, we need to add an input
|
|
803
|
+
// For image watermarks, we need to add an input.
|
|
804
|
+
// Use the actual file input count (from _inputIndexMap) rather than
|
|
805
|
+
// videoOrAudioClips.length, because flat color clips use the color=
|
|
806
|
+
// filter source and don't produce file inputs.
|
|
804
807
|
if (wmConfig.type === "image" && wmConfig.url) {
|
|
805
|
-
watermarkInputIndex = this.
|
|
808
|
+
watermarkInputIndex = this._inputIndexMap.size;
|
|
806
809
|
watermarkInputString = ` -i "${escapeFilePath(wmConfig.url)}"`;
|
|
807
810
|
}
|
|
808
811
|
|