Skip to content
aportalePublic

About

Qtorials - Bite sized Qt Tutorial screencasts

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

467 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qtorials

Bite sized Qt tutorial screencasts, edited as AviSynth+ scripts.

Layout

Directory Contents
screencasts/ One folder per screencast, with its AviSynth script, narration script and assets. tools.avsi holds the functions that all screencasts share.
qtavisynth/ QtAviSynth, the AviSynth+ plugin that renders titles, bullets, highlights, SVG and QML animations and zoom-and-pan effects with Qt. Also the avspreview application and the tests. See its README.
scripts/ Helpers for recording and editing, see below.
archive/ Screencasts, artwork, the website and tools from 2009 to 2019. Kept for reference, not maintained.

Recordings and audio are not in the repository. The screencasts expect them in a qtorials_media directory next to the repository, see gMediaDir in tools.avsi.

Making a screencast

  1. Build QtAviSynth, see qtavisynth/README.md. The plugin is written to screencasts/.
  2. Create screencasts/<name>/<name>.avs and start it with Import("../tools.avsi"), like qtprofiler.avs does. This imports the shared functions and loads the plugin, qtavisynth.dll on Windows or libqtavisynth.so on Linux, through loadqtavisynth.avsi.
  3. Level the voice-over recording with scripts/levelvoice.py. It brings the sentences to the same level, and the whole recording to the loudness that YouTube plays at, −14 LUFS with true peaks below −1 dBTP. It writes the sentences as audioClip() calls to paste into the script. It reads the recording with FFmpeg and needs pip install numpy scipy. With --transcribe, each call gets a comment with what is said in it. This needs pip install faster-whisper.
  4. Run scripts/formatcast.py on the script. It writes an AutoHotkey v2 script that types the code snippets during the recording, and an HTML page with the narration to read from. Both are generated next to the script and are not committed.

Scripts

Script Purpose
levelvoice.py Levels a voice-over recording sentence by sentence, normalizes it to the loudness of YouTube with a limiter, and lists the sentences as audioClip() calls
formatcast.py Turns an annotated .avs script into an AutoHotkey v2 typing script (.ahk) and a narration page (.html)
encodeavs.py Encodes an .avs script with FFmpeg to a video file next to it, in the formats of avspreview
makeproxy.py Encodes a scaled-down QuickTime Animation proxy of a video file next to it, as <name>_proxy.mov
_ffmpegencode.py Module with the FFmpeg encoding shared by encodeavs.py and makeproxy.py, and the FFmpeg lookup also used by levelvoice.py and start_ffmpeg_capture.py, not to be run
start_virtualdub_capture.ahk AutoHotkey launcher for screen capture with VirtualDub2
start_ffmpeg_capture.py Lossless screen capture with FFmpeg into a timestamped file, on Windows and on Linux with Wayland
resizevboxwindow.au3, resizevmwarewindow.au3 Resize a VirtualBox or VMware window to an exact guest resolution

Run levelvoice.py --help, formatcast.py --help, encodeavs.py --help and start_ffmpeg_capture.py --help for their options.

License

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported, see LICENSE.

Homepage

http://qtorials.org/

Maintainer

Alessandro Portale

About

Qtorials - Bite sized Qt Tutorial screencasts

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages