T3adda direct lel contenu

Kifech t5arrej sous-titres men MKV 3al Mac (outils balesh)

5arrej sous-titres SRT, ASS, wella PGS men MKV 3la macOS b-MKVToolNix wella FFmpeg. T3allem el commandes w 3lech ghalben ma test7a9ech.

Bil mokhtasar

  • Tnajem t5arrej pistes sous-titres intégrées men MKV f-thweni b-MKVToolNix wella FFmpeg.
  • Pistes texte kima SRT w ASS yo5rjou direct k-fichiers textes ma9riyin.
  • Pistes Blu-ray PGS yo5rjou k-fichiers images SUP yest7a9ou logiciel OCR bech yetbadlou l-texte.
  • Ta5rij sous-titres 3omrou ma yotlob ré-encodage lel vidéo wella el sout.
  • Lecteurs Mac el jdod ya9raw sous-titres MKV direct, donc el extraction optionnelle.
Fi hal saf7a
  1. Ya5i berrasmi test7a9 t5arrej sous-titres men MKV mte3ek?
  2. Kifech ta3ref pistes sous-titres elli da5el MKV?
  3. Tariqa 1: Kifech t5arrej sous-titres b-MKVToolNix
  4. Tariqa 2: Kifech t5arrej sous-titres b-FFmpeg
  5. Chnowa el far9 bin ta5rij pistes texte w pistes bitmap?
  6. Kifech testa3mel sous-titres elli 5arrejt-hom?

Bech t5arrej sous-titres men fichier MKV 3al Mac, tnajem testa3mel MKVToolNix (b-outil ligne de commande mkvextract wella outils graphiques mte3ou) wella FFmpeg fel Terminal. Ez-zouz outils balesh, open-source, w ydémuxiw pistes sous-titres f-thweni men ghir ma y3awdou yencodiw el vidéo.

Barcha mosta3mlin Mac yetsawrou ennou yelzmhom y5arrjou sous-titres 5ater QuickTime Player mta3 Apple ma ya9rach fichiers Matroska wella flux sous-titres intégrés. Sa7i7 ta5rij el pistes lazim ken t7eb tbadel el klem, ttarjem, wella t7otthom f-logiciel montage, ama ghalben ma test7a9ech t5arrej sous-titres ken bech tetfarrej fel film.

Ya5i berrasmi test7a9 t5arrej sous-titres men MKV mte3ek?

9bal ma t7ell Terminal wella tnazzel logiciels conversion, es2el rou7ek 3lech t7eb t5arrej fichier sous-titres.

Ken hadfek el asasi tetfarrej fel vidéo b-sous-titres 3al Mac, el extraction mar7la zeyda. El conteneur Matroska (.mkv) tsana3 5issisan bech yajma3 barcha pistes audio, chapitres, w sous-titres b-barcha loughat f-fichier wa7ed.

Animation

Inside a video file: one container, many tracks

Sintel.mkvMatroska container

  • VideoHEVC · 4K · 10-bit HDR→ Video decoder
  • Audio · EnglishE-AC-3 5.1→ Audio decoder
  • Audio · FrenchAAC stereo→ Audio decoder
  • Subtitles · EnglishSRT text→ Subtitle rendererConverted to MP4 timed text
  • Subtitles · JapaneseASS, styled→ Subtitle rendererNo standard place in MP4
  • Chapters12 chapters→ Player menu
  • AttachmentsFonts for the styled subtitles→ Subtitle rendererNo standard place in MP4
A container is a box; the codecs are what is in it. A player reads the box (demuxing) and sends each track to its own decoder. MKV can carry almost anything; MP4 is stricter, which is why styled subtitles and fonts don’t survive the trip.

QuickTime Player yorfdh y7ell fichiers MKV 5ater framework AVFoundation mta3 Apple ma yed3amch conteneur Matroska, kima mawjoud fel guide mte3na 3la anehom formats vidéo yed3emhom el Mac. Ama lecteurs open-source el jdod ya9raw pistes sous-titres MKV intégrées fisa3. Y5alliwk tbadel bin el loughat, t3addel el taw9it, w taffichi el klem direct mel conteneur men ghir ma yasna3ou fichiers zeydin 3la disquek.

Test7a9 t5arrej sous-titres ken ken t7eb:

  • Tbadel wella t3addel taw9it el klem f-éditeur texte.
  • Tda5el sous-titres f-logiciels montage kima Final Cut Pro wella DaVinci Resolve.
  • Tuploadi sous-titres wa7adhom l-YouTube, Vimeo, wella sites web.
  • Tbadel sous-titres images men disques l-fichiers texte 5faf b-OCR.

