# Chnowa howa libass? El librairie elli t5addem sous-titres ASS

> libass howa el moteur open-source elli yaffichi sous-titres ASS w SSA b-styleshom. A3ref kifeh y5addem el polices, karaoke w animations.

Tnachar nhar 2026-10-31 · Les librairies wel outils · https://www.hazenstudio.com/maclc/tn/blog/what-is-libass/

## Bil mokhtasar

- libass howa el moteur open-source el standard lel formats sous-titres SSA w ASS.
- Yaffichi typographie m3a9da, rasmat vectoriels, marges khassa w effets karaoke.
- libass ychargi el polices el mdamjin fi west conteneur Matroska (MKV) directement.
- Mawjoud fi 9rib kol lecteurs open-source: mpv, VLC, IINA, HandBrake w MacLC.
- El lecteurs elli ma fihomch libass yfaskhou el styles w ywarriw texte 3adi wella code m5allat.

`libass` howa moteur affichage sous-titres portable w open-source masnou3 5assatan lel formats Advanced SubStation Alpha (ASS) w SubStation Alpha (SSA). Maktoub b-C w ta7t licence ISC, w howa el moteur de typographie el asasi fi 9rib kol lecteur vidéo open-source w logiciel de transcodage el youm.

Ki tetfarrej fi anime wella film ajnabi w tchouf ktiba b-police khassa tabba3 lafta 3al 7it, paroles karaoke yech3lou m3a el mousi9a, wella sous-titres m7attoutin el fou9 bech ma yghattiwch el générique, rak tetfarrej fi 5edmet `libass`.

## Chnowa el far9 bin SRT w sous-titres ASS b-style?

Kima chofna fi [chnowa howa fichier SRT](/maclc/blog/what-is-an-srt-file/), el format SubRip (`.srt`) howa juste liste mta3 wa9t w texte. Ma ya3tich lel lecteur 7atta ta7akkom fil police, el blasa b-di99a, el rotation wella el alwen.

Advanced SubStation Alpha (`.ass`) ye5dem ka script graphiques vectoriels, ma9soum l-tlatha 9sam:

- **`[Script Info]`:** Fih métadonnées el document, kima résolution el canvas (`PlayResX: 1920`, `PlayResY: 1080`).
- **`[V4+ Styles]`:** Y3arref el modèles de typographie (police, taille, loun, 7oudoud, dhall, alignement).
- **`[Events]`:** Fih kol star dialogue m3a tags inline ybadlou el géométrie wel mouvement.

```text
Sample ASS Dialogue Cue:
Dialogue: 0,0:01:24.10,0:01:27.50,MainStyle,,0,0,0,,{\pos(960,1020)\fad(200,200)\c&H00FFFF&}Warning: System Overheat
```

Fi hal star, `\pos(960,1020)` y7ott el ktiba fi coordonnées mo7addadin, `\fad(200,200)` ya3mel fondu 200ms, w `\c&H00FFFF&` ylawwen el 7orouf b-cyan. Afficheur texte 3adi ma yefhemch hal tags; lezem `libass`.

## Chnowa el effets elli ynajem libass yersomhom?

- **Placement libre 3al écran:** B-coordonnées X w Y (`\pos(x,y)`), bech el tarjama tji fou9 laftat el film.
- **Rasmat vectoriels:** Courbes de Bézier w 5otout (`\p1`) bech ta3mel bulles w bannières.
- **Transformations 3D:** Rotation 3la 3 axes (`\frx`, `\fry`, `\frz`), inclination w flou gaussien (`\blur`).
- **Timing karaoke:** Ma9ate3 bel milliseconde (`\k`, `\kf`) yetlawwnou wa9t el ghna.
- **Ktiba m3a9da & bidirectionnelle:** Yekhdem m3a HarfBuzz, FriBidi w FreeType bech yed3em el 3arbi (tachbik w ymin-l-ysar) wel yapani el 3amoudi.

## Kifeh libass yesta3mel el polices el mdamjin fi MKV?

