Skip to content

v2.1.0

Latest

Choose a tag to compare

@bit-admin bit-admin released this 10 Nov 12:51
9783e66

[2.1.0] - 2026-10-31

🚀 Added

  • Video export (Slides Export → Video): Slides Export now has PDF and Video modes. Video mode rebuilds each selected folder as an MP4 that follows its timeline.json. A slide shown again (duplicate) shows its kept copy, and a removed slide (ML, exclusion, manual trash) keeps the previous slide on screen. H.264 (x264) is written at a variable frame rate: one frame per slide change, plus an optional repeat every 30 s – 10 min (or off), so players that seek to the next frame stay close. Each slide gets a chapter named after its PDF page. Audio comes from a per-folder source (the original video, filled in automatically when the timeline recorded it, or any audio file) and is copied unchanged or compressed to AAC (bitrate, mono/stereo, sample rate) or Opus (bitrate, mono/stereo; libopus, tuned for speech, 60 ms frames to keep MP4 overhead down); folders without a source are exported silent. Re-encoded audio follows the source timestamps: holes where the recorder dropped audio are filled with silence (and overlaps dropped, beyond 10 ms), so the voice stays in step with the slides; counting samples back to back put it 3.1 s ahead by the end of a 99-minute screen recording. On that lecture (1080p, 249 MB): about 10 MB with Opus 12 kbps, 14 MB with Opus 16 kbps, 38 MB with AAC 48 kbps, 47 MB with the original audio, 1 MB without audio.
  • CLI exports: --export-pdf writes <output>/<name>.pdf after extraction and post-processing (--pdf-reduce-size, --pdf-aspect, --pdf-height, --pdf-jpeg-quality; pdf_exported event, exit code 7). --export-video writes <output>/<name>.mp4 (implies --write-timeline; --video-height, --video-crf, --video-repeat, --video-audio aac|opus|copy|none, --video-audio-bitrate, --video-audio-channels, --video-audio-rate; video_progress / video_exported events, exit code 6). Defaults match Slides Export; export settings are not saved. The Linux and macOS CI smoke tests now export both and check the video with ffprobe.
  • timeline.json source block: extraction records source.path, source.duration and source.startTime of the video, so Slides Export can find the audio later.
  • macOS release build: New Build macOS Release workflow producing an Apple Silicon (arm64) .dmg (LZMA-compressed, app + /Applications link, ad-hoc signed). The DMG window shows the install steps: drag the app to Applications and the xattr command to run (background and icon layout in installer/dmg, written with dmgbuild, so CI needs no Finder scripting). Dependencies come from the same pinned vcpkg and vcpkg.json as Windows/Linux (overlay triplet arm64-osx-dynamic-release, deployment target macOS 12), with the Core ML ONNX Runtime and Qt 6.8. Packaging lives in installer/package-macos.sh. It fails on unresolved, external or Homebrew libraries, on vcpkg binaries built for a newer macOS than the target, and on an FFmpeg built without VideoToolbox. It sets LSMinimumSystemVersion from the bundled binaries. The DMG is smoke-tested in CI (CLI extraction with ML + timeline, GUI launch). install.command is no longer shipped.
  • Linux release build: New Build Linux Release workflow producing an x86_64 AppImage, a portable .tar.gz and a self-contained .deb (installs to /opt/autoslides-extractor, with a /usr/bin command and menu entry) (vcpkg OpenCV/FFmpeg from the same vcpkg.json as Windows, Qt 6.8, CPU ONNX Runtime; built on Ubuntu 22.04 for glibc 2.35+). Packaging lives in installer/package-linux.sh and can be run locally.
  • Linux desktop integration: .desktop entry and 256 px icon, installed by cmake --install; the GUI sets its window icon and desktop file name on Linux.

