← Lesson Library

The Prophet's Advice to Imam Ali: explainer video

11:14 · MP4 · Subtitles (VTT) · SRT

Transcripts

An 11-minute 1080p explainer with English narration. It covers the Prophet's (ص) advice to Imam Ali (ع) in Tuḥaf al-ʿUqūl by Ibn Shuʿba al-Ḥarrānī, printed pages 13–16. The section starts with "ما روي عن النبي (ص) في طوال هذه المعاني — وصيته لأمير المؤمنين (ع)" and ends just before "وصية أخرى … مختصرة".

The video teaches the passage in Justin Sung's layered style. It does not read the sayings as a list:

  1. Big picture: the first saying is the thesis. Ease and joy come from certainty and contentment.
  2. Concepts: the sayings are arranged as a tree: - Root: certainty and intellect. - Trunk: awareness of God, "كأنك تراه" (as if you see Him). - Branches: the self, the tongue, and people. - Fruit: contentment.
  3. Details: each saying is placed on one part of the tree, and the links between parts are pointed out. The video ends with a self-test.

Files

How the text was produced

The source PDF is an image-only scan from alfeker.net, with no text layer. Tesseract's Arabic OCR got about 95% of the words right, but it dropped whole lines and garbled the honorific symbols. The transcription was therefore checked line by line against 300-dpi page renders and corrected by hand.

Rebuild

You need ffmpeg, uv, a Chromium binary, and network access (the voice comes from Microsoft Edge TTS). You also need these fonts installed: Amiri, Noto Naskh Arabic, Inter, and Caveat (all from Google Fonts).

cd videos/wasiyya-ali/src
CHROME=/path/to/chrome OUT_DIR=/tmp/wasiyya-build \
  uv run --with playwright --with edge-tts python build.py all   # final.mp4 + final.srt in OUT_DIR
uv run --with playwright python build.py frames                  # slides only, for checking layout

Caveats