# Chnowa howa CRF? Tafsir l-encodage vidéo b-Constant Rate Factor

> El Constant Rate Factor (CRF) ywazen bin qualité el vidéo w 7ajm el fichier. T3allem el valeurs el mansou7 bihom l-x264 w x265 w kifach tjarreb l-encodage.

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

## Bil mokhtasar

- El Constant Rate Factor (CRF) y7afedh 3la qualité visuelle thebta b-taghyir el quantization 7asb kol scène.
- El échelle temchi men 0 l-51 fi x264/x265, win ra9m a9al ya3ni qualité taswira a3la.
- Kif tbadel el valeur mta3 CRF b-6, 7ajm el fichier el nejim yetdha3ef wella yet9sam 3la thnin ta9riban.
- El valeurs par défaut houma 23 l-x264 w 28 l-x265, 5ater HEVC ydhghot b-kafa2a akber.
- Les encodeurs logiciels fi HandBrake yesta3mlou CRF el 3adi, ama les sliders matériels VideoToolbox ya9lbou el échelle.

El Constant Rate Factor (CRF) howa mode mta3 encodage vidéo y7afedh 3la qualité visuelle thebta fi toul el film b-taghyir el quantité mta3 data elli ya3tiha l-kol scène. B-3aks el méthodes el 9dom elli yefrdhou débit thebet (bitrate fixe) 3al vidéo el kol, el CRF ywazza3 el bits win el 3in el bachariya tchouf et-tafasil: les scènes el m3abya b-7araka w tafasel te5ou data akther, wel 5alfiyet el we9fa wel besita testehlek chwaya bark.

Ken 3andek vidéo dhghat-ha fi HandBrake, wella ktebt script b-FFmpeg, wella 7awwelt vidéo 3ayeli lel archivage, rakk 9abelt el CRF. Ki tefhem kifach te5dem el échelle mta3 CRF—w 3lach el valeurs yetbadlou bin el bibliothèques logiciels wel encodeurs matériels—twalli tnajem t7a9a9 woudhou7 3ali men ghir ma t3abbi el stockage mte3ek.

## Kifach el Constant Rate Factor (CRF) yet7akkem fi qualité el vidéo?

Bech tefhem 3lach el CRF 7assen el compression vidéo numérique, lezem t5ammem fi mochkelt el ta39id mta3 les scènes.

Film kamil mouch kifkif fi kol la7dha. 7dith hadhi bin zouz moumathlin fi koujina mdhawya fih chwaya taghyir fil taswira: el 5alfiya to93od we9fa, t3abir el wejh tetbadel b-chwaya, wel alwen el was3a teb9a thebta 3la mi2at el images. Bel mo9abel, scène d'action fiha fouchik, mé yetcharrach, w mouvements rapides bel caméra twalled kammiya kbira men tafasel mouchawwcha w sri3a.

Ken t'encodi hal film b-Constant Bitrate (CBR)—ya3ni tefrodh 3la kol thanya mel vidéo testehlek 5 Mbps—yadhh-rou zouz machekel:

1. El scène el hedya fil koujina te5ou data akther men elli test7a9ou, w hedha ydha3a3 el stockage 3la pixels we9fa.
2. El scène mta3 el fouchik tejji na9sa data, elli y5alli et-taswira tet7al l-morabba3at mouch wadha7 (macroblocking) w flou 3al 7wef.