Kifech ta3ref pistes sous-titres elli da5el MKV?

Fichier MKV ynajem ykoun fih 3acharat flux données mosta9lin, bima fihom vidéo 4K, sout surround 7.1, commentaires réalisateur, w sous-titres b-10 loughat. 9bal ma t5arrej piste sous-titres, lezmek ta3ref ra9m el piste wel format mte3ha.

Tnajem tchouf el flux ed-da5iliyin b-mkvmerge wella ffprobe f-Terminal macOS.

7ell Terminal (mawjoud f-/Applications/Utilities/) w executi el commande hedhi:

mkvmerge -i "Movie.mkv"

El terminal yaffichi lista mta3 kol flux da5el el conteneur:

File 'Movie.mkv': container: Matroska
Track ID 0: video (HEVC/H.265)
Track ID 1: audio (DTS-HD Master Audio)
Track ID 2: subtitles (SubRip/SRT) [language:eng]
Track ID 3: subtitles (SubRip/SRT) [language:spa]
Track ID 4: subtitles (HDMV PGS) [language:eng]

Fel mithal hedha, Track ID 2 hiya piste texte SubRip (.srt) anglais, Track ID 3 piste espagnol, w Track ID 4 piste bitmap Blu-ray (.sup) anglais. Sajjel ra9m Track ID mta3 el lougha elli t7eb t5arrejha.

Tariqa 1: Kifech t5arrej sous-titres b-MKVToolNix

MKVToolNix howa suite el logiciels el asasiya l-san3an w ta3dil fichiers Matroska, men Moritz Bunkus. Fih outil ligne de commande m5asses lel extraction esmou mkvextract.

Mar7la 1: Installi MKVToolNix 3la macOS

As-hel tariqa bech t’installi MKVToolNix 3la Mac Apple Silicon hiya b-Homebrew:

brew install mkvtoolnix

Wella tnajem tnazzel el fichier .dmg el rasmi men site MKVToolNix el rasmi w tejbed l-application l-dossier /Applications.

Mar7la 2: Executi mkvextract fel Terminal

Ba3d el installation, esta3mel commande mkvextract b-argument tracks, esm el fichier el asli, w Track ID marbout b-esm el fichier elli t7ebou:

mkvextract tracks "Movie.mkv" 2:"subtitles_english.srt"

Ken t7eb t5arrej barcha pistes sous-titres f-nafs el wa9t f-commande wa7da, efredh-hom b-espace:

mkvextract tracks "Movie.mkv" 2:"english.srt" 3:"spanish.srt"

mkvextract ya9ra paquets el conteneur w yekteb fichier sous-titres fel dossier elli rak fih f-2 l-3 thweni. 5ater 7atta donnée vidéo wella audio ma tetbadel, el 3amaliya ta9riban ma tekouch batterie w ma tdhayye3ch qualité. L-tafasil gestion pistes, chouf el guide mte3na MKVToolNix 3al Mac.

Tariqa 2: Kifech t5arrej sous-titres b-FFmpeg

Ken 3andek déja FFmpeg ma7tout 3al Mac, ma test7a9ech t’installi MKVToolNix. FFmpeg fih options sélection flux 9wiyin y5arrjou pistes sous-titres direct l-fichiers wa7adhom.

Mar7la 1: Installi FFmpeg

Ken ma 3andekch FFmpeg, installih b-Homebrew:

brew install ffmpeg

Mar7la 2: 7added w 5arrej flux sous-titres

FFmpeg ysammi el flux b-index yabda b-0 (0:s:0 ya3ni awwel flux sous-titres men awwel fichier d’entrée, 0:s:1 el theni, hakka).

Bech t5arrej awwel flux sous-titres l-fichier SRT men ghir ré-encodage:

ffmpeg -i "Movie.mkv" -map 0:s:0 -c:s copy "subtitles.srt"

Ken el piste ed-da5iliya m5abbiya b-format Advanced SubStation Alpha, 7afedh 3la styles el vectoriel ki t7ott extension .ass:

ffmpeg -i "Movie.mkv" -map 0:s:0 -c:s copy "subtitles.ass"

Ken t7eb tbadel format sous-titres intégré l-SubRip wa9t el extraction, na77i option -c:s copy:

ffmpeg -i "Movie.mkv" -map 0:s:0 "subtitles.srt"

L-akther commandes l-remuxing, ta9sis vidéo, w ta5rij sout, 5abbi el cheat sheet commandes FFmpeg.

