# Kifech testa3mel ffprobe bech tchouf chnowa da5el fichier vidéo

> T3allem kifech testa3mel ffprobe 3la Mac bech tthabbet fi codecs vidéo, flux audio, bitrates w métadonnées HDR b-texte 3adi wella JSON.

Tnachar nhar 2026-10-31 · Les librairies wel outils · https://www.hazenstudio.com/maclc/tn/blog/how-to-use-ffprobe/

## Bil mokhtasar

- ffprobe howa analyseur flux khfif yji m3a FFmpeg ythabbet fi métadonnées conteneur w codec men ghir ma ydecodi les images.
- Isti3mal -select_streams v:0 y5allik t3zel khasayes piste vidéo kima résolution, fréquence d'images w format pixel.
- Thabita fi color_primaries w color_transfer twarri ken el fichier SDR 3adi (BT.709) wella HDR 7a9i9i (BT.2020 / PQ / HLG).
- MacLC ywarri el jiha el HDR men hedha men ghir terminal: badges fi bibliothèquou, carte format ki yet7all film, wel panneau live fi Réglages › HDR & Couleur.

El commande `ffprobe` hiya analyseur flux multimédia khfif yji m3a FFmpeg ywarri métadonnées techniques mfassla 3al conteneurs, pistes vidéo, canaux audio w sous-titres. B-3aks logiciels montage elli yekhdhou d9aye9 bech yescanniw fichier, `ffprobe` ya9ra headers el fichier w index paquets fi millisecondes men ghir ma yfokk échantillons audio wella images vidéo.

Sawa2 te7taj tverifi ken film mtéléchargi fih alwen 10-bit HDR b-sa7, tthabbet anya canaux audio mawjoudin, wella tba3th métadonnées JSON mnadhmin l-script encodage automatisé, `ffprobe` howa l-outil el standard. Louta tal9a guide l-isti3mal `ffprobe` 3la macOS bech tthabbet fi codecs, tejbed paramètres HDR, w tefhem el sortie.

## Chnowa howa ffprobe w kifech t5addmou 3la Mac?

Ki t'installi FFmpeg 3la Mac Apple Silicon b-Homebrew (`brew install ffmpeg`), Homebrew y7ott zouz outils ra2isiyin fi `/opt/homebrew/bin/`: el convertisseur `ffmpeg` wel analyseur `ffprobe`. Wa9teli `ffmpeg` masnou3 bech y3alej w yekteb fichiers jdod, `ffprobe` howa outil diagnostic l-9raya kahaw.

Ken t5addem `ffprobe` b-chemin fichier entrée bark, y5arrej kol chay yal9ah:

```bash
ffprobe input.mp4
```

Par défaut, `ffprobe` yaffichi barcha stoura mta3 flags compilation mteb3in b-métadonnées conteneur w tafasila flux. Bech tsakket bannière compilation el twila w t5alli sortie terminal mte3ek mokhtasra, dima zid flag `-hide_banner`:

```bash
ffprobe -hide_banner input.mp4
```

Terminal bech yaffichi bloc mokhtasar yfassar format conteneur, modda kolliya, bitrate 3am, w lista mra9ma l-kol flux mghallaf da5el el fichier. Flux vidéo ylistiw asami codecs (kima `h264`, `hevc`, wella `av1`), formats couleur pixel, résolution écran w fréquences d'images. Flux audio ywarriw codec audio (kima `aac`, `ac3`, wella `flac`), fréquences d'échantillonnage b-Hertz, w tartib canaux (kima `stereo` wella `5.1(side)`).

Ken t7eb tefhem kifech FFmpeg w librairies mte3ou y3aljou hal flux wa9t el lecture, a9ra el guide el asasi mte3na 3la [chnowa howa FFmpeg](/maclc/blog/what-is-ffmpeg/).

## Kifech tthabbet fi flux vidéo w codecs mo3ayynin?

Ki tthabbet fi fichiers fihom barcha loughat audio, pistes ta3li9 w flux sous-titres, sortie `ffprobe` el kham tnajem t3abbi fenêtre terminal kemla. Tnajem t3zel flux w champs mo3ayynin b-flags `-select_streams` w `-show_entries`.

### Tlisti kol flux w codecs mte3hom:

Bech tchouf lista ndhifa l-kol flux men ghir zayda mta3 conteneur, 5addem:

```bash
ffprobe -v error -show_entries stream=index,codec_name,codec_type -of default=noprint_wrappers=1 input.mkv
```

### Tafsir el flags:
- `-v error`: Y7ott niveau logs lel erreurs kahaw, w y5abbi ta7dhirat ma3loumatiya w logs traitement.
- `-show_entries stream=...`: Y7assar sortie b-sarama lel champs flux el m7adddin (`index`, `codec_name`, `codec_type`).
- `-of default=noprint_wrappers=1`: Ynadhem sortie k-paires clé-valeur bsaytin men ghir headers blocs kima `[STREAM]` w `[/STREAM]`.

