هذه الصفحة متوفرة بالعربية أيضًا. قراءتها بالعربية

Help

Processing steps

This is the same help you’ll find in the app, under Help.

Every queue on the In Maktaba: Processing page is one step. This page says what each step does, what it waits for and what comes after it.

What it is

A step works on one kind of item: a video, a library, a season, or the whole catalog (everything at once, used for channels). When a step finishes and its result changed, it passes the item on to the steps after it. When nothing changed, nothing is passed on, so a quiet library costs almost nothing.

The steps are shown in lanes:

  • Sources: what Maktaba reads from YouTube.
  • Episodes: per-video facts read from the files: identity, length, thumbnails, fingerprints.
  • Seasons & libraries: placing episodes into series and seasons, topics, titles, collections.
  • Channels: planning and writing the live TV channels.
  • Transcription: speech to text, subtitles, search, chapters and topics.
  • Media processing: scanning folders, posters and maintenance steps. This lane is folded when it has no work.
  • Extensions: steps that belong to an extension, such as Plex Live TV. They are Off until that extension is turned on and set up in In Maktaba: Extensions.

How to use it

  • Click a tile's title on the Processing page to open that step. Its page shows Where work comes from and goes to: the steps that feed it and the steps it feeds.
  • To run a step again for some items, use Re-queue a library or season… on its page, or Queue work… on the Processing page.
  • To switch a core step off, tick it under Leave out in Start a run and start the run. Extension steps are switched on and off with their extension.
  • Some steps do nothing until a rule turns them on; the entry below says which, with a link to the rule.

The steps

YouTube listing

Reads the YouTube channel listings that go with your libraries: their videos, playlists and dates (dates are to the month). It runs per library when a library is processed or on a schedule, and feeds Link, Place episodes and Exact dates. Turn it off with Read YouTube playlists and dates in Start a run.

Exact dates

Asks YouTube for the exact upload day of series episodes whose date is only approximate, one video at a time, slowly. It follows YouTube listing and runs Place episodes again with the better dates. Off until you turn on Exact dates (or Exact upload dates in Start a run).

File identity

Reads each video file once to give it a real content identity, for videos that were added without reading their file (for example brought in from an earlier tool). It feeds Small thumbnail, Transcribe and Poster and sprites. A file that is an exact copy of another one in the library is noted as a duplicate.

Length

Reads how long each video is, and its streams. It runs for each new or changed file found by Scan folders and feeds Thumbnail, Link, Place episodes and Extract audio. Files it cannot read appear in Failures.

Thumbnail

Makes a small fingerprint of each video's thumbnail. Episodes of one show often share a look, so Place episodes uses it as evidence. Runs after Length.

Matches each video to its YouTube entry: by the downloader's info file, the exact title, a folded Arabic title, or the title plus the length. It runs after YouTube listing or Length and feeds Place episodes. A video whose title was changed too much stays unlinked and is still grouped from its own evidence.

Fingerprint

Reads a short audio and picture fingerprint (intro, end song, a few frames) to tell shows apart. It only runs for the videos Place episodes asks for, and reads parts of the file over the share, so a busy NAS can make it fail with a partial read.

Style sample

Samples a few short windows of a video to measure how it is made (picture, motion, sound). It runs only for the episodes Rate style asks for.

Small thumbnail

Keeps a small copy of each video's thumbnail for the review pages and the app. It runs after File identity, Thumbnail or Poster and sprites, on the main machine, and feeds Review pages.

Place episodes

Sorts each library's episodes into series and seasons, using folders, YouTube playlists and dates, thumbnails and fingerprints. It waits a little after changes so they are handled together, asks Fingerprint for samples when it needs them, and feeds almost everything after it: tags, style, titles, collections, review pages and the channel plan. Its rules are in Detection.

Samples to candidates

A hidden helper of Place episodes: it checks whether a season's sample episodes share an intro, end song or frames, and only then asks for the fingerprints of the other candidates. It shows as a line on the tile of the step before it, not as its own tile.

Tag topics

Works out the topics, format, audience and occasion of each season, and tags loose videos so they can be used as filler. It reads titles, playlists and descriptions, and the start of the transcript when there is one. It runs after Place episodes and Transcribe and feeds Check series tags, Check clip tags and the channel plan. Rules: Tagging.

