Skip to content

Commit ba7699d

Browse files
committed
ffmpeg
1 parent d1e0dbd commit ba7699d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

content/en/docs/how-to/send-messages/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,11 @@ Use `POST /api/sendVideo` to send a message with a video attached.
551551
👉 Please make sure your file has **mp4 using libx264** format.
552552

553553
```bash
554-
ffmpeg -i input_video.mp4 -c:v libx264 output_video.mp4
554+
ffmpeg -i input_video.mp4 -c:v libx264 -map 0 -movflags +faststart output_video.mp4
555555
```
556556

557+
- `-map 0 -movflags +faststart` - required for thumbnail generation.
558+
557559
---
558560

559561
👉 **WEBJS** (default) engine notes for sending videos

content/en/docs/how-to/status/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ Send status to specific contacts (available in **NOWEB**):
9393
👉 Please make sure your file has **mp4 using libx264** format.
9494

9595
```bash
96-
ffmpeg -i input_video.mp4 -c:v libx264 output_video.mp4
96+
ffmpeg -i input_video.mp4 -c:v libx264 -map 0 -movflags +faststart output_video.mp4
9797
```
9898

99+
- `-map 0 -movflags +faststart` - required for thumbnail generation.
100+
99101
---
100102

101103
👉 **WEBJS** (default) engine notes for sending videos

0 commit comments

Comments
 (0)