Zman, ken el mou2allef yesta3mel police nadra w ma hech installée 3and el moucharred, el lecteur ybadelha b-Arial w yefsed el design. El conteneur Matroska (`.mkv`) 7all hal mochkel bel Attachments ([RFC 9559](https://www.rfc-editor.org/rfc/rfc9559.html)): tnajem t7ott fichiers `.ttf` w `.otf` directement fi west el `.mkv`.

Ki lecteur y7ell MKV fih polices mdamjin w piste ASS:
1. El démuxeur y5arrej el polices lel mémoire.
2. `libass` yfarkes fi hal mémoire 9bal ma ychouf polices el système.
3. Yla9i el police el matlouba w yaffichiha b-di99a men ghir ma t'installi 7atta police fi macOS Font Book.

Chouf [MKVToolNix 3al Mac](/maclc/blog/mkvtoolnix-on-mac/) l-tafasil el damj.

## Chkoun yesta3mel libass fil écosystème vidéo?

`libass` mouch lecteur wa7dou, howa librairie C moudamja fi aghlab el logiciels libres ([GitHub libass](https://github.com/libass/libass)):

| Logiciel | Tari9et el damj | Dawr libass |
| :--- | :--- | :--- |
| **MacLC** | Librairie moudamja (`libass.9`) | Affichage sous-titres b-abyadh SDR fou9 HDR |
| **mpv** | Dépendance asasiya | Moteur affichage lel ktiba wel OSD |
| **VLC 3.0 / 4.0** | Module (`ass.c`) | Affichage lel pistes SSA/ASS |
| **FFmpeg** | Filtre `libavfilter` | Inkrustation sous-titres (`-vf subtitles=...`) |
| **HandBrake** | Pipeline transcodage | Inkrustation pistes ASS wa9t el conversion |

## 3lech lecteurs men ghir libass ywarriw texte 3adi wella code?

QuickTime Player mta3 Apple ma ya3rafch ASS jemla; ya9ra ken Apple Timed Text (tx3g) w WebVTT. W ba3dh el lecteurs el o5rin ya yna7iw el tags w ywarriw ktiba baydha 3adiya, ya ytba3ou el code el خام kima `{\an8\fs24\c&H0000FF&}` fou9 el écran.

B-5lef sous-titres bitmap kima PGS mta3 Blu-ray, ASS yet7seb wa9t el lecture. Chouf [sous-titres PGS mfassrin](/maclc/blog/pgs-subtitles/).

MacLC ydammej libass directement fi west el 143 librairies open-source mte3ou. Yaffichi el typographie vectorielle, el animations, wel polices el mdamjin fil MKV, w y5alli el sous-titres b-abyadh SDR fou9 el HDR.

## Chnowa 7oudoud performance libass?

`libass` yersom 3al CPU mouch 3al GPU. Fi 99% mel aflem, les puces Apple Silicon (M1–M4) ye7sbouh fi quelques microsecondes. Ama fi 7alat nadra (openings anime fihom alaf particules vectorielles w flou 3la 4K 60fps), ynajem yekel CPU. L-7osn el 7adh, el versions el jdod fihom cache d'images w multithreading bech yab9a sles 3la Apple Silicon.

Bech tetmatta3 b-sous-titres ASS 3al Mac men ghir conversion, nazzel [MacLC mel page mta3 el tanzil](/maclc/donate/).

## As2ela yet3awdou

### Chnowa ya3mel libass?

libass howa librairie logicielle ta9ra w taffichi scripts sous-titres SubStation Alpha (.ssa) w Advanced SubStation Alpha (.ass). Yersom chkal vectoriels, polices khassa, 7oudoud mlawnin w animations image b-image fou9 el vidéo.

### Chnowa el far9 bin sous-titres SSA w ASS?

SubStation Alpha (SSA v4.0) ken el format el asasi lel fansub anime fi e5er el tes3inet. Advanced SubStation Alpha (ASS v4.0+) zed rasmat vectoriels, flou, rotation w mise en forme d9i9a.

### 3lech el sous-titres ywarriw code ghrib kima {\pos(200,300)} fi ba3dh el lecteurs?

Wa9t lecteur ma fihouch libass, ya9ra el fichier ASS ka texte 3adi. Fi 3oudh ma ytabba9 el placement wel style, yaffichi el code el maktoub directement 3al écran.

### Ynajem libass yaffichi 7orouf mouch latiniya kima el 3arbi wel yapani?

Ey. B-da3m FreeType, HarfBuzz w FriBidi, libass yed3em el 7orouf el mchabka, el ktiba mel ymin lel ysar (3arbi, 3ibri) wel 7orouf el asiyawiya.

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