Check series tags

A language model reads each series' name and a sample of its titles and corrects its topics. Each series is asked once. It runs after Tag topics and feeds Books and the channel plan. Rules: Tag check, where you can turn it off.

Check clip tags

A language model checks what each short clip used as filler is about, many titles per question, and damps topics it does not keep. It runs per library after Tag topics and feeds Clip groups and the channel plan. Rules: Tag check.

Display titles

Makes a short, clean on-air title for every video and series: it drops the channel's name, hashtags, emojis, dates and phrases every title repeats. It runs after Place episodes. Rules: Display titles, where you can turn it off or let a language model tidy what is left.

Books

When a lesson series explains a book, looks the book up once and lets its subject correct the season's topics. It runs after Check series tags and feeds the channel plan. Rules: Books, where you can turn it off.

Topic collections

Finds curated playlists that cut across shows (a "file" on one subject) and keeps each as its own collection. An episode keeps its season. Runs after Place episodes and feeds Clip groups and the channel plan.

Collections from YouTube

Makes a collection from each YouTube playlist a library's videos came from (three videos or more), unless the playlist is exactly a season or a topic collection, and one from each channel when a library holds videos of several channels. It keeps them in step with YouTube: an admin's name, hidden flag and rows stay. Runs after Topic collections.

Links each promo, trailer or teaser to the show it advertises, so channels can air it near that show. Runs after Place episodes and feeds Clip groups and the channel plan.

Clip groups

Puts every short, clip and stand-alone video that is in no season into one playable group: by playlist, questions and fatwas, by topic, or a mixed group; linked promos get their own group. Runs after Check clip tags, Topic collections or Promo links. Rules: Grouping.

Rate style

Rates each season as talk, produced, cinematic or still picture with audio, from the samples Style sample measures. A style you pinned with Pin a show's style wins. Runs after Place episodes and feeds the channel plan.

Review pages

Writes one review page per library, to check its seasons by eye. It runs after Place episodes and Small thumbnail, on the main machine, one at a time. Read the pages under Reports.

Plan channels

Plans which live TV channels to build, and their time-slot grids, from everything above: seasons, tags, styles, clip groups and promos. It works on the whole catalog, waits a few minutes after changes, keeps a history of plans, and feeds Write channels. Preview channels under Reports runs the same plan without saving it. Rules: Channels.

Write channels

Writes the planned channels to Maktaba's own Live TV. It only touches channels it created, and leaves alone a channel someone edited by hand until they hand it back to the plan. Runs after Plan channels and feeds Plex Live TV.

Plex Live TV

Plex extension. Keeps Maktaba's channels and their guide in Plex Live TV up to date, after the channels change and when the guide grows. It writes to Plex and offers Review first. Rules: Plex Live TV.

Stage TV change

Prepares a TV change next to what is on the air, so it can be checked before it goes live. It runs when an admin stages a change in TV changes; a change queued behind another one waits. Rules: TV staging.

Swap TV change

Puts an approved TV change on the air, at its time or when an admin presses Swap now. Tried once only.

TV staging clean-up

A daily clean-up of old schedules, retired channels past their keep time, and staged channels of failed or cancelled changes.

Roll back TV change

Puts the previous TV release back on the air: when an admin rolls back, when a new channel crashes soon after it went live, or when a swap failed.

Scan folders

Looks for new and changed files in a library's folders. It feeds Length for each file it finds. It runs when a library is scanned.

Extract audio

Pulls the audio out of a video for transcription. It runs after Length and feeds Transcribe.

Transcribe

Turns speech into text, sentence by sentence with its time, using a Whisper speech model on the machine's GPU. It runs after Extract audio or File identity and feeds Second listen. Progress for the whole library is on the Transcription page.

Second listen

Listens to the speech again with a second model, Cohere Transcribe Arabic, and corrects Whisper's words. It runs on the machines that can: a Mac with Apple silicon, or a PC whose NVIDIA GPU holds the model (8 GB or more on Windows). Where the GPU is too small for both models at once, Whisper and the second listen take turns on it. A machine that cannot run it still transcribes, and one that can corrects its transcripts. With the second listen turned off it passes Whisper's transcript on as it is. Runs after Transcribe and feeds Subtitle files, Search index and Tag topics.

