Skip to content

Commit 329dddb

Browse files
add wan alpha tutorial
1 parent adf512b commit 329dddb

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Wan-Alpha Tutorial
2+
3+
Use this quick reference to capture the key settings and workflow from [the companion YouTube tutorial](https://youtu.be/MbA1iUBHQzY).
4+
5+
## Install Unzip (ubuntu)
6+
7+
```bash
8+
apt update
9+
apt install unzip
10+
```
11+
12+
## ffmpeg commands
13+
14+
To assemble a .mov file:
15+
16+
```bash
17+
ffmpeg -framerate 24 -pattern_type glob -i 'img_*.png' \
18+
-vf format=rgba \
19+
-c:v prores_ks -profile:v 4444 -pix_fmt yuva444p10le -alpha_bits 16 \
20+
wan_alpha_transparent.mov
21+
```
22+
23+
If your video has a gray background after running the above command, run:
24+
25+
```bash
26+
ffmpeg -i wan_alpha_transparent.mov -c:v prores_ks -profile:v 4444 \
27+
-pix_fmt yuva444p10le -alpha_bits 16 \
28+
fixed_wan_alpha_transparent.mov
29+
```
30+
31+
To assemble a .webm file (for web assets):
32+
33+
```bash
34+
ffmpeg -framerate 24 -pattern_type glob -i 'img_*.png' \
35+
-vf "format=rgba" \
36+
-c:v libvpx-vp9 -lossless 1 -pix_fmt yuva420p \
37+
wan_alpha_transparent.webm
38+
```
39+
40+
## Prompts
41+
42+
#### For golden retriever:
43+
44+
This video has a transparent background. A golden retriever puppy with fine, dense fur sways in the wind, its tail gently wagging. Realistic style. Medium shot.
45+
46+
#### For blonde woman:
47+
48+
This video has a transparent background. An attractive blonde woman, dressed in a stylish urban business suit, smiles as a gentle breeze rustles her long, flowing blonde hair, sending strands flying. Her eyes are gentle and vibrant, and a contented smile plays on her lips. Realistic style. Medium shot. Slight upward angle.
49+
50+
#### For emoji motion graphic:
51+
52+
This video has a transparent background. A cheerful round yellow emoji face. The emoji winks one eye, then its cheeks softly blush pink while its mouth curls into a shy but happy smile. Clean modern digital art style. Close-up shot.
53+
54+
#### For dog motion graphic:
55+
56+
This video has a transparent background. A cheerful cute puppy wags its tail and then runs away. Clean modern digital art style. Close-up shot.

0 commit comments

Comments
 (0)