Chnowa el far9 bin ta5rij pistes texte w pistes bitmap?

Ki t5arrej sous-titres men fichiers MKV, bech t9abel zouz anwe3 mo5talfin jemla: pistes texte w pistes images bitmap.

Nou3 Sous-titres Masdar Média Identifiant Codec Extension 5orja Yetbadel f-TextEdit?
SubRip (SRT) Téléchargements web, rips S_TEXT/UTF8 .srt Ey (Texte 3adi)
Advanced SubStation Alpha Fansubs anime, styles S_TEXT/ASS .ass Ey (Script texte)
Blu-ray PGS Blu-ray 1080p / 4K S_HDMV/PGS .sup Lé (Bitmaps images binaire)
DVD VobSub DVDs commerciaux S_VOBSUB .sub + .idx Lé (Bitmaps pixels 2-bit)

Ken fichier MKV mte3ek jey men disque Blu-ray commercial, piste sous-titres ta9riban b-ta2kid hiya Presentation Graphic Stream (PGS). Ki t5arrej piste PGS b-mkvextract wella FFmpeg, el 5orja tkoun fichier .sup binaire fih mi2at tsawer graphiques transparents.

Ken t7awel t7ell fichier .sup f-TextEdit macOS, bech tchouf romouz binaire ma tet9rach. Ma tnajamch tbadel el klem, tkabbar el 7rouf, wella tlawej 3la jomla 5ater ma famech 7rouf texte da5el el fichier.

Bech tbadel fichier .sup l-document .srt editable, lezmek t3addih 3la logiciel OCR kima Subtitle Edit, elli ya9ra pixels kol 7arf w y5arrej texte numérique. Bech tefhem 3lech disques yesta3mlou tsawer f-blast texte, a9ra sous-titres PGS mfassrin.

Kifech testa3mel sous-titres elli 5arrejt-hom?

Ba3d ma t5arrej fichier SRT wella ASS men MKV, tnajem t7ell w tbadel el klem b-TextEdit 3al Mac. Thabbet elli TextEdit mrigeel ysajjel f-Texte Brut b-encodage UTF-8 bech ma tda5elch 7rouf mafsda. Chouf el guide mte3na 3la chnouwa howa fichier SRT bech tefhem el structure satr b-satr.

Ken 5arrejt sous-titres bech tsalla7 klem mouch synchronisé m3a aswat el moumathlin, tnajem t3awed taw9ethom b-éditeurs sous-titres wella tbadel el décalage f-wa9t el lecture. Bech tsalla7 el drift b-sabab far9 el frame rate, chouf tasli7 sous-titres out of sync.

Ken 5arrejt sous-titres 5ater lecteur el vidéo mte3ek rafadh y7ell MKV, jarrab tbadel l-lecteur open-source. Nazzel MacLC mel saf7et el tanzil. Ycha33el conteneurs Matroska nativement 3la Apple Silicon, ydécodi sout multitrack w sous-titres intégrés direct, w yna77i el 7aja l-commandes Terminal kol marra t7eb tetfarrej f-film.

As2ela yet3awdou

Kifech n5arrej fichier SRT men MKV 3al Mac?

Asra3 tari9a hiya b-FFmpeg fel Terminal bel commande ffmpeg -i input.mkv -map 0:s:0 output.srt, elli t5arrej awwel flux sous-titres l-fichier SubRip f-thweni men ghir ma tmess el vidéo.

Najem n5arrej sous-titres men MKV b-wajha graphique?

Ey. Tnajem t'installi MKVToolNix lel Mac. B-outils gMKVExtractGUI wella MKVToolNix GUI, t7ell el fichier MKV, tcochi piste el sous-titres, w texportiha b-clic wa7da.

3lech sous-titres mte3i tsajjel k-.sup f-blast .srt?

Ken fichier MKV mte3ek masnou3 men disque Blu-ray, el sous-titres m5abbiyin k-tsawer bitmap PGS. Ki yo5rjou, yetsajlou k-fichiers graphiques .sup, elli yest7a9ou OCR (Reconnaissance Optique de Caractères) bech yetbadlou l-texte.

Ya5i lezemni n5arrej sous-titres bech netfarrej f-MKV 3al Mac?

Lé. QuickTime Player ma ynajamch ya9ra sous-titres MKV intégrés, ama lecteurs open-source o5rin ya9raw pistes SRT, ASS, w PGS direct men conteneur MKV men ghir 7atta extraction.

Before you download

MacLC is free. If it is useful to you, a gift helps it skip “Open Anyway” and funds the next release.