Word review

Finds the words of each transcript that may be wrong: words the language's dictionary does not know, words Whisper was unsure of, words the second listen heard differently, and words of a Quran verse that differ from the Quran text. It saves where each one is, with the reasons and suggested spellings, for a home admin to check in Word review. It never changes the transcript itself. It runs on any machine's CPU after Second listen, and again when a dictionary, the vocabulary or the library's word review settings change. Transcripts made before it are checked too, from their text alone, at the lowest priority and only while nothing waits to be transcribed ("waiting: transcription busy").

Content screen

Reads each video's transcript and works out an age rating from what is said in it: all ages, 9, 13, 16 or 18, with how sure it is and what it heard (violence, sexual content, coarse language, drugs and alcohol, frightening scenes, mature themes), each with up to three times in the video. The transcript never leaves the home: only the home's own language model is asked, on a machine of the home, and a home with no language model gets no detected ratings at all. A detected rating counts only when the model is sure enough, it can only make a video stricter than the library's rating, and a rating an admin gives always wins. An admin checks the unsure ones in the parental review list. Music and Quran recitation are skipped. A video with no transcript, or in a language other than Arabic or English, is marked not checked. It runs after Second listen, again when the transcript changes, and for every video again, at the lowest priority, when the home changes its language model; until then a video keeps the rating it had.

Keyword index

Builds each video's searchable text from its transcript (every line, in order), the title it shows with its file name, and the names of its speakers, so search can find and rank whole videos by the words in them. It runs on any machine's CPU after Second listen, again when the transcript is edited, the title changes or a speaker is renamed, and for every video again, at the lowest priority, when Maktaba changes how the text is built. It never changes the transcript. Until a video has its searchable text, search still finds it by its transcript's lines.

Subtitle files

Writes the transcript as subtitle files (.srt and .vtt) next to the video, so Plex, VLC and TVs pick them up. It never overwrites a subtitle file Maktaba did not write. It writes to your share, so it offers Review first. Runs after Second listen.

Search index

Adds the transcript to search, so you can find a video by what is said in it. The old text of a video is removed first. Runs after Second listen, on the main machine, and feeds Chapters.

Chapters

Finds chapters where the topic of a video shifts and gives each a title from its own words. A video that already has its own chapters keeps them. Runs after Search index and feeds Chapter frames and Topics.

Chapter frames

Makes one picture for the start of each chapter, and removes pictures of chapters that are gone. Runs after Chapters.

Topics

Tags a video with the nearest topics of its library. A library needs enough transcribed videos before it has topics. Runs after Chapters and feeds Library topics.

Library topics

Builds a library's topics from all its transcribed videos and names each after its most typical video. It waits until a batch of videos is done (up to half an hour) and rebuilds the topics whole each time.

Poster and sprites

Makes poster frames and the preview strip used when you scrub a video: 100 pictures spread over the whole video (videos done before October 2026 have 25; reprocess one to get the finer strip). Runs after File identity, on the main machine, and feeds Small thumbnail.

Repair broken files

For videos whose Length step failed, reads the file again; a file that is really broken and came from YouTube is downloaded again, checked and swapped in, and the broken one is kept beside it. It writes to your share, runs only when you start it, and is tried once. Off until you turn on Broken files.

Canonical share paths

The main machine converts the stored paths of your media to share paths every machine understands. It runs by itself when needed or from the In Maktaba: Machines page, and is tried once. Rules: Canonical share paths.

Catch up

When an admin turns a component (for example Transcription) on again, the main machine queues the work its steps missed while it was off: one job, at a low priority, that shows its progress. Work already done or already queued is not queued twice.

Access check

Tests whether a worker can read a video's file: it opens the file and reads its first 64 KiB, within Check waits (seconds). If the file reads, every step that failed for that video is queued again. It runs only when an admin asks for it, is tried once, and never fails: what it found is its result. See No permission to read the file.

Categorize

An older step kept for compatibility. Nothing queues it in this version, so it stays idle.

Find metadata

Makes metadata suggestions for a video when you press Find metadata or Re-enrich: from what Maktaba already knows, and from a web search a language model reads when that is set up. Nothing is changed until you accept a suggestion. Runs on the main machine. Rules: Finding metadata.

