# Chnowa howa el codec? (w kifech yeftare9 3la el conteneur)

> El codec vidéo ycompresse les images brutes lel stockage w ydécodihom lel lecture. A3ref el far9 bin codec w conteneur w 3lech QuickTime y7bes 3al Mac.

Tnachar nhar 2026-10-31 · Formats w codecs · https://www.hazenstudio.com/maclc/tn/blog/what-is-a-codec/

## Bil mokhtasar

- El codec howa algorithme ycompresse el vidéo wella el sout el 5am lel stockage w ydécodih lel 3ardh.
- El conteneur howa 8lef ra9mi ysynchronisi streams el vidéo, el sout, wel sous-titres m3a ba3dhhom.
- Extensions fichiers kima MP4 w MKV ydellou 3al 8lef el conteneur, mouch 3la codec compression el vidéo elli daxel.
- QuickTime Player yarfodh el vidéowat wa9t framework Apple AVFoundation yna9sou décodeur natif lel codec wella el 8lef mta3 el fichier.
- Mosta3melin Mac ma lezemhomch abadan y'installiw packs codecs 9dom; lecteurs médias jdod mosta9ellin yjibou el décodeurs mte3hom m3ahom.

El codec vidéo howa algorithme ycompresse les images brutes l-stream mcompresse mta3 données binaires w ydécodi dak el stream w yraja3ou pixels madh-horin lel lecture. El mostala7 jey men coder-decoder (wella compressor-decompressor), w men ghirou, el fichiers vidéo ykounou kbar barcha bech ttelechargihom, tstreamihom, wella t5azzanhom 3la matériel mostahlek.

8alta cha2i3a hiya ennou t5allat bin codec w extension fichier kima MP4 wella MKV. Fil wa9t elli extension fichier t7added el 8lef el conteneur elli ylammed el média, el codec howa el moukhattat el riyadhi elli compresse et-tsawer wes-sout daxel dak el 8lef.

## Kifech ye5dem el codec vidéo?

El caméras ra9miya tsajjel ed-dhaw kima données capteur RGB mouch mcompresse. Film kamel mta3 se3tin b-résolution 4K (3840 × 2160) b-24 images par seconde m3a loun 10-bit yotlob ta9rib 716 MB men données 5am kol thenya. El film elli mouch mcompresse yekel akther men 5 TB mta3 stockage.

El codec vidéo y7ell hal mochkel b-izalet el données basariya el zeyda b-tari9tin: compression spatiale w compression temporelle.

El compression spatiale (codage intra-frame) t7allel kol image wa7adha, kima compression JPEG 3la taswira. Ken mach-hed fih sma azra9 safi, el encodeur ma ysajjelch kol pixel. Ya9sam et-taswira l-blocs mta3 pixels w y5azzen wasf riyadhi l-tadarruj el alwen wel textures f-dak el blasa.

El compression temporelle (codage inter-frame) t7allel el fourrou9at bin les images el motatalya 3abr el wa9t. 5ater el aflem twarri 24 wella 60 taswira kol thenya, el images el motajawra 3adatan tkoun 9riba barcha l-ba3dh-ha. Ken moumath-thel yahki 9oddem 7it thebet, el 7it ma yet7arrakch men 1/24 mta3 et-thenya l-elli ba3dha. El codec ysajjel taswira asasiya kamla tetsamma intra-coded frame (I-frame wella keyframe), w lel images elli ba3dha, ysajjel ken vecteurs de mouvement wel taghyirat el ba9iya fel pixels.

Wa9t el lecture, el décodeur ya3kes hal 3amaliya f-wa9t 7a9i9i. Ya9ra el keyframe el asasiya, ytabba9 vecteurs de mouvement, y3awed yabni el pixels en-na9sa, w yab3ath el images el jahza l-buffer l-écran.

## Chnowa el far9 bin el codec wel conteneur?

Bech tefhem el lecture multimédia, lezem tefsel el 8lef el ra9mi 3al contenu elli daxel. Format el conteneur howa el jweb, fil wa9t elli el codecs ymathlou el lougha elli maktoba biha el wara9a daxel.