El Constant Rate Factor y7ell hal mochkel b-modélisation psychoacoustique w psychovisuelle. Kima mfassar fil [Guide officiel FFmpeg H.264](https://trac.ffmpeg.org/wiki/Encode/H.264), el CRF ybadel el Quantization Parameter (QP) mta3 l'encodeur image b-image w bloc b-bloc:

- Fil scènes elli fiha 7araka kbira wella barcha bruits visuels, el 3in ma tfi9ch bel 5sara el sghira mta3 el compression. L'encodeur yzid el compression chwaya fil blayes el m3a9da bech el fichier ma yekberch barcha.
- Fil scènes el ndhifa wel we9fa elli fiha dégradés melssin, el 3in tfi9 fisa3 bel banding wella el morabba3at. L'encodeur yna9es el compression w ya3ti bits zaydin bech y7afedh 3la tafasel wadha7.

En-natija hiya qualité visuelle moutajensa mel générique mta3 el bidaya 7atta lel e5er. Enti te5tar niveau el qualité elli theb 3lih, wel encodeur y7added el débit elli te7tajou kol scène.

## Chnowma el valeurs CRF el mansou7 bihom l-x264 w x265?

Fil encodeurs logiciels el ma3roufin—`libx264` l-H.264 w `libx265` l-HEVC—el échelle CRF te5dem b-ar9am sa7i7a ma9louba men 0 l-51:

- **CRF 0:** Compression lossless (men ghir 5sara, nafss el pixels mta3 el source, ama el fichier ykoun kbir barcha).
- **CRF 17 l-18:** Qualité kif el original lel 3in (ma tnajemch tfarra9ha 3al source fil tafaroj el 3adi; standard lel archivage).
- **CRF 20 l-23:** Qualité 3alya (tafasel el compression sghira ma tadh-her ken ki tzoumi 3la image fixe; 3amaliya lel tafaroj el youmi).
- **CRF 24 l-28:** Qualité moutawassita (tna3im wadha7 fil tafasel el d9i9a; behia lel téléphones wella el internet win el 7ajm el sghir aham).
- **CRF 51:** Ad3af qualité momkina (morabba3at kbira, ma tesla7ch lel tafaroj).

Fama 9a3da 3amaliya ta7kem x264 w x265: **ki tzid wella tna9es 6, el bitrate mta3 el vidéo yet9sam 3la thnin wella yetdha3ef ta9riban**. Mathalan, film encodé b-CRF 18 ya3ti fichier 9addou marrtin el fichier elli encodé b-CRF 24:

- **CRF 12:** Ta9riban 4× el bitrate par défaut (fichier kbir barcha)
- **CRF 18:** Ta9riban 2× el bitrate par défaut (archivage kif el original)
- **CRF 23:** Bitrate de base 1× (défaut mta3 x264)
- **CRF 29:** Ta9riban 0.5× el bitrate par défaut (fichier sghir lel mobile)

### 3lach x265 yesta3mel CRF 28 par défaut?

Ghalta cha2i3a bin en-nes hiya e5tilaf el valeurs par défaut bin les encodeurs:

- `libx264` yebda b-**CRF 23** par défaut
- `libx265` yebda b-**CRF 28** par défaut

5ater HEVC (H.265) ydhghot el vidéo b-kafa2a akber b-ta9riban 50% men H.264, kif t7ott CRF 28 fi `libx265` ta3ti nafss el woudhou7 mta3 CRF 23 fi `libx264`, ama b-fichier asghar barcha. Ken t7ott `libx265` 3la CRF 23 w tetsawwer elli hiya nafss el qualité mta3 x264, bech ta3mel fichier kbir 3la ghir fayda w tdhaya3 el espace disque.

L-encodeurs AV1 ej-jdod kima SVT-AV1, el échelle CRF tawlet men 0 l-63, wel valeurs el mansou7 bihom bin 24 w 32. Bech tefhem el far9 bin hal codecs, chouf el guide mte3na [H.264 vs H.265 vs AV1](/maclc/blog/h264-vs-h265-vs-av1/).

## Kifach el slider RF mta3 HandBrake ye5talef 3la CRF?

HandBrake howa convertisseur vidéo graphique ma3rouf barcha 3la macOS. Fi onglet Video mta3 HandBrake, el slider mta3 qualité esmou Constant Quality (RF), elli ya3ni Rate Factor.

Wa9t HandBrake yesta3mel el échelle CRF el 3adiya kif te5tar encodeurs logiciels kima `H.264 (x264)` wella `H.265 (x265)`, fama fa5 yestanna el mosta3mlin elli ybadlou lel encodeurs matériels mta3 Apple VideoToolbox.

Kima maktoub fi [Documentation VideoToolbox mta3 HandBrake](https://handbrake.fr/docs/en/latest/technical/video-videotoolbox.html), el échelle yet9leb bin el logiciel wel matériel:

| Nou3 l'Encodeur | Et-tijah mta3 el Slider | El Échelle | Valeur A9al Ya3ni | Valeur A3la Ya3ni | El Valeur el Mansou7 Bih |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **x264 (Logiciel)** | Ymin = Qualité A3la | 0 l-51 (Ma9louba) | Qualité A7sen / Fichier Akber | Qualité Ad3af / Fichier Asghar | RF 20 l-22 |
| **x265 (Logiciel)** | Ymin = Qualité A3la | 0 l-51 (Ma9louba) | Qualité A7sen / Fichier Akber | Qualité Ad3af / Fichier Asghar | RF 24 l-28 |
| **VideoToolbox (Matériel)** | Ymin = Qualité A3la | 0 l-100 (Moubacher) | Qualité Ad3af / Fichier Asghar | Qualité A7sen / Fichier Akber | Qualité 55 l-65 |

Fil interface mta3 HandBrake, ki t7arrek el slider lel ymin dima ya3ni qualité a3la. Ama ken tchouf el ar9am wella tekteb scripts l-`HandBrakeCLI`, el échelles ma yemchiouch m3a ba3dhhom:

- Ken t7ott RF 22 fi `x264`, ta5ou vidéo 1080p ndhifa barcha.
- Ken tbadel l'encodeur l-`H.265 (VideoToolbox)` w t5alli el ra9m 22, VideoToolbox yefhem 22 3la échelle men 0 l-100. El vidéo elli to5rej bech tkoun mghachcha w mfarfcha 5ater 22 ya3ni compression 9wiya barcha fil moteur matériel mta3 Apple.

Lel encodage matériel 3la Mac b-Apple Silicon, 7ott el valeur bin 50 w 65 fi VideoToolbox bech ta5ou natija ndhifa. Bech tethakem fi réglages HandBrake 3la macOS, a9ra el guide [HandBrake 3la Mac](/maclc/blog/handbrake-on-mac/).

## 3lach CRF a7sen men Constant Bitrate lel archivage?

Kif t7eb t5abbi aflam, mosalsalet, wella vidéos 3ayeliya 3la disque local, el CRF 3amatan a7sen men VBR (two-pass) wella CBR:

1. **Qualité thebta men ghir ta5min:** Fil encodage b-bitrate thebet (kima 4,000 kbps), lezem t5ammen 9addech te7taj el vidéo data 9bal ma tchoufha. Film d'action yodhh-hor na9es, w film d'animation ydha3a3 el stockage. M3a CRF, t7ott el qualité elli thebha marra bark, wel encodeur ya3tik el woudhou7 hedheka مهما kenet el vidéo.
2. **Kafa2a fi pass wa7da:** El two-pass VBR el ta9lidi yefrodh 3lik te7seb el fichier el kol mel lowel lel e5er fil pass lowla, w ba3d t'encodi fil pass et-thenya. El CRF ywazza3 el bits b-kafa2a fi pass wa7da, w ywafferلك sweya3 mta3 wa9t.
3. **E9tisad fil stockage:** El aflam el mou7arraka, tasjilet el écran, wel drames elli fihom chwaya 7araka yetdhaghtou automatiquement l-fichiers sghar, w y5alliw el espace lel aflam el m3a9da elli te7taj bitrate a3la.

Bech tet3allem te7seb el bitrates w t9adder 7ajm el fichiers, a9ra el ma9al mte3na [Chnowa howa el bitrate](/maclc/blog/what-is-bitrate/).

## 3lach les services de streaming yesta3mlou plafonds de bitrate?

Ken el CRF behi hakka, 3lach Netflix, YouTube, w Apple TV+ ma ystreamiouch b-CRF sraf?

El sabab howa 7oudoud el débit internet. 5ater el CRF el 7orr ma 3andouch sa9f, la7dha sghira fiha barcha tafasel—kima mé yetcharrach wella confetti—tnajem tطلع el bitrate men 10 Mbps l-80 Mbps l-barcha thawani.

Kif el fichier ykoun 3al SSD mta3 el Mac mte3ek, 80 Mbps 7aja sehla. Ama 3la réseau Wi-Fi fil dar wella 4G/5G, 80 Mbps tnajem tfout el connexion mte3ek, tferregh el buffer, w t5alli el vidéo teta9af.

Bech yemn3ou el coupures, les services de streaming yesta3mlou Constrained CRF wella VBR ma7doud b-paramètres Video Buffer Verifier (VBV):

- L'encodeur y7ott CRF cible lel qualité.
- Yzid m3ah sa9f a9sa lel bitrate (`-maxrate`) w 7ajm el buffer (`-bufsize`).
- Ken scène s3iba totlob 70 Mbps, el VBV yhabbet el pic lel sa9f, b-haka yadhman elli el vidéo ma teta9afch 7atta ken el woudhou7 yon9os chwaya fil la7dha hedhi.

## Kifach t9ayyem el vidéo el encodé 3la Mac?

Ba3d ma tadhghot vidéo b-CRF, el ta9yim ma ya9afch 3and chouf 7ajm el fichier fil Finder. Lezem tthabbet fil taswira b-de99a fi lecteur vidéo behi.

Chouf mli7 el blayes el 7assasa:

- **Tafasel el d9i9a:** Chouf el grain, awra9 el chajar, el 7yout, wel ch3ar. Ken el CRF kan 3ali barcha, hal blayes yodhh-hrou mlasin wella flou.
- **El 7araka el sri3a:** Thabbet fi mouvements el caméra wel action. T2akked elli ma fammech morabba3at wella halat 7awl el 7wef.
- **Edh-dholma wel dégradés:** El scènes el modhlma fi 8-bit hiya lowla elli todhh-hor fiha el banding (khotout alwen). Ken tchouf khotout 9asya fil dholma, jarrab encodi fi 10-bit elli ya3ti dégradés amlas.

MacLC y5addem les fichiers vidéo el madhghouta b-de99a 3alya 3la macOS. El images 10-bit yet3addew direct lel écran men ghir ma yet9assou, w ywarriw kol image ndhifa 3la écrans Liquid Retina XDR men ghir ma ydhalmou tafasel edh-dholma.

MacLC ywaffer raccourcis clavier lel tad9i9 fil lecture, kima synchronisation (`F` / `G` l-ta5ir el sout w `H` / `J` l-ta5ir el sous-titres), captures (`⌘⌥S`), w styles taswira y7afdhou 3al mastering.

Bech tet3allem akther 3al outils vidéo w encodage b-ligne de commande, a9ra el guides mte3na [Dhaght el vidéo 3la Mac](/maclc/blog/compress-video-on-mac/) w [Esti3mal FFmpeg 3la macOS](/maclc/blog/what-is-ffmpeg/).

Ken theb lecteur vidéo open-source w madhmoun ywarrik b-dhabt kifach el fichiers mte3ek yodhh-hrou 3la Apple Silicon, nazzel [MacLC men saf7et el tanzil](/maclc/donate/). Ye5dem nativement men ghir tnaffou5, yda3em aham les formats, w ywarri el bibliothèque mte3ek b-woudhou7 3ali.

## As2ela yet3awdou

### Chnowa ma3neha CRF fl-encodage vidéo?

CRF ma3neha Constant Rate Factor. Hiya méthode dhkia bech tet7akkem fil débit yesta3mlouha les encodeurs open-source kima x264, x265, w SVT-AV1 bech ya3tiw qualité visuelle thebta fi kol scène mel film.

### Wehi a7sen: ra9m CRF a9al wella a3la?

Fil encodeurs logiciels kima x264 w x265, ra9m CRF a9al ya3ti qualité visuelle a3la w fichier akber. El valeur 0 hiya lossless (men ghir 5sara), w 51 hiya ad3af qualité.

### Chnowa a7sen CRF l-vidéo 1080p b-x264?

L-vidéo HD 1080p b-x264, CRF bin 18 w 20 ya3ti qualité kif el original lel archivage. El valeur par défaut 23 ta3ti tawazon behi barcha bin el woudhou7 w 7ajm el fichier.

### 3lach el CRF par défaut mta3 x265 a3la men x264?

El défaut mta3 x264 howa 23, ama x265 par défaut 28. 5ater HEVC ydhghot el vidéo ta9riban 50% a7sen men H.264, CRF 28 fi x265 ya3ti nafss el qualité mta3 CRF 23 fi x264 b-débit a9al.

---
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/