Convert to MP4

Makes a video's file an MP4 that plays directly, without losing it: the new file is checked (it is decoded in full) before it takes the old one's place, and the original goes to the library's trash for 30 days. The video keeps its watch history, playlists and transcripts. Runs on the main machine, one file at a time. Each file is skipped, remuxed, given AAC audio or (only where the library allows it) re-encoded to H.264, and a file with image subtitles is skipped: see How a conversion decides. Start it with Convert to MP4 in a library's menu on the Processing page. Every video downloaded from YouTube comes here by itself, then goes on to Find duplicates. Automatic conversion after a scan is off by default.

Find duplicates

Looks through a library for the same video stored more than once: byte-identical copies, and the same lecture in another file. Start it with Find duplicates in a library's menu on the Processing page; it also checks each video Convert to MP4 finishes. A video that is not converted yet is converted first. Identical copies in one library are merged at once; the other groups wait for you on Duplicates.

Merge duplicates

Merges one group of duplicates into the copy that is kept: watch history, playlists and favourites move to it, and the other file goes to the library's trash for 30 days. It runs when you press Apply on Duplicates, and by itself for identical copies in one library.

Empty file trash

Deletes the files in a library's trash (.maktaba/trash in each library folder) once their grace period has passed: 30 days unless the library says otherwise. Until then a converted original or a merged duplicate can be restored. A trashed file whose size changed is not deleted: the step stops and says so.

Restore from trash

Puts back what the File actions page's Restore asked for: a converted original returns to its place (its MP4 goes to the trash instead), and a merged duplicate comes back as its own video. It runs once per library for every row asked, and only while the file is still in the trash. The trash is emptied once a day of what is past its grace period.

YouTube downloads

Downloads the new uploads of a library's YouTube channels and playlists, with their subtitles and thumbnails, one at a time. Each video goes on to Convert to MP4 as soon as it lands. Only sources that are turned on download: the channels a library already had start Off, so turn them on under YouTube sources… (see YouTube sources).

YouTube back catalogue

Downloads the older videos of a library's YouTube sources in small batches, only when nothing else needs the YouTube slot. It can be paused on its own. It runs only for sources set to New uploads and back catalogue (see YouTube sources), and each video goes on to Convert to MP4 as soon as it lands.

Tartube import

Makes the YouTube sources of every library from Tartube's records, started by Import from Tartube… on Manage libraries. Each channel or playlist whose Tartube folder is a library's folder becomes a source of that library, off, and what Tartube downloaded counts as downloaded. It turns nothing on and makes no library; a failed import is not tried again by itself.

What the states and messages mean

  • Starts here: no step feeds this one; it is started by a run, a schedule or a button.
  • Last step: this step feeds no other step.
  • Plex extension badge: the step belongs to that extension.
  • Set up in Extensions: the extension is not set up; the step cannot run until it is.
  • Served by …: the machines whose workers run this step.
  • A line like "Samples to candidates: 2 running, 5 waiting" on a tile: a hidden helper step that runs with the step on the tile.

For queue states and waiting reasons, see Processing.

FAQ

Why did a step run but nothing after it?

Its result was the same as before (Nothing changed), so there was nothing new to pass on.

Why do Fingerprint and Style sample show so few jobs?

They only read the videos other steps ask for: a few samples per season, not every file.

Which steps write outside Maktaba?

Subtitle files and Repair broken files write to your share; the Plex Live TV step writes to Plex. They offer Review first on their page.

Can I turn off transcription?

Yes: tick Transcribe under Leave out in Start a run and start the run. The steps after it then get nothing new.

When something goes wrong

A step stays Off

  • What it means: it is switched off, it belongs to an extension that is off or not set up, or it needs a rule turned on.
  • Does Maktaba fix it itself? No.
  • What you can do: read its entry above. Untick it under Leave out, or set up the extension in In Maktaba: Extensions, or turn on its rule.

A step fails

  • What it means: items of that step failed after Maktaba's retries.
  • Does Maktaba fix it itself? It retried each item a few times first.
  • What you can do: read the cause in Failures, fix it, then press Retry in Needs attention.