https://github.com/ianseeingbeing/pdf_to_video
PDF to Video CLI program wirtten in modern C++
https://github.com/ianseeingbeing/pdf_to_video
cpp ffmpeg image-sequence opencv pdf pdf-to-video poppler video-processing
Last synced: about 1 year ago
JSON representation
PDF to Video CLI program wirtten in modern C++
- Host: GitHub
- URL: https://github.com/ianseeingbeing/pdf_to_video
- Owner: ianseeingbeing
- Created: 2024-10-14T05:24:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-08T18:53:56.000Z (over 1 year ago)
- Last Synced: 2025-03-08T19:30:38.329Z (over 1 year ago)
- Topics: cpp, ffmpeg, image-sequence, opencv, pdf, pdf-to-video, poppler, video-processing
- Language: C++
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDF to Video
This is a CLI tool that is written in C++ and is used to convert a `.pdf` to `.mp4` file. It can also convert image sequences into videos.
## Features
- Convert PDF to video\
`ptv example.pdf` --> `example.mp4`
- Convert image sequence to video\
`ptv img_seq/` --> `img_seq.mp4`
- Video animation styles:
- sequence (on by default)
- vertical scroll
- Chain PDFs or Image Sequences together. (1.pdf + 2.pdf -> output.mp4)
- Change output settings (fps, resolution, duration, output path)
### Flags
`-r : set output resolution. use -1 to keep scale, default: 1280 720`\
`-f : frames per second.`\
`-s : seconds per frame.`\
`-d : duration in seconds. NOTE: overides -s`\
`-o [output_path] : currently only support .mp4 files, leave blank for auto`\
`--scroll`
## Dependencies
1. [poppler](https://poppler.freedesktop.org/)>=25.01.0 - pdf to image
2. [opencv](https://opencv.org/)>=4.10.0 - image manipulation
3. [ffmpeg](https://ffmpeg.org/)>=7.0.0 - video rendering backend (not a build dependency)
## Build System
I'm using the [Meson](https://mesonbuild.com/) build system for my project. It's simple, modern, and easy to learn.