🔄 Changed

  • FFmpeg now built with x264, Opus, gpl, version3 and swresample (vcpkg.json) for video export. Because libx264 is GPL, release builds are distributed under GPLv3; the source code stays MIT. Every package ships a licenses folder (notice, GPL text, MIT licence, where to get the corresponding source), the Windows installer's licence page says so, and the Debian copyright file includes the notice. macOS packaging fails if the bundled FFmpeg lacks libx264 or libopus; the Linux and macOS smoke tests also export with Opus.
  • vcpkg pin 2025.04.09 → 2026.07.29 (Windows and Linux CI): FFmpeg 7.1.1 → 8.1.2, OpenCV 4.11.0 → 4.12.0. The old pin could no longer build FFmpeg on Windows because its MSYS2 package (file-5.45-3) was removed from all mirrors. The Windows workflow drops vcpkg's x-gha binary cache, which current vcpkg-tool no longer supports, and keeps the actions/cache files layer.
  • CI vcpkg caches (all three workflows): release-only triplets (x64-windows-release, new x64-linux-dynamic-release overlay, like macOS), so no Debug FFmpeg/OpenCV is built. Each run that builds packages saves a new cache entry (run id suffix) and later runs restore the newest one, first for the same vcpkg.json, else for the same vcpkg + triplet; vcpkg's ABI hashes decide what is reused. This survives runner image updates (which change those hashes without changing the compiler version) and dependency changes, and archives unused for 14 days are pruned.
  • Release flow (CI): Draft releases are now made only by pushing a v<version> tag: the new Release workflow runs the checks, calls the three platform builds and attaches all six packages to one draft (so the platforms can no longer race into duplicate drafts). Pushes to main and pull requests build and smoke-test packages as workflow artifacts only, and skip docs-only changes. A new fast CI workflow checks that the version in CMakeLists.txt, vcpkg.json, the Windows .rc, the NSIS script and the version strings in main.cpp / mainwindow.cpp agree (plus tag and CHANGELOG entry on release), lints the workflows with actionlint and syntax-checks the packaging scripts.

🐛 Fixed

  • Slides lost at chunk boundaries: A slide change in the last verificationCount - 1 frames of a chunk was dropped, because verification never carried over to the next chunk. Detection is now a streaming state machine shared by the single-pass and chunked paths, and gives identical slides and timings for any chunk size. When the frame count was an exact multiple of the chunk size, the last chunk was also never flagged as last, so end-of-video handling was skipped.
  • Wrong SSIM on x86_64 (Windows/Linux): The AVX2 mean summed into 16-bit lanes, which overflowed (a white 480×270 frame measured a mean of ~2 instead of 245) and distorted every score. Mean, variance and covariance now use exact integer sums on every platform, and each frame is downsampled once instead of twice.
  • Decoder dropped and mislabelled frames: Only one frame was read per packet and the decoder was never flushed, so with B-frame reordering or hardware decoders the first keyframes were delayed (each image got a later packet's timestamp, e.g. +4 s in timeline.json) and the last keyframes were lost. Frames are now drained and flushed, and they use their own presentation timestamps. Hardware-frame transfer now depends on the frame itself, and the scaler follows mid-stream size changes.
  • Slide saved twice after a brief step forward and back: When the presenter moved to the next slide for under three samples and came back (A, B, A), B was rejected but the returning A restarted verification and was saved again as a new slide. A confirmed slide is now compared with the last saved one and skipped if it matches.
  • pHash removed progressive-reveal steps: pHash works on a 64×64 thumbnail, so a slide that only gains a line of text could land within the Hamming threshold of the previous step and be trashed as a duplicate. A pHash match is now removed only if the two images also pass the detector's SSIM test (same threshold and downsampling). Exclusion-list and post-crop checks are unchanged.
  • Duplicate final slide: End-of-video handling saved the last frame even when it matched the slide just confirmed. A trailing candidate is now kept only if it was still unconfirmed but stable for at least two frames.
  • Ctrl+C / stop hang: stopProcessing() did not wake the producer or cancel the decoder, so CLI cancellation could block forever. It now wakes all worker waits (under the queue mutex) and cancels decoding. The stop/pause flags are atomic.
  • Progress bar jumping: Per-chunk SSIM/detection progress (0–100 % for every chunk) is no longer sent to the same bar as the whole-video percentage.
  • CLI install from an AppImage: The SlidesExtractor wrapper now targets the .AppImage file ($APPIMAGE) instead of the per-launch /tmp/.mount_* path, which stopped working once the app exited.