การเลือกรูปแบบไฟล์ที่เหมาะสมสำหรับภาพจาก CCTV ส่งผลต่อคุณภาพวิดีโอ ความต้องการพื้นที่จัดเก็บ ความเข้ากันได้ในการเล่น และการใช้งานทางนิติเวช คู่มือนี้ครอบคลุมรูปแบบคอนเทนเนอร์และโคเดกหลักที่ใช้ในระบบเฝ้าระวัง
คอนเทนเนอร์เทียบกับโคเดก
<svg viewBox="0 0 64 64" width="48" height="48" fill="none" stroke="#2563eb" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"
<rect x="4" y="12" width="56" height="40" rx="4" /> <path d="M28 28 L40 36 L28 44 Z" fill="#2563eb" opacity="0.15" /> <circle cx="16" cy="20" r="3" fill="#2563eb" opacity="0.3" /> <svg>
รูปแบบคอนเทนเนอร์ (เช่น MP4 หรือ AVI) ห่อหุ้มวิดีโอ เสียง และข้อมูลเมตาไว้ด้วยกัน โคเดก (เช่น H.264 หรือ H.265) กำหนดว่าวิดีโอจะถูกบีบอัดภายในคอนเทนเนอร์นั้นอย่างไร ระบบ CCTV สมัยใหม่มักใช้วิดีโอ H.264 หรือ H.265 ภายในคอนเทนเนอร์ MP4
รูปแบบคอนเทนเนอร์
<svg viewBox="0 0 64 64" width="48" height="48" fill="none" stroke="#2563eb" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"
<rect x="8" y="8" width="48" height="48" rx="6" /> <path d="M24 22 L40 22 M24 30 L36 30 M24 38 L32 38" strokeWidth="2.5" /> <rect
x="12" y="44" width="12" height="8" rx="2" fill="#2563eb" opacity="0.2"
/> <rect x="28" y="44" width="24" height="8" rx="2" fill="#2563eb" opacity="0.2" /> <svg>
AVI (Audio Video Interleave)
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#6366f1" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<rect x="6" y="8" width="36" height="32" rx="3" /> <circle cx="24" cy="24" r="8" /> <polygon points="22,20 22,28 29,24" fill="#6366f1" opacity="0.3" /> <rect x="6" y="36" width="8" height="4" rx="1" fill="#6366f1" opacity="0.2" /> <rect
x="34" y="36" width="8" height="4" rx="1" fill="#6366f1" opacity="0.2"
/> <svg>
AVI ถูกนำเสนอโดย Microsoft ในปี 1992 มันเก็บข้อมูลด้วยการบีบอัดน้อยที่สุด ทำให้ได้ไฟล์ขนาดใหญ่ที่มีคุณภาพสูง
เหมาะสำหรับ: คลิปนิติเวชระยะสั้นที่รายละเอียดสำคัญกว่าพื้นที่จัดเก็บ
MP4 (MPEG-4 Part 14)
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#10b981" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<rect x="6" y="6" width="36" height="36" rx="4" /> <rect
x="10" y="10" width="28" height="28" rx="2" fill="#10b981" opacity="0.1"
/> <polygon points="20,16 20,32 32,24" fill="#10b981" opacity="0.4" /> <svg>
MP4 เป็นรูปแบบที่โดดเด่นในระบบเฝ้าระวังสมัยใหม่ มันสร้างสมดุลระหว่างประสิทธิภาพการบีบอัดกับความเข้ากันได้กว้างทั่วทั้ง NVR แอปมือถือ และแพลตฟอร์มคลาวด์
เหมาะสำหรับ: การบันทึกระยะยาว การดูระยะไกล และขั้นตอนการทำงานข้ามแพลตฟอร์ม
MOV (รูปแบบไฟล์ QuickTime)
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#a855f7" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<rect x="6" y="6" width="36" height="36" rx="6" /> <path d="M16 14 L16 34 L34 24 Z" fill="#a855f7" opacity="0.3" /> <circle cx="14" cy="14" r="2" fill="#a855f7" opacity="0.4" /> <svg>
MOV พัฒนาโดย Apple และพบได้ทั่วไปในขั้นตอนการทำงานหลังการผลิต NVR บางตัวส่งออกเป็น MOV เพื่อการตัดต่อหรือเก็บถาวร
เหมาะสำหรับ: ขั้นตอนการทำงานบน macOS และภาพที่ต้องการตัดต่อวิดีโอ
MKV (Matroska Video)
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#f59e0b" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<rect
x="4" y="4" width="18" height="18" rx="2" fill="#f59e0b" opacity="0.15"
/> <rect x="26" y="4" width="18" height="18" rx="2" fill="#f59e0b" opacity="0.15" /> <rect x="4" y="26" width="18" height="18" rx="2" fill="#f59e0b" opacity="0.15" /> <rect x="26" y="26" width="18" height="18" rx="2" fill="#f59e0b" opacity="0.15" /> <path d="M13 13 L35 13 M13 35 L35 35 M13 13 L13 35 M35 13 L35 35" strokeWidth="1" opacity="0.3" /> <svg>
MKV เป็นคอนเทนเนอร์มาตรฐานเปิดที่สามารถเก็บแทร็กเสียงหลายรายการ สตรีมคำบรรยาย และเครื่องหมายบทในไฟล์เดียว
เหมาะสำหรับ: การส่งออกหลายกล้องหรือการเก็บถาวรภาพพร้อมข้อมูลเมตา
WMV (Windows Media Video)
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#3b82f6" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<rect x="6" y="8" width="36" height="32" rx="2" /> <path d="M6 28 L16 18 L22 26 L30 16 L42 28" strokeWidth="1.5" fill="none" /> <polygon points="34,18 36,16 42,18 40,20" fill="#3b82f6" opacity="0.3" /> <rect
x="6" y="36" width="36" height="4" rx="1" fill="#3b82f6" opacity="0.1"
/> <svg>
WMV ออกแบบโดย Microsoft สำหรับการเล่นบน Windows ทำให้ได้ไฟล์ขนาดเล็กแต่สูญเสียคุณภาพอย่างเห็นได้ชัด
เหมาะสำหรับ: ระบบ DVR แบบ Windows-only รุ่นเก่า
FLV (Flash Video)
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#ef4444" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<polygon
points="26,6 12,28 22,28 18,42 36,20 26,20" fill="#ef4444" opacity="0.2"
/> <svg>
FLV ถูกใช้อย่างแพร่หลายสำหรับสตรีมมิงบนเว็บในยุค 2000 ปัจจุบันล้าสมัยไปแล้วหลังจาก Adobe ยุติการรองรับ Flash ในปี 2020
เหมาะสำหรับ: อินเทอร์เฟซเฝ้าระวังรุ่นเก่าที่ใช้เว็บแคมหรือเบราว์เซอร์
3GP
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#ec4899" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<rect x="12" y="4" width="24" height="40" rx="4" /> <rect
x="18" y="8" width="12" height="2" rx="1" fill="#ec4899" opacity="0.3"
/> <circle cx="24" cy="28" r="6" /> <polygon points="22,24 22,32 29,28" fill="#ec4899" opacity="0.3" /> <circle cx="24" cy="40" r="2" fill="#ec4899" opacity="0.4" /> <svg>
3GP พัฒนาสำหรับโทรศัพท์มือถือ 3G โปรแกรมดู CCTV บนมือถือรุ่นเก่าบางรุ่นใช้รูปแบบนี้
เหมาะสำหรับ: แอปเฝ้าระวบบนมือถือที่เก่ามาก
มาตรฐานการบีบอัด (โคเดก)
<svg viewBox="0 0 64 64" width="48" height="48" fill="none" stroke="#059669" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"
<circle cx="32" cy="28" r="18" /> <circle cx="32" cy="28" r="10" /> <circle cx="32" cy="28" r="4" /> <path
d="M32 4 L32 10 M32 46 L32 52 M4 28 L10 28 M54 28 L60 28" strokeWidth="2.5" opacity="0.5"
/> <path d="M12 12 L16 16 M48 48 L52 52 M48 16 L52 12 M12 48 L16 44" strokeWidth="1.5" opacity="0.4" /> <svg>
H.264 (Advanced Video Coding)
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#059669" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<circle cx="24" cy="24" r="16" /> <circle cx="24" cy="24" r="8" /> <path
d="M24 4 L24 8 M24 40 L24 44 M4 24 L8 24 M40 24 L44 24" strokeWidth="2" opacity="0.4"
/> <path d="M10 10 L13 13 M35 35 L38 38 M35 10 L38 13 M10 35 L13 38" strokeWidth="1.2" opacity="0.3" /> <text x="18" y="29" fontSize="12" fill="#059669" fontWeight="bold" fontFamily="monospace"
264
<text> <svg>
H.264 เป็นมาตรฐานการบีบอัดวิดีโอที่ใช้กันอย่างแพร่หลายที่สุดใน CCTV สามารถลดขนาดไฟล์ได้ถึง 50% เมื่อเทียบกับ MJPEG ในขณะที่รักษาคุณภาพที่เทียบเคียงได้
เหมาะสำหรับ: การบันทึก HD และการเฝ้าระวังต่อเนื่อง 24/7 บนฮาร์ดแวร์ที่มีอยู่
H.265 (High Efficiency Video Coding)
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#059669" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<circle cx="18" cy="24" r="12" opacity="0.6" /> <circle cx="30" cy="24" r="12" opacity="0.6" /> <circle cx="18" cy="24" r="6" opacity="0.4" /> <circle cx="30" cy="24" r="6" opacity="0.4" /> <path
d="M18 8 L18 12 M30 8 L30 12 M18 36 L18 40 M30 36 L30 40" strokeWidth="1.5" opacity="0.3"
/> <text x="13" y="29" fontSize="10" fill="#059669" fontWeight="bold" fontFamily="monospace"
265
<text> <text x="25" y="29" fontSize="10" fill="#059669" fontWeight="bold" fontFamily="monospace"
265
<text> <svg>
H.265 (หรือเรียกอีกอย่างว่า HEVC) เพิ่มอัตราส่วนการบีบอัดของ H.264 ประมาณสองเท่า ทำให้เป็นตัวเลือกที่เหมาะสมที่สุดสำหรับ NVR 4K และหลายช่องสัญญาณ
เหมาะสำหรับ: กล้อง 4K, NVR หลายช่องสัญญาณ และระบบที่มีพื้นที่จัดเก็บหรือแบนด์วิดท์จำกัด
MJPEG (Motion JPEG)
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#059669" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<rect
x="4" y="10" width="10" height="28" rx="1" fill="#059669" opacity="0.15"
/> <rect x="16" y="10" width="10" height="28" rx="1" fill="#059669" opacity="0.15" /> <rect x="28" y="10" width="10" height="28" rx="1" fill="#059669" opacity="0.15" /> <rect x="40" y="10" width="6" height="28" rx="1" fill="#059669" opacity="0.1" /> <line x1="9" y1="18" x2="9" y2="32" strokeWidth="1.2" /> <line x1="21" y1="18" x2="21" y2="32" strokeWidth="1.2" /> <line x1="33" y1="18" x2="33" y2="32" strokeWidth="1.2" /> <circle cx="9" cy="16" r="1.5" fill="#059669" /> <circle cx="21" cy="16" r="1.5" fill="#059669" /> <circle cx="33" cy="16" r="1.5" fill="#059669" /> <svg>
MJPEG เข้ารหัสแต่ละเฟรมเป็นภาพ JPEG อิสระ ทำให้การวิเคราะห์แบบเฟรมต่อเฟรมทำได้ง่าย แต่สร้างไฟล์ขนาดใหญ่เนื่องจากไม่มีการบีบอัดระหว่างเฟรม
เหมาะสำหรับ: แอปพลิเคชันที่ต้องการความหน่วงในการเข้ารหัสต่ำหรือการแยกเฟรมที่ง่าย
RAW / วิดีโอไม่บีบอัด
<svg viewBox="0 0 48 48" width="36" height="36" fill="none" stroke="#059669" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"
<polygon points="24,4 44,24 24,44 4,24" fill="#059669" opacity="0.1" /> <polygon
points="24,10 38,24 24,38 10,24" fill="none" strokeWidth="1" opacity="0.4"
/> <circle cx="24" cy="24" r="6" fill="none" /> <circle cx="24" cy="24" r="2" fill="#059669" opacity="0.4" /> <svg>
วิดีโอไม่บีบอัด จับภาพทุกพิกเซลจากเซนเซอร์โดยไม่มีการบีบอัด ไฟล์มีขนาดใหญ่มากแต่ให้คุณค่าทางหลักฐานสูงสุด
เหมาะสำหรับ: หลักฐานนิติเวช หลักฐานในศาล และการวิเคราะห์สืบสวน
รูปแบบ DVR เฉพาะของผู้ผลิต
<svg viewBox="0 0 64 64" width="48" height="48" fill="none" stroke="#dc2626" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"
<rect x="6" y="14" width="52" height="36" rx="4" /> <rect
x="12" y="20" width="40" height="24" rx="2" fill="#dc2626" opacity="0.1"
/> <circle cx="20" cy="32" r="4" fill="#dc2626" opacity="0.3" /> <path d="M26 32 L44 32 M44 28 L44 36" strokeWidth="2.5" /> <rect x="6" y="44" width="14" height="6" rx="1" fill="#dc2626" opacity="0.2" /> <rect x="44" y="44" width="14" height="6" rx="1" fill="#dc2626" opacity="0.2" /> <svg>
ผู้ผลิต DVR หลายรายใช้รูปแบบคอนเทนเนอร์เฉพาะที่ฝังข้อมูลเมตาเช่น ประทับเวลา เหตุการณ์การเคลื่อนไหว และ ID กล้อง ไฟล์เหล่านี้ต้องใช้ซอฟต์แวร์หรือเครื่องเล่นของผู้ผลิตในการเล่น
เหมาะสำหรับ: การเล่นที่ราบรื่นภายในระบบนิเวศของผู้ผลิต
ข้อควรพิจารณาเรื่องพื้นที่จัดเก็บ
<svg viewBox="0 0 64 64" width="48" height="48" fill="none" stroke="#7c3aed" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"
<rect x="8" y="10" width="48" height="44" rx="4" /> <rect
x="14" y="16" width="36" height="10" rx="2" fill="#7c3aed" opacity="0.15"
/> <rect x="14" y="30" width="36" height="10" rx="2" fill="#7c3aed" opacity="0.15" /> <rect x="14" y="44" width="36" height="6" rx="2" fill="#7c3aed" opacity="0.15" /> <circle cx="20" cy="21" r="1.5" fill="#7c3aed" /> <circle cx="20" cy="35" r="1.5" fill="#7c3aed" /> <svg>
การเลือกโคเดกส่งผลโดยตรงต่อการวางแผนพื้นที่จัดเก็บ ระบบ 4 ช่องสัญญาณ 1080p ที่บันทึก 24/7 ต้องการพื้นที่โดยประมาณ:
อ้างอิงถึงการใช้งานอ้างอิง H.264 หรือโครงการ x265 สำหรับรายละเอียดทางเทคนิคเกี่ยวกับโคเดกเหล่านี้
คู่มือการเลือกอย่างรวดเร็ว
<svg viewBox="0 0 64 64" width="48" height="48" fill="none" stroke="#ca8a04" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"
<rect x="6" y="6" width="52" height="52" rx="6" /> <path d="M20 32 L28 40 L44 24" strokeWidth="3" stroke="#ca8a04" /> <path d="M20 18 L44 18" strokeWidth="2" opacity="0.4" /> <path d="M20 46 L40 46" strokeWidth="2" opacity="0.4" /> <svg>