### Thabita fi résolution vidéo, fréquence d'images w format pixel:

Bech t3zel flux vidéo el ra2isi (index flux 0 men naw3 vidéo, makboub `v:0`):

```bash
ffprobe -v error -select_streams v:0 -show_entries stream=width,height,r_frame_rate,pix_fmt -of default=noprint_wrappers=1 input.mp4
```

Hedha yrajja3 arb3a valeurs wadh7in:
- `width=3840` w `height=2160`: Yakked résolution 4K Ultra HD standard.
- `r_frame_rate=24/1`: Fréquence d'images native ma3abbar 3liha b-kasr mathématique b-dhabt (kima 24/1 lel cinéma wella 24000/1001 l-23.976 fps).
- `pix_fmt=yuv420p10le`: Format pixel da5li. Suffixe `10le` ma3naha profondeur couleur 10-bit little-endian, elli yakked di99a alwen a3la men 8-bit standard (`yuv420p`).

*Tafsil commande ffprobe*

## Kifech tthabbet fi métadonnées HDR w courbes transfert couleur?

Wa7da men aham isti3malat `ffprobe` hiya t7added ken fichier 4K fih données mastering High Dynamic Range (HDR) b-sa7 wella howa bark standard dynamic range (SDR) fi conteneur kbir. Asami el fichiers dima yechkrou "HDR" wella "Dolby Vision", ama asami el fichiers yethaltou b-souhoula.

Bech tverifi khasayes alwen vidéo, es2el 3la primaires couleur, caractéristiques transfert w coefficients matrice:

```bash
ffprobe -v error -select_streams v:0 -show_entries stream=color_space,color_primaries,color_transfer,pix_fmt -of default=noprint_wrappers=1 input.mkv
```

### Kifech tefhem el sortie:

| Champ | SDR (Standard Dynamic Range) | HDR10 / Dolby Vision | HLG (Broadcast HDR) |
| :--- | :--- | :--- | :--- |
| **`color_primaries`** | `bt709` | `bt2020` | `bt2020` |
| **`color_transfer`** | `bt709` | `smpte2084` (Perceptual Quantizer / PQ) | `arib-std-b67` (Hybrid Log-Gamma) |
| **`color_space`** | `bt709` | `bt2020nc` (Luminance non constante) | `bt2020nc` |
| **`pix_fmt`** | `yuv420p` (8-bit) | `yuv420p10le` (10-bit) | `yuv420p10le` (10-bit) |

Ken `color_transfer` y9oul `smpte2084`, el fichier yesta3mel courbe Perceptual Quantizer SMPTE ST 2084, elli hiya fonction transfert asasiya l-HDR10 w Dolby Vision. Ken y9oul `arib-std-b67`, el vidéo testa3mel Hybrid Log-Gamma, mosta3mla barcha fi bath talfza w taswir HDR iPhone. L-mo9arna chemla bin hal formats, chouf el guide mte3na 3la [kifech ta3ref ken vidéo HDR](/maclc/blog/how-to-tell-if-a-video-is-hdr/).

### Thabita fi luminance écran mastering (MaxCLL w MaxFALL):

Fichiers HDR10 fihom zeda métadonnées statiques y7adddou pic luminosité écran mastering w a3la niveaux dhaw fil film. Bech ta9ra hal données latérales mel awwel image vidéo, 5addem:

```bash
ffprobe -v error -select_streams v:0 -show_frames -read_intervals "%+#1" -show_entries frame=side_data_list -of json input.mkv
```

Lawej 3la objets `Mastering display metadata` w `Content light level metadata` fi réponse JSON:
- `max_content`: Maximum Content Light Level (MaxCLL), ywarri adhwa pixel wa7ed fil vidéo el kol (mathalan 1,000 nits).
- `max_average`: Maximum Frame-Average Light Level (MaxFALL), ywarri a3la moyenne luminosité l-ayy image wa7da.

## Kifech texporti sortie ffprobe k-JSON mnadhem?

Kenek tekteb scripts Python, automatisations shell, wella workflows ingestion, 9rayet chaînes texte 3adiya totlob parsing regex hach. Fi blastou, omor `ffprobe` ynadhem rapport mte3ou el kol k-JSON mnadhem ki tzid `-of json`:

```bash
ffprobe -v error -show_format -show_streams -of json input.mkv
```

El sortie elli to5rej fiha zouz objets JSON ra2isiyin:
1. `"streams"`: Lista mta3 objets fiha kol flux vidéo, audio w sous-titre m3a kol attributs techniques mte3ou kemlin.
2. `"format"`: Objet fih métadonnées niveau conteneur, kima esm el fichier, 7ajm b-octets, wa9t bidaya, modda kolliya b-thweni makhsoura, bitrate 3am b-bits par seconde, w tags conteneur (kima 3onwen, artiste, version encodeur w tarikh création).

