Chnowa howa FFmpeg? El moteur elli wost 9rib kol app vidéo
FFmpeg howa el moteur open-source elli y5addem el lecteurs, les éditeurs, wel streaming. Efhem chnowa ya3mel w 3lach el lecteur mte3ek y3ammel 3lih.
Bil mokhtasar
- FFmpeg howa framework multimédia open-source fih outils terminal w bibliothèques C lel décodage, encodage, w remuxing.
- Bibliothèques kima libavcodec w libavformat y5addmou apps kima VLC, mpv, HandBrake, Google Chrome, wel serveurs cloud.
- FFmpeg ynajem yremuxi el conteneurs fi thawani men ghir ma y3awed y'encodi, b-3aks el convertisseurs elli y3awdou yadhghtou kol image.
- MacLC ydammej bibliothèques FFmpeg direct wost el app, w ya3tik lecture l-kol chay 3la Apple Silicon men ghir terminal.
Fi hal saf7a
- Chnowa howa FFmpeg w kifach ye5dem?
- Chnowma el bibliothèques el asasiya wost FFmpeg?
- Anehoma el apps el youmiya elli yesta3mlou FFmpeg?
- Chnowa el far9 bin FFmpeg w HandBrake?
- Kifach FFmpeg morkhas: LGPL vs GPL?
- Chnowma el outils elli yjiw m3a FFmpeg?
- Kifach FFmpeg yesta3mel accélération matérielle Apple Silicon?
- Lezemni n’installi FFmpeg 3al Mac mte3i?
- Chnowa ta3mel ba3d?
FFmpeg howa framework multimédia gratuit w open-source ynajem ydecodi, y’encodi, yconverti, yremuxi, yfiltri, w ystreami ta9riban kol format sout w taswira mawjoud. Mawjoud ka outils terminal lel ligne de commande, w ka majmou3a mta3 bibliothèques logicielles t5addem el moteurs mta3 el apps el ma3roufin.
Kol ma t7ell vidéo fi VLC, tconverti la9ta fi HandBrake, t5addem vidéo fi Google Chrome, wella tetfarrej 3la YouTube, code FFmpeg 9a3ed ye5dem wra el kweyes. Sna3ou el barnamej el fransawi Fabrice Bellard fi 2000, w kber bech walla el banya el asasiya mta3 el vidéo numérique 3la macOS, Linux, Windows, wel mobiles.
Chnowa howa FFmpeg w kifach ye5dem?
Fi asasou, FFmpeg howa pipeline kamil l-mo3aljet el flux multimédia. El vidéo numérique ma tejich b-images mouch madhghoutin: thanya wa7da men vidéo 4K 60 fps men ghir compression tekel akther men gigabyte. Fi blasstou, el caméras yadhghtou el vidéo b-codecs w y7ottouhom wost conteneurs.
FFmpeg y3alej hal fichiers b-mara7el mratba. Lowel, y7added el conteneur (kima MKV, MP4, WebM, wella MOV). Ba3d, ya9sem el conteneur l-flux mosta9illin: vidéo, pistes sout, sous-titres, chapitres, w métadonnées.
Kif yetfaslou el flux, FFmpeg ywajjeh kol we7ed lel décodeur mte3ou. El décodeur yraja3 el data el madhghouta l-images pixels w mawjet sout fil mémoire. Ken tconverti el fichier, el moteur de filtrage ynajem ybadel el 7ajm, el alwen, wella el frame rate 9bal ma y3awed y’encodihom w y7othom fi conteneur jdid.
5ater FFmpeg yda3em mi2at el formats, yet3amel m3a caméscopes el 9dom b-nafss el kafa2a mta3 flux 10-bit HDR ej-jdod.
Animation
Wost lecteur: mel fichier lel chacha
- Fichier MédiaMKV, MP4, WebM
- libavformatYefsel el conteneur
- libavcodecYdecodi vidéo & sout
- libswscale / filtresYbadel 7ajm & alwen
- AffichageMetal / Écran
Chnowma el bibliothèques el asasiya wost FFmpeg?
Wa9t el mosta3mlin fil terminal yektbou ffmpeg -i input.mp4, el développeurs yorbtou el apps mte3hom b-bibliothèques C mta3 FFmpeg:
- libavcodec: Fiha mi2at el décodeurs w encodeurs (H.264, HEVC, VP9, AV1, ProRes, MP3, AAC, FLAC, AC-3, Dolby Digital).
- libavformat: Ta9ra w tekteb el conteneurs (MKV, MP4, AVI, WebM, TS, MOV, Ogg) w protocoles streaming kima HLS w DASH.
- libavutil: Bibliothèque mta3 outils riyadhiya, idaret el mémoire, w ta3rif el formats pixels.
- libavfilter: Système filtres lel rognage, rotation, redimensionnement, tone mapping, désentrelacement, w normalisation el sout.
- libswscale: Tbadel formats el alwen (kima YUV 4:2:0 l-RGB) w tbadel 7ajm el images.
- libswresample: Tbadel fréquence el sout (kima 48 kHz l-44.1 kHz) w ta3mel downmix men 5.1 l-stéréo.
El développeurs yerkbou hal bibliothèques bech yasna3ou apps men ghir ma y3awdou yektbou algorithmes de compression mel sfer. A9ra akther fi Chnowa howa el codec.
Anehoma el apps el youmiya elli yesta3mlou FFmpeg?
Ta9riban kol app t5addem, tmodifi, wella tstreami vidéo t3ammel 3la FFmpeg:
| Application wella Service | Kifach Yesta3mel FFmpeg | El Bibliothèque el Asasiya |
|---|---|---|
| VLC media player | Yefsel el conteneurs w ydecodi formats elli ma yefhamhomch el système | libavcodec, libavformat |
| mpv w IINA | Moteur décodage, séparation, w filtres logiciels 3la macOS | libavcodec, libavfilter |
| HandBrake | Décodage 3am w encodage logiciel l-MP4 w MKV | libavcodec, libavformat |
| Google Chrome & Chromium | Ydecodi formats web maftou7in, WebM, w Opus | libavcodec, libavformat |
| Blender | Import w export vidéo/sout fil Video Sequence Editor | libavcodec, libavformat |
| Audacity | Import w export l-formats kima AAC, AC-3, w WMA | libavformat, libavcodec |
| Plex & Jellyfin | Transcodage 3al serveur bech ybadlou fichiers kbar l-H.264 | Compilations FFmpeg mokhassasa |
| YouTube & Vimeo | Serveurs cloud y7awlou el vidéowat el marfou3a l-barcha résolutions | Clusters FFmpeg kbar |
Kif t’installi logiciel média 3al Mac, ghaleban rakk t5addem fi compilation FFmpeg wost interface AppKit. Chouf kifach VLC ynaddhem hal ajza2 fi Chnowa howa libVLC.
Chnowa el far9 bin FFmpeg w HandBrake?
Rغم elli HandBrake yesta3mel FFmpeg, kol we7ed 3andou dawrou.
HandBrake howa convertisseur graphique bech tbadel fichiers l-MP4, MKV, wella WebM. HandBrake dima y3awed y’encodi el vidéo. 7atta ken el fichier el asly fih H.264 ndhif, HandBrake ydecodi kol image w y3awed yadhghotha, elli ya5ou wa9t, yakol batterie, w yna9es chwaya mel qualité.
FFmpeg ynajem ybadel el conteneur men ghir ré-encodage. B-option -c copy, FFmpeg ye5ou el flux kima howa men MKV w y7ottou fi MP4 fi 2 wella 3 thawani. Ken fichier MKV ma y7ebch yet7all fi QuickTime, FFmpeg y7awlou l-MP4 men ghir ma ymess el vidéo.
FFmpeg ya3mel zeda extraction sout, 9assan da9i9, w automatisation b-scripts. Chouf HandBrake 3la Mac w Cheat sheet commandes FFmpeg.
Kifach FFmpeg morkhas: LGPL vs GPL?
FFmpeg mo5rej ta7t licence GNU Lesser General Public License (LGPL-2.1-or-later). El LGPL t5alli apps open-source w apps tijariya yorbtou m3a bibliothèques FFmpeg men ghir ma y7ellou codehom el khas, b-chart ennou el mosta3mel ynajem ybadel hal bibliothèques.
Ama FFmpeg fih zeda options l-bibliothèques ta7t GPL (GPL-2.0 wella GPL-3.0). Ken tcompili FFmpeg b---enable-gpl bech tda5el libx264 wella libx265, el programme el kol ywalli ta7t GPL.
Ta7t GPL, ay app tdammej hal binaire lezemha tpartagi codeha el kamil ta7t GPL. El apps el tijariya ycompiliw b-LGPL w yesta3mlou encodeurs matériels, ama el projets open-source yesta3mlou GPL. Chouf saf7et el qanoun mta3 FFmpeg.
Chnowma el outils elli yjiw m3a FFmpeg?
El projet FFmpeg ya3ti 3 programmes terminal:
- ffmpeg: El moteur el asasi lel conversion, remuxing, filtres, w streaming.
- ffprobe: Mo7allel flux. Ywarrik ma3loumet technique 3al fichier (codecs, pixels, frame rate, alwen, bitrates) b-texte wella JSON. A9ra Kifach testa3mel ffprobe.
- ffplay: Lecteur sghir mabni 3la SDL yesta3mlouh el développeurs bech ytestiw el flux wel filtres fisa3.
Kifach FFmpeg yesta3mel accélération matérielle Apple Silicon?
3la Mac Apple Silicon (M1 l-M4), el encodage wel décodage ynajmou ye5dmou 3al CPU wella 3al matériel 3abr Apple VideoToolbox.
El décodage logiciel y5alli el CPU ye7seb kol image, elli yakol batterie akther. M3a VideoToolbox, FFmpeg yab3ath el flux lel puces el mokhassasa, w yhabbet estihlek el CPU.
Lel encodage, FFmpeg fih h264_videotoolbox w hevc_videotoolbox elli yconvertiw b-sor3a w men ghir ma yaskhon el Mac. Ama el encodage logiciel b-libx265 w CRF ya3ti fichiers asghar b-20% l-30% fi nafss el qualité, rغم elli ya5ou wa9t akther.
Lezemni n’installi FFmpeg 3al Mac mte3i?
Tetwa9ef 3la estiemalek:
- Ken theb tetfarrej fi vidéowat bark: Ma test7a9ch t’installi FFmpeg. MacLC, VLC, w IINA fihom
libavcodecwlibavformatwost el app. - Ken t5addem scripts wella outils terminal: Lezem t’installi FFmpeg. Outils kima
yt-dlpyest7a9ouh bech ylas9ou el vidéo wel sout ba3d el tanzil. - Ken theb tremuxi men ghir ré-encodage: FFmpeg y7awel MKV l-MP4 fi thawani wella yna7i pistes sout/sous-titres mel terminal.
3la Apple Silicon, as-hel tari9a hiya Homebrew b-brew install ffmpeg, elli t7ott binaires ARM64 fi /opt/homebrew/bin/. Chouf el guide Kifach t’installi FFmpeg 3la Mac.
Chnowa ta3mel ba3d?
Ken te5dem b-fichiers vidéo, ta3allom FFmpeg ywafferlek sweya3. A9ra Kifach t’installi FFmpeg 3la Mac w Cheat sheet commandes FFmpeg.
Ama ken hadafek tetfarrej fi aflamek b-salasa men ghir machekel formats, ma test7a9ch terminal. Nazzel MacLC l-lecture Apple Silicon b-accélération matérielle w modes sout mokhassasa.
As2ela yet3awdou
Chnowa ma3neha FFmpeg?
El "FF" ma3neha "Fast Forward" (mel boutons mta3 lecteurs el vidéo), w "MPEG" hiya Moving Picture Experts Group elli sna3et standards kima MP4 w H.264.
Est-ce que FFmpeg amen lel Mac?
Ey. FFmpeg projet open-source ytabb3ouh développeurs mel 3alam el kol men 2000. Ma fih la spyware, la télémétrie, la pub. Kif t'installih b-Homebrew wella mel masder el rasmi, howa amen 100%.
Chnowa el far9 bin FFmpeg w HandBrake?
FFmpeg howa moteur terminal w bibliothèques ynajem yconverti, ystreami, yfiltri, w yremuxi men ghir 5sara. HandBrake howa application graphique testa3mel FFmpeg ta7t el ghta ama dima t3awed t'encodi el vidéo.
Lezemni n'installi FFmpeg bech netfarrej fi vidéowat 3al Mac?
Lé. Wa9t el scripts fil terminal yest7a9ou FFmpeg men Homebrew, el lecteurs kima MacLC w VLC yjiw b-bibliothèques FFmpeg madmoujin fihom, donc ma test7a9ch tmess el terminal.