วิธีเขียน Prompt สร้างวิดีโอ AI ให้ได้ผลลัพธ์ตรงใจ
หลายคนพบว่าการสร้างวิดีโอด้วย AI ได้ผลลัพธ์ไม่ตรงใจ บางทีก็ดี บางทีก็แปลกๆ ความลับอยู่ที่ การเขียน prompt ค่ะ! วันนี้เราจะมาเรียนรู้วิธีเขียน prompt สำหรับ AI Video ให้ได้ผลลัพธ์ที่ดีกัน
ทำไม Prompt ถึงสำคัญ?
AI Video Generator อ่าน prompt ของคุณแล้วพยายามสร้างวิดีโอตามที่บอก ถ้า prompt ไม่ชัดเจน AI ก็จะ "เดา" เอง ซึ่งมักไม่ตรงใจ
Prompt ที่ดี = ผลลัพธ์ที่ดี
โครงสร้างของ Prompt ที่ดี
Basic Structure
[Subject] + [Action] + [Setting] + [Style] + [Camera]
ตัวอย่าง:
A woman (Subject) walking slowly (Action) through a misty forest (Setting), cinematic lighting (Style), tracking shot (Camera)
Expanded Structure
[Subject Description] + [Action/Motion] + [Environment/Setting] + [Lighting] + [Mood/Atmosphere] + [Style] + [Camera Movement] + [Quality Keywords]
ตัวอย่าง:
A young woman with long flowing red hair wearing a white summer dress, walking gracefully along a beach at sunset, golden hour lighting with soft shadows, peaceful and serene atmosphere, photorealistic cinematic style, slow tracking shot following from the side, high quality, 4K
องค์ประกอบของ Prompt
1. Subject (ตัวแบบ)
บอกให้ละเอียด:
- ใครหรืออะไร?
- ลักษณะทางกายภาพ?
- กำลังแต่งตัวยังไง?
- อารมณ์/สีหน้าเป็นอย่างไร?
ตัวอย่าง:
❌ "A woman"
✅ "A young Asian woman in her 20s with long black hair, wearing a blue business suit, confident expression"
❌ "A car"
✅ "A red vintage 1967 Ford Mustang convertible, freshly polished, chrome details gleaming"
2. Action (การกระทำ)
บอกว่าทำอะไรและทำอย่างไร:
- กริยาที่ชัดเจน
- ความเร็ว (slowly, quickly)
- ลักษณะการเคลื่อนไหว
ตัวอย่าง:
❌ "walking"
✅ "walking slowly and gracefully, her dress flowing in the gentle breeze"
❌ "dancing"
✅ "dancing energetically, spinning with arms outstretched, hair flowing wildly"
3. Setting/Environment (สถานที่)
บอกว่าอยู่ที่ไหน:
- สถานที่
- เวลา (กลางวัน/กลางคืน)
- สภาพอากาศ
- องค์ประกอบรอบข้าง
ตัวอย่าง:
❌ "in a city"
✅ "in a busy Tokyo street at night, neon signs glowing, rain-wet pavement reflecting lights"
❌ "in nature"
✅ "in a dense tropical rainforest, sunlight streaming through the canopy, mist rising from the ground"
4. Lighting (แสง)
Keywords ที่ใช้บ่อย:
golden hour- แสงยามเย็น สีทองอบอุ่นsoft lighting- แสงนุ่มนวลdramatic lighting- แสงดราม่า contrast สูงbacklit- แสงด้านหลังnatural lighting- แสงธรรมชาติstudio lighting- แสงสตูดิโอneon lights- แสงนีออนcandlelight- แสงเทียนmoonlight- แสงจันทร์
5. Mood/Atmosphere (อารมณ์)
Keywords:
peaceful,serene- สงบmysterious,eerie- ลึกลับromantic- โรแมนติกenergetic,dynamic- มีชีวิตชีวาmelancholic,sad- เศร้าepic,grand- ยิ่งใหญ่cozy,warm- อบอุ่นtense,suspenseful- ตึงเครียด
6. Style (สไตล์)
Keywords:
cinematic- แบบหนังdocumentary- สารคดีanime- อนิเมะphotorealistic- เหมือนจริงfantasy- แฟนตาซีsci-fi- ไซไฟnoir- ฟิล์มนัวร์vintage- วินเทจmodern,contemporary- ทันสมัย
7. Camera Movement (การเคลื่อนที่กล้อง)
Keywords:
static shot- กล้องนิ่งtracking shot- กล้องตาม subjectpan left/right- กล้องแพนซ้าย/ขวาtilt up/down- กล้องเงยขึ้น/ก้มลงzoom in/out- ซูมเข้า/ออกdolly shot- กล้องเคลื่อนเข้า/ออกorbit shot- กล้องวนรอบaerial shot- มุมสูง/dronePOV shot- มุมมองบุคคลที่ 1handheld- กล้องแบบถือมือ (สั่นเล็กน้อย)
8. Quality Keywords
เพิ่มคุณภาพ:
high quality4Kdetailedsharp focusprofessionalmasterpiece
ตัวอย่าง Prompt แบ่งตามประเภท
Realistic/Cinematic
"A handsome man in a tailored gray suit standing on a rooftop overlooking the city at dusk, wind gently moving his hair, city lights beginning to glow below, golden hour lighting, contemplative expression, cinematic film grain, slow camera push in, photorealistic, high quality"
Nature/Landscape
"Majestic waterfall cascading into a crystal clear pool in a lush tropical forest, mist rising from the impact, rainbow forming in the spray, morning sunlight filtering through the canopy, peaceful atmosphere, slow motion water, drone shot slowly descending, National Geographic style, 4K"
Fantasy/Magical
"A mystical phoenix rising from flames in slow motion, vibrant orange and red feathers glowing with magical energy, sparks and embers swirling around, dramatic dark background, ethereal lighting, fantasy epic style, camera orbiting around the creature, detailed feathers, magical particles"
Product/Commercial
"A luxury gold watch rotating slowly on a black marble surface, studio lighting with soft reflections, water droplets on the glass face catching the light, premium product photography style, shallow depth of field, extreme close-up with smooth rotation, commercial quality"
Action/Dynamic
"A professional skateboarder performing a kickflip in slow motion in an urban environment, sunset backlighting creating silhouette effect, concrete skatepark with graffiti walls, dynamic motion blur on the board, street photography style, tracking shot following the action, high frame rate, cinematic"
Anime/Illustration
"Anime girl with pink twin tails and big sparkling eyes, wearing a magical girl costume with ribbons, casting a spell with glowing hands, sparkles and magical effects surrounding her, sakura petals floating, anime style with vibrant colors, dynamic pose, camera zoom out revealing full scene"
เทคนิคขั้นสูง
1. ใช้ Negative Prompt (ถ้า tool รองรับ)
บอก AI ว่าไม่ต้องการอะไร:
Negative: blurry, low quality, distorted, ugly, deformed hands
2. อ้างอิง Style จากสิ่งที่รู้จัก
"...in the style of a Christopher Nolan film"
"...Pixar animation style"
"...like a high-end perfume commercial"
"...documentary style like Planet Earth"
3. ระบุ Aspect Ratio
"...16:9 cinematic aspect ratio"
"...9:16 vertical format for TikTok"
"...1:1 square format"
4. ใส่ Technical Details
"...shot on anamorphic lens with subtle lens flare"
"...shallow depth of field, f/1.4"
"...35mm film aesthetic with grain"
5. ระบุ Duration/Speed
"...in slow motion"
"...timelapse"
"...real time speed"
"...speed ramping from slow to fast"
Common Mistakes ที่ควรหลีกเลี่ยง
1. Prompt สั้นเกินไป
❌ "A cat"
✅ "A fluffy orange tabby cat sitting on a windowsill, looking out at falling snow, cozy indoor lighting, peaceful mood, slow subtle breathing motion, static shot with soft focus on background"
2. ขัดแย้งกันเอง
❌ "A person standing still while running fast"
✅ "A person standing still, then begins to run quickly"
3. เป็นไปไม่ได้ทางฟิสิกส์
AI จะพยายามทำตาม แต่ผลลัพธ์มักแปลก:
❌ "A person flying without wings in a realistic setting"
✅ "A person jumping gracefully, suspended in mid-air, slow motion"
4. คลุมเครือเกินไป
❌ "Something beautiful happening"
✅ "A butterfly emerging from a chrysalis, wings slowly unfolding, morning sunlight illuminating translucent wings"
Template Prompt ที่ใช้ได้เลย
Template 1: Person/Portrait
A [age] [gender] with [hair description] wearing [clothing], [action/pose] in [location] at [time of day], [lighting], [mood] atmosphere, [style], [camera movement], [quality keywords]
Template 2: Nature/Landscape
[Natural element] in [location type], [weather/time], [lighting], [atmosphere], [style], [camera movement], [quality keywords]
Template 3: Product
[Product] [position/movement] on [surface], [lighting setup], [style], [camera angle/movement], [quality keywords]
Template 4: Action/Dynamic
[Subject] [dynamic action] in [location], [lighting], [motion effect], [style], [camera technique], [quality keywords]
สรุป
การเขียน prompt ที่ดีต้องมี:
- Subject - ชัดเจนว่าใคร/อะไร
- Action - ทำอะไร เคลื่อนไหวยังไง
- Setting - อยู่ที่ไหน เมื่อไหร่
- Lighting - แสงแบบไหน
- Mood - อารมณ์/บรรยากาศ
- Style - สไตล์ภาพรวม
- Camera - กล้องเคลื่อนไหวยังไง
- Quality - keywords เพิ่มคุณภาพ
ยิ่งละเอียด ยิ่งได้ผลลัพธ์ตรงใจ!
อยากเรียนรู้ Prompt Engineering สำหรับ AI Video?
ถ้าคุณอยากเรียนรู้เทคนิคการเขียน prompt สำหรับ AI Video และเครื่องมือ AI อื่นๆ อย่างเจาะลึก เรามีคอร์ส AI ที่สอน AI เชียงใหม่ แบบลงมือปฏิบัติจริง มี workshop ให้ฝึกเขียน prompt กับผู้เชี่ยวชาญค่ะ
เขียนโดย
AI Unlocked Team
บทความอื่นๆ ที่น่าสนใจ
วิธีติดตั้ง FFmpeg บน Windows และ Mac: คู่มือฉบับสมบูรณ์
เรียนรู้วิธีติดตั้ง FFmpeg บน Windows และ macOS พร้อมการตั้งค่า PATH อย่างละเอียด เพื่อใช้งานโปรแกรมตัดต่อวิดีโอและเสียงระดับมืออาชีพ
สรุป: เส้นทางการเรียนรู้ AI สำหรับคนไทย ฉบับสมบูรณ์
สรุปทุกสิ่งที่คนไทยต้องรู้เกี่ยวกับการเรียน AI ตั้งแต่เริ่มต้นจนถึงการหางานและพัฒนาอาชีพ รวมทุก resources และ tips ในที่เดียว
อนาคตของ AI ในอีก 5 ปี: แนวโน้มและการเปลี่ยนแปลงที่จะเกิดขึ้น
วิเคราะห์อนาคตของ AI ในช่วง 5 ปีข้างหน้า ทั้งด้านเทคโนโลยี การทำงาน ธุรกิจ และสังคม พร้อมวิธีเตรียมตัวรับมือ