Metadata-Version: 2.4
Name: vid2pdf
Version: 1.3.0
Summary: Convert a video file into PDF image series
Author: sco1
Author-email: sco1 <sco1.git@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Dist: ffmpy~=1.0
Requires-Dist: pillow~=13.0
Requires-Dist: python-dotenv~=1.1
Requires-Dist: tqdm~=4.67
Requires-Dist: typer~=0.24
Requires-Python: >=3.11
Project-URL: Homepage, https://github.com/sco1/vid2pdf
Project-URL: Documentation, https://github.com/sco1/vid2pdf/blob/main/README.md
Project-URL: Repository, https://github.com/sco1/vid2pdf.git
Project-URL: Issues, https://github.com/sco1/vid2pdf/issues
Project-URL: Changelog, https://github.com/sco1/vid2pdf/blob/main/CHANGELOG.md
Description-Content-Type: text/markdown

<p align="center" width="100%">
<img width="200" src="https://raw.githubusercontent.com/sco1/vid2pdf/refs/heads/main/assets/icon/app_icon.png">
</p>
<h1 align="center"> vid2pdf </h1>

[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/vid2pdf/1.3.0?logo=python&logoColor=FFD43B)](https://pypi.org/project/vid2pdf/)
[![PyPI](https://img.shields.io/pypi/v/vid2pdf?logo=Python&logoColor=FFD43B)](https://pypi.org/project/vid2pdf/)
[![PyPI - License](https://img.shields.io/pypi/l/vid2pdf?color=magenta)](https://github.com/sco1/vid2pdf/blob/main/LICENSE)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/sco1/vid2pdf/main.svg)](https://results.pre-commit.ci/latest/github/sco1/vid2pdf/main)

Convert a video file into PDF image series.

## External Requirements
`vid2pdf` requires ffmpeg, the latest version of which can be downloaded from [ffmpeg.org](https://www.ffmpeg.org/download.html). The ffmpeg executable is located by checking, in order:

1. The `FFMPEG_PATH` environment variable, which may point to either the executable itself or a directory containing it; this can be set directly or by utilizing a `.env` file in this project's root
2. The `/utils/ffmpeg` folder of this project (when running from a source checkout)
3. Your system's `PATH`

## Installation
### Python
Install from PyPI with your favorite `pip` invocation:

```bash
$ pip install vid2pdf
```

You can confirm proper installation via the `vid2pdf` CLI:
<!-- [[[cog
import cog
from subprocess import PIPE, run
out = run(["vid2pdf", "--help"], stdout=PIPE, encoding="ascii", env={"TYPER_USE_RICH": "0"})
cog.out(
    f"```\n$ vid2pdf --help\n{out.stdout.rstrip()}\n```"
)
]]] -->
```
$ vid2pdf --help
Usage: vid2pdf [OPTIONS] [SOURCE]

  Convert a video file to PDF image series.

  If an input video is not specified, a file selection dialog will be opened
  to select the file to process.

  Start and end arguments may be left empty to use the start and end of the
  video, respectively.

Arguments:
  [SOURCE]  Source video

Options:
  --dest DIRECTORY  Destination directory
  -s, --start TEXT  Start time (hh:mm:ss.sss)
  -e, --end TEXT    End time (hh:mm:ss.sss)
  --help            Show this message and exit.
```
<!-- [[[end]]] -->

### Standalone
Standalone builds of `vid2pdf` are not provided or supported, as they are frequently flagged as false positives by AV scanners.

For a standalone option, I also maintain a UI-based Flutter version of `vid2pdf` at [sco1/vid2pdf-flutter](https://github.com/sco1/vid2pdf-flutter)
