3glancecast is a script that converts a video file into an MP3 with chapters that have sampled video frames as cover art.
5This allows you to listen to a video in an audio-only podcast player, but glance at the screen if you need some visual context.
9Clone the Git repository, create a Python virtualenv, and install dependencies:
12$ git clone git://alexwlchan.net/projects/glancecast.git
14$ python3 -m venv .venv
15$ source .venv/bin/activate
19You also need [
FFmpeg](
https://ffmpeg.org) installed, which is not included with the pip installer.
23Run the
`glancecast.py` script, passing your video file as a single argument.
24It prints the path to the MP3 file:
27$ python3 glancecast.py tests/fixtures/lego_age_picker.mp4
28tests/fixtures/lego_age_picker.mp3
31There are three optional flags:
33* `--interval=INTERVAL_SEC` sets the time interval between captured frames in seconds.
34* `--max-dimension=MAX_DIMENSION` sets the maximum width/height in pixels for captured frames.
35* `--out-dir=OUT_DIR` sets the output directory where the MP3 file will be saved.
37You can see these options by running
`python3 glancecast.py --help`.
39## Versioning and stability
41This library is monotonically versioned (releases simply go up sequentially).
45This project is shared under the [
MIT license](
./LICENSE).