-
Notifications
You must be signed in to change notification settings - Fork 465
ppt video add
zmworm edited this page Apr 29, 2026
·
53 revisions
Embed video and audio media on a slide.
Path: /slide[N] (parent)
| Property | Default | Description |
|---|---|---|
path |
(required) | Media source: local file path, https://... HTTP URL, or data: URI |
name |
video / audio
|
Element name |
poster |
1x1 PNG | Poster/thumbnail image |
volume |
80 |
Playback volume (0-100) |
autoplay |
false |
Auto-play on slide show |
trimStart |
- | Trim start point (ms) |
trimEnd |
- | Trim end point (ms) |
x, y
|
defaults | Position (EMU or units) |
width, height
|
defaults | Size (EMU or units) |
# Add a video with autoplay
officecli add slides.pptx /slide[1] --type video --prop src=demo.mp4 --prop x=3cm --prop y=3cm --prop width=18cm --prop height=10cm --prop autoplay=true
# Add a video with poster
officecli add slides.pptx /slide[1] --type video --prop src=/tmp/clip.mp4 --prop poster=/tmp/thumb.png --prop name="Demo"
# Add background audio
officecli add slides.pptx /slide[1] --type audio --prop src=bgm.mp3 --prop volume=50
# Add trimmed audio
officecli add slides.pptx /slide[1] --type audio --prop src=/tmp/music.mp3 --prop trimStart=1000 --prop trimEnd=30000 --prop autoplay=true
# Add video from HTTP URL
officecli add slides.pptx /slide[1] --type video --prop src=https://example.com/demo.mp4 --prop width=18cm --prop height=10cmBased on OfficeCLI v1.0.64