Tnajem tba3th hal sortie direct l-processeurs JSON ligne de commande jdod kima `jq`:

```bash
ffprobe -v error -show_format -of json input.mkv | jq '.format.bit_rate | tonumber / 1000000'
```

Hal pipeline wa7dou yejbed bitrate flux el kolli, y7awelou l-ra9m, w yaffichi débit 3am b-mégabits par seconde (Mbps). Bech tet3allem chnowa el bitrates elli ydellou 3la vidéo haute fidélité, a9ra el guide mte3na 3la [chnowa howa bitrate](/maclc/blog/what-is-bitrate/).

## Kifech ffprobe yet9aren m3a MediaInfo?

El zouz `ffprobe` w `MediaInfo` houma outils inspection média open-source mo7tarmin barcha, ama ynesbou toro9 khedma mo5talfin.

`ffprobe` joz2 men code FFmpeg. Ma yotlobch installation mosta9la ken deja 3andek FFmpeg, w mnasab barcha l-scripts shell automatisés, pipelines intégration continue w serveurs bla écran. Ama, 9rayet sortie `ffprobe` kham totlob ma3rfa b-flags ligne de commande w ikhtisarat handaset el vidéo.

`MediaInfo`, mtatwer men MediaArea, ya3ti wajiha graphikiya dédiée 3la macOS b-janb CLI mte3ou. Ynadhem métadonnées fichier fi vues Arbre, Feuille w Texte mnadhmin yjamm3ou ma3loumat conteneur, vidéo, audio w sous-titres fi molakhasat sahlin lel 9raya. MediaInfo yetkhasas zeda fi décodage mouachirat Dolby Vision Profile m3a9din (kima tafri9 Profile 5 men Profile 8.1) b-klem wadha7.

Ken tfa7el app bureau visuel b-drag-and-drop sahla, MediaInfo 3adatan a9rab choix. T3allem kifech t'installih w tconfigurih fil guide mte3na l-[MediaInfo 3la Mac](/maclc/blog/mediainfo-on-mac/).

MacLC yna7i el 7aja bech t5addem commandes terminal bech tthabbet fi fichiers vidéo mte3ek. Vue bibliothèque mte3ou twarri badges 4K, HDR10 w Dolby Vision fil 7in, wa9teli carte format el madmouja t9ollek chnowa el formats elli yhezzhom film w kifech yet2affichaw 3la écranek. 7ell Réglages › HDR & Couleur bech tchouf profondeur de bits, primaires couleur w headroom écran en temps réel wa9t el lecture.

## Chnowa ta3mel ba3d

Isti3mal `ffprobe` howa a2man tari9a bech tverifi chnowa codecs w espaces couleur yesta3mlouhom fichiers vidéo mte3ek 9bal ma tarchivihom wella t7awelhom. Jarrab 5addem `ffprobe -hide_banner` 3la chwaya fichiers fi bibliothèquek, w esta3mel wasafat `-select_streams v:0` elli fou9 bech tthabbet b-sor3a mel résolution w métadonnées HDR.

Ken t7eb tchouf ma3loumat vidéo mfassla men ghir ma t7ell Terminal kol marra, a9ra el guide mte3na 3la [MediaInfo 3la Mac](/maclc/blog/mediainfo-on-mac/). W ki t7eb tetfarrej fi aflam HDR10 w Dolby Vision haute bitrate b-kachef format automatique w accélération matérielle 3la Mac Apple Silicon mte3ek, jarrab [MacLC](/maclc/donate/).

## As2ela yet3awdou

### Mnin njib ffprobe 3la Mac?

ffprobe yet'installa automatiquement kol ma t'installi FFmpeg عبر Homebrew b-brew install ffmpeg. Mawjoud fi /opt/homebrew/bin/ffprobe 3la Macs Apple Silicon.

### Kifech nthabbet ken vidéo HDR b-ffprobe?

5addem ffprobe -v error -select_streams v:0 -show_entries stream=color_primaries,color_transfer input.mkv. Ken color_primaries ywarri bt2020 w color_transfer ywarri smpte2084 wella arib-std-b67, el vidéo HDR.

### Chnowa el far9 bin ffprobe w MediaInfo?

ffprobe howa outil ligne de commande madmouj fi FFmpeg masnou3 lel thabita fil terminal w scripts automatisés b-sortie JSON. MediaInfo ya3ti CLI terminal w wajiha graphikiya native lel bureau b-vues Arbre w Texte.

### ffprobe ynajem y7awel wella y3awed yencodi fichiers vidéo?

Lé. ffprobe howa analyseur flux w formats l-9raya kahaw. Bech t7awel, tremuxi wella t3addel fichiers média, esta3mel commande ffmpeg fi blastou.

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