Format fichier conteneur, kima Matroska (`.mkv`), MPEG-4 (`.mp4`), QuickTime Movie (`.mov`), wella WebM (`.webm`), ye5dem kima multiplexeur. Ylammed streams mo5talfa mta3 données f-binyet fichier mo7ada m3a timeline mochtaraka. Fichier conteneur wa7ed 3adatan fih stream vidéo wa7ed, stream sout wa7ed wella akther, sous-titres, 3alamet chapitres, w taswiret el jaquette.

El conteneur ysychronisi hal streams bech wa9t el lecture toussel l-thenya mo3ayna, es-sout wel sous-titres ykounou mriglin m3a el vidéo. El conteneurs yetba3ou standards dawliya, kima ISO Base Media File Format el m7added f-[ISO/IEC 14496-12](https://www.iso.org/standard/74428.html) l-MP4, wella Extensible Binary Meta Language el m7added f-[RFC 9559](https://www.rfc-editor.org/rfc/rfc9559.html) l-Matroska.

Bil mo9abel, el codecs y7addou kifech kol stream wa7dou daxel dak el conteneur tcompresse. Mathalan, fichier MP4 wa7ed ynajem ykoun fih:

- Stream vidéo mcompresse b-codec H.264 (AVC)
- Piste sout asasiya b-langlais mcompresse b-codec AAC fi 256 kbps
- Piste sout thanawiya b-lespagnol mcompresse b-codec AC-3 (Dolby Digital) fi 640 kbps
- Stream sous-titres texte minouqet

W 5ater el conteneurs wel codecs ye5dmou b-isti9laliya, ma tnajemch t9ayem jawdet et-taswira men 9rayet extension el fichier wa7adha. Conteneur MKV w conteneur MP4 hazzin nefs el bitstream vidéo HEVC ywarriw nefs jawdet et-taswira, 3om9 el alwen, wel bitrates b-edh-dhabt. Bech ta9ra tafsil el mo9arna bin hal zouzz a8lfa el mach-hourin, chouf el dalil mte3na elli y9aren [MKV m9abel MP4](/maclc/blog/mkv-vs-mp4/).

| 5asiya | Codec Vidéo (kima H.264, HEVC, AV1) | Format Conteneur (kima MP4, MKV, MOV) |
| :--- | :--- | :--- |
| **Wadhifa Asasiya** | Ycompresse w ydécodi données et-taswira el 5am | Y8allef, yda55el, w ysynchronisi barcha pistes |
| **Tarkiz Asasi** | Kafe2et el 7iseb wel woudhou7 el basari | Tandhim el fichiers, multiplexing el streams, w chapitres |
| **Ta2thir 3al Jawda** | Y7added direct 3oyoub el compression wel tafasil | 0 ta2thir 3la jawdet et-taswira; ye5dem kima 7amel passif |
| **E3timad 3al Matériel** | Barcha marrat yotlob blocs décodeur f-silicium mo5asssa | Yetsarraf fih tamamen démuzeurs logiciels 5faf |
| **Extensions Ma3roufa** | Ma 3andouch extension tban lel mosta3mel (FourCC daxel) | `.mp4`, `.mkv`, `.mov`, `.webm`, `.avi`, `.m4v` |

## Chnowa homa el codecs vidéo w sout el akther isti3malan?

3la madar thletha 3ou9oud, standards codage el vidéo ttawwrou b-ajyel. Kol jil jdid yna99es el bitrate el matloub ta9rib lel nosf m9abel el standard elli 9ablou, 3la 7seb ta39id akber fel 7iseb wa9t el encodage wed-décodage.

### Codecs vidéo kbar mosta3mlin tawwa

- **H.264 / AVC (Advanced Video Coding):** Twa77ed f-2003 men taraf ITU-T w ISO/IEC MPEG, H.264 mazel el codec el vidéo el akther tawafou9an. 9rib kol smartphone, navigateur web, talfza, w ordinateur masnou3 fel 15 sna el a5ira ynajem ydécodi H.264 fel matériel. Howa el codec el mouhaymen l-vidéo web 1080p w a9ras Blu-ray el 3adiya.
- **HEVC / H.265 (High Efficiency Video Coding):** Twafa9 3lih f-2013 kima [ITU-T H.265](https://www.itu.int/rec/T-REC-H.265), HEVC ywaffer ta9rib 40% l-50% tawsir f-bitrate m9abel H.264 b-nefs el jawda el basariya. Da55el da3m natif l-3om9 loun 10-bit w standards High Dynamic Range (HDR) kima HDR10 w Dolby Vision. HEVC howa el standard l-a9ras Blu-ray 4K Ultra HD w tasjil caméras iPhone el jdod. L-nadhrat a9rab, a9ra el ma9al el kamel mte3na 3la [chnowa howa HEVC](/maclc/blog/what-is-hevc/).
- **VP9:** Tla9tou Google f-2013 kima format open-source men ghir frais de licence, VP9 5dem kima moteur asasi l-streaming YouTube 4K l-akther men 10 snin. Ya3ti kafe2et compression t9areb HEVC. Nektechefou dawrou fel ma9al mte3na 3la [chnowa howa VP9](/maclc/blog/what-is-vp9/).
- **AV1 (AOMedia Video 1):** Tkamlel f-2018 men taraf Alliance for Open Media, AV1 howa codec ma7loul w men ghir frais de licence y7assen kafe2et el compression b-30% o5ra fou9 HEVC w VP9. Plateformes streaming tijariya kima Netflix w YouTube ya3temdou barcha 3la AV1 bech ywaslou streams 4K b-débit a9al. Décodage matériel l-AV1 mabni f-chips Apple Silicon M3 w ma ajadd, kima mfassar f-dalilna l-[AV1 3al Mac](/maclc/blog/av1-on-mac/).
- **Apple ProRes:** B-3aks codecs el tawzi3 el masmoumin bech ya3tiw fichiers s8ar lel streaming, Apple ProRes howa codec production intra-frame l-mo7tarifin. Kol image tetsajjel wa7adha kima keyframe, w hedha yasna3 fichiers kbar yotlbou johd processeur b-basita bech tscrubbi, t9oss, w téditer el alwen f-logiciels el montage. A3ref akther f-dalilna 3la [chnowa howa Apple ProRes](/maclc/blog/what-is-apple-prores/).

L-ta7lil kafe2a w bitrate janb b-janb l-formats el tawzi3 el jdod, a9ra el tafsil el kamel mte3na 3la [H.264 m9abel H.265 m9abel AV1](/maclc/blog/h264-vs-h265-vs-av1/).

### Codecs sout asasiyin

Codecs es-sout ycompressiw mawjet es-sout el multi-canaux el 5am b-este3mal modèles psychoacoustiques ylou7ou el fréquences elli a9al sam3an l-wedhn el insen:

- **AAC (Advanced Audio Coding):** El codec sout lossy par défaut l-fichiers MP4, appareils Apple, w YouTube.
- **Opus:** Codec sout ma7loul marn w 9lil el ta25ir mwa77ad men taraf IETF ye5dem mli7 f-bitrates watyin, mosta3mel barcha f-fichiers WebM w plateformes es-sout el jdod.
- **AC-3 (Dolby Digital) w E-AC-3 (Dolby Digital Plus):** Codecs sout surround standard 3al DVD, Blu-ray, bath el câble, w services streaming tijariya.
- **FLAC (Free Lossless Audio Codec):** Codec sout open-source men ghir 5saret jawda (lossless) y7afedh 3la mawjet es-sout el aslya men ghir ma ydhaya3 ma3loumet sout.

## 3lech QuickTime ywarri erreur codec na9es 3al Mac?

Wa9t t7awel t7ell fichier vidéo 3la macOS w yjik ta7dhir y9oul "This file cannot be opened" wella "The document could not be opened. QuickTime Player isn't compatible with this file," rak 9oddem 3adam tawafou9 f-codec wella conteneur.

QuickTime Player ya3temed 3la framework Apple AVFoundation, elli yefredh lista baydha sarima mta3 uniform type identifiers (`UTType`). 7asb [watha2e9 da3m Apple](https://support.apple.com/en-us/102831), QuickTime Player ysupporti b-chakel natif:

- Conteneurs: QuickTime Movie (`.mov`), MPEG-4 (`.mp4`, `.m4v`), w ba3dh a8lfa es-sout kima CAF w AIFF.
- Codecs Vidéo: Apple ProRes, H.264, HEVC (8-bit w 10-bit), Motion JPEG, w AV1 (3la matériel M3 wella ajadd daxel conteneurs MP4/MOV).
- Codecs Sout: AAC, Apple Lossless (ALAC), FLAC, Dolby Digital (AC-3), Dolby Digital Plus (E-AC-3), w LPCM mouch mcompresse.

Ken fichier yo5rej 3la hal lista, QuickTime Player y7bes. Ken ttelechargi vidéo m8allfa f-conteneur Matroska (`.mkv`), QuickTime yarfodh y7ellha 7atta ken stream el vidéo daxel howa H.264 3adi ynajem el Mac mte3ek ydécodih. B-nefs el tari9a, ken conteneur MP4 hazz sout mcompresse f-DTS Digital Surround wella Opus, QuickTime y7ell el vidéo b-skout tam 5ater macOS ma fihouch décodeur AVFoundation l-DTS.

Bech tchouf el lista el kamla elli ysupportiha el système, a9ra dalilna 3la [anehom formats el vidéo elli ysupportihom el Mac](/maclc/blog/video-formats-mac-supports/). L-7all machakel el lecture el cha2i3a, chouf el ma9al mte3na 3la [tasli7 erreurs QuickTime file not compatible](/maclc/blog/quicktime-file-not-compatible/).

## Wech test7a9 t'installi packs codecs 3la macOS?

Ken jey l-macOS men Windows, awwel raddet fe3l mte3ek wa9t t9abel vidéo ma te5demch tnajem tkoun ennek tlawwej 3la "Mac codec pack". 3la Windows, packs kima K-Lite Codec Pack kanou ysajjlou filtres DirectShow 3al système lkol bech ay lecteur ynajem ya9ra formats 8riba.

Ma lezemch abadan t7awel ttelechargi wella t'installi packs codecs 3la Mac jdid. Binyet codecs 3al système lkol ma 3adech mawjouda f-versions macOS el jdod.

9bal b-3ou9oud, macOS kan ysupporti binyet QuickTime Component 32-bit elli kanet t5alli plugins kima Perian wella Flip4Mac yda55lou da3m AVI, DivX, w WMV f-QuickTime 7. Apple waffet hal binyet f-2011 w na77at kol code 32-bit f-macOS 10.15 Catalina. F-versions jdod kima macOS 15 Sequoia w macOS 26 Tahoe, AVFoundation msakker w f-sandbox. Installateurs men barra ma ynajmouch yda55lou codecs f-moteur el lecture el natif mta3 Apple.

Sites elli y9addmou packs codecs lel Mac homa taswi9 mo8alleth wella masader malware ywazz3ou adware. Ki t'installihom mouch bech y5alliw QuickTime y5addem el fichiers mte3ek. El 7all el 3amali howa ennek testa3mel lecteur vidéo mosta9ell yjib el décodeurs mte3ou m3ah.

MacLC ylammed 143 librairie open-source, menhom FFmpeg w dav1d, direct daxel dossier l-application. Y5addem MKV, WebM, MP4, AVI, HEVC, AV1, VP9, w sout DTS 3al Mac mte3ek men ghir ma ybaddel fichiers el système wella yotlob packs codecs men barra.

## Kifech tnajem t5addem codecs vidéo mouch mad3oumin 3la Apple Silicon?

5ater ma tnajemch tzid codecs l-QuickTime Player, bech tetfarrej f-formats vidéo motanaw3a 3al Mac lezem testa3mel lecteur vidéo open-source mosta9ell.

Lecteurs médias open-source el jdod yet3addaw framework Apple AVFoundation fel démuxage wed-décodage. F-3oudh hedha, ylammdou librairies multimédia multi-plateformes direct daxel dossier l-application:

1. **Démuxeurs Madmoujin:** Librairies kima `libavformat` w `libmatroska` ya9raw el 8lef el conteneur el barani, swa kan fichier MKV, WebM, AVI, wella MPEG-TS, w yfarzou pistes wel chapitres direct.
2. **Décodeurs Logiciels Mo5asssin:** Librairies kima FFmpeg (`libavcodec`) w `dav1d` mta3 VideoLAN ydécodiw formats vidéo w sout mo3a9da fel logiciel, w yet3amlou m3a profils kima HEVC 10-bit w 12-bit, VP9 Profile 2, w FLAC.
3. **Tasri3 Matériel 3abr VideoToolbox:** Wa9t lecteur open-source y9abel bitstreams standard H.264, HEVC, wella ProRes, ywajjah el paquets el mcompresse direct l-décodeurs el matériel mta3 Apple Silicon b-este3mal API VideoToolbox mta3 Apple.

Ken lezmek t7ell fichier b-edh-dhabt daxel QuickTime Player wella Final Cut Pro, ma test7a9ch tdhaya3 sweya3 w enta ttranscodi el vidéo. Ken el fichier howa conteneur MKV hazz vidéo H.264 wella HEVC standard, tnajem tremucih f-conteneur MP4 f-thawani men ghir ma t3awed tencodi 7atta frame wa7da. Bech teta3allem kifech ta3mel hal tabdil mta3 conteneur, etba3 el dars mte3na 5otwa b-5otwa 3la [kifech t5addem fichiers MKV 3al Mac](/maclc/blog/how-to-play-mkv-on-mac/).

Bech tetfarrej f-vidéo men ghir 9ouyoud formats, jarreb [MacLC men saf7et et-tanzil](/maclc/donate/). Ye5dem b-chakel natif 3la Apple Silicon, y5addem el codecs el 3adiya wel 8riba direct, w yesta3mel décodage matériel VideoToolbox l-H.264, HEVC, w ProRes.

## As2ela yet3awdou

### Chnowa ma3net kelmet codec?

Kelmet codec jeya men coder-decoder wella compressor-decompressor. Tousef logiciel wella matériel elli ysagh-gher données multimédia 5am l-bitstream ra9mi mcompresse w y3awed yabni dak el frames wa9t el lecture.

### Chnowa el far9 el asasi bin el codec wel conteneur?

El codec ycompresse el pixels mta3 et-taswira wella mawjet es-sout b-dhethom, fil wa9t elli el conteneur howa 8lef el fichier elli ylammed dak el streams el mcompresse m3a es-sous-titres wel chapitres f-fichier wa7ed.

### 3lech QuickTime y9oul codec na9es 3al Mac mte3i?

QuickTime Player ya3temed b-sarama 3la framework système Apple AVFoundation, elli ysupporti lista ma7douda mta3 formats kima H.264, HEVC, w ProRes. Ken fichier yesta3mel VP9, AV1 f-MKV, wella sout DTS, QuickTime y7bes b-erreur.

### Wech lezemni ntelechargi pack codecs 3la macOS?

Lé. Packs codecs lel système kolou kima K-Lite wella Perian ma ye5dmouch 3la macOS el jdid. F-3oudh ma tbaddel el système d'exploitation mte3ek, installi lecteur vidéo yjib m3ah librairies décodage open-source mte3ou.

---
MacLC lecteur vidéo gratuit w open-source l-Mac Apple Silicon: https://www.hazenstudio.com/maclc/tn/ · tanzil: https://www.hazenstudio.com/maclc/tn/donate/
