Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

แก้ไข "Code execution cannot proceed because ffmpeg.dll was not found" บน Windows

ในบทความนี้จะพูดถึงวิธีแก้ไขหากเจอข้อความ error ว่า Code execution cannot proceed because ffmpeg.dll was not found ffmpeg.dll missing error เป็น error พบบ่อยที่สุดของ Windows users โชคดีที่แก้ไขง่ายมาดูวิธีแก้ไขต่างๆ

แก้ไข  Code execution cannot proceed because ffmpeg.dll was not found  บน Windows

Code execution cannot proceed because ffmpeg.dll was not found

รายการ workaround ที่มีผล หากเจอ Code execution cannot proceed because ffmpeg.dll was not found error:

  1. Restart the System
  2. Re-register ffmpeg.dll file
  3. Reinstall the application that is giving this error
  4. Run System File Checker
  5. Copy Files to Older Directory
  6. Repair System Image
  7. Create New Account

1. Restart the System

จากพื้นฐานถึง technical รีสตาร์ทเป็นวิธีดีที่สุดแก้ปัญหา Windows OS ใดๆ รีสตาร์ทระบบ เปิดแอปที่โยน error ดูว่าเจอข้อความเดิมไหม ถ้าไม่ โอเคแล้ว ถ้ายังเจอ ลอง technical workarounds ด้านล่าง

2. Re-register ffmpeg.dll file

Re-register ffmpeg.dll file ดูว่าทำงานได้ไหม

3. Reinstall the application

Reinstall แอปที่โยน error อาจเป็น Microsoft Teams, Discord, หรืออื่นๆ

4. Run System File Checker

วิธีดีที่สุดแก้ DLL file missing error บน Windows คือ รัน System File Checker Built-in SFC จะแทนที่ missing system files ขั้นตอน:

กด Windows key เปิด Start menu

ใน search bar พิมพ์ Command Prompt เลือก Command Prompt (Admin)

ใน command prompt window คัดลอกคำสั่งด้านล่างวาง กด Enter

sfc /scannow

แค่นี้ Windows จะสแกนสูงสุด 10 นาที เสร็จแล้ว รีสตาร์ทระบบ แนะนำรัน sfc/scannow ใน Safe Mode หรือ Boot Time เพื่อผลลัพธ์ดีกว่า

5. Copy Files to Older Directory

แอปทุกตัวทิ้ง remnants ไว้บนระบบตอน uninstall ค้างจนกว่าจะลบเอง ตอน reinstall แอปเดิม remnants ติดตั้งเก่าอาจก่อให้ error หากเป็นกรณีนี้ ให้ copy installation files ของแอปไปที่ที่ติดตั้งไว้ก่อนหน้า ขั้นตอน:

หมายเหตุ: จะ示範 transfer file สำหรับ Discord กระบวนการควรคล้ายกันสำหรับแอปอื่นที่เจอ error

  1. ปิด Discord จากระบบ จบ related tasks ทั้งหมดจาก Task Manager
  2. กด Windows + R เปิด Run dialogue box
  3. พิมพ์ %localappdata% กด OK
  4. เปิดโฟลเดอร์ Discord
  5. ในโฟลเดอร์ หา duplicate Discord folder ตัวอย่าง new installation folder ชื่อ current-S1 เดิม/เก่า ชื่อ current
  6. Copy เนื้อหา current-S1 ไป current folder
  7. ถ้าถาม กด Replace files

แค่นี้ก็จบ รีบูทระบบ เช็กว่าปัญหาแก้หรือยัง

6. Repair System Image

หากปัญหายังคง รัน DISM ซ่อม system image เช็ก corrupted file กู้คืนสุขภาพดี ขั้นตอน:

เปิด Command Prompt administrator mode

ใน command prompt พิมพ์โค้ดด้านล่าง กด Enter

Dism /Online /Cleanup-Image /RestoreHealth

โค้ดรันประมาณ 15 นาที เสร็จแล้ว รีสตาร์ทระบบ เช็กว่าปัญหายังคงอยู่ไหม

7. Delete the Application Cache Data

แก้ไข  Code execution cannot proceed because ffmpeg.dll was not found  บน Windows

คล้ายเบราว์เซอร์ แอปที่ติดตั้งก็เก็บ cache data ช่วย performance เร็ว/ลื่น แต cache เยอะเกินก็ก่อให้ปัญหา รวมถึง ffmpeg.dll was not found error ให้ล้าง cache data ของแอปที่โยน error ขั้นตอน:

หมายเหตุ: 示範 clear cache data ของ Discord กระบวนการคล้ายกันสำหรับแอปอื่นที่โยน error

  1. ปิด Discord และ related tasks ทั้งหมดจาก Task Manager
  2. กด Windows + R เปิด Run dialogue box
  3. พิมพ์ %appdata% กด Enter
  4. เปิดโฟลเดอร์ Discord
  5. เปิด Cache folder ลบทุกอย่างข้างใน

รีสตาร์ทระบบ เช็กว่าปัญหายังคงอยู่ไหม ถ้าใช่ ลองวิธีถัดไป

8. Create New Account

บางครั้ง corrupted user profile ก็ก่อให้ error นี้ ให้สร้าง user account ใหม่ ต้องสร้างด้วย admin privileges ทั้งหมด

สร้าง account เสร็จ เปิดแอปที่โยน error ดูว่ายังโชว์ข้อความไหม

9. Reinstall the Application

หาก workaround ข้างต้นไม่ช่วย ตัวเลือกสุดท้ายคือ reinstall problematic application ขั้นตอน:

  1. Uninstall application ผ่าน Control Panel
  2. เปิด Run dialogue box ไป %localappdata%
  3. ลบโฟลเดอร์ของ problematic app

แค่นี้ก็จบ ติดตั้งแอปนั้นจาก official website ใหม่

ffmpeg.dll file คืออะไร?

ffmpeg.dll file เป็น Dynamic Link Library และเป็นส่วนภายนอกของแอปพลิเคชันที่รันบน Windows 11/10/8/7 ประสิทธิภาพของซอฟต์แวร์ที่เกี่ยวข้องจะได้ผลกระทบเชิงลบหาก ffmpeg.dll file หายไป

DLL errors เกิดจากอะไร?

หลายสาเหตุทำให้ Windows โยน DLL errors แต่พบบ่อยที่สุดคือ DLL หายหรือเสียหาย DLL (Dynamic Linked Library) เป็นส่วนสำคัญของ System files และบางครั้งถูก share ด้วย หาก DLL ไปเสีย โอกาสสูงว่าจะมีหลายอย่างล้มเหลว บทความนี้แสดงวิธีแก้ missing DLL file errors

แก้ไข  Code execution cannot proceed because ffmpeg.dll was not found  บน Windows