- Status: Active
- Type: CLI video processing utility
- Core tooling:
ffprobe+ffmpeg - CI checks: C build + C++ syntax check
CLI utility to generate lower-resolution variants from a single source video using ffprobe + ffmpeg.
Given one input video file, the pipeline:
- Detects source resolution with
ffprobe - Creates an output folder named after the source file stem
- Copies the original source into that folder
- Produces subordinate resolutions (for example: 1080p -> 720p, 480p, 360p, 240p, 144p)
Output naming format:
<stem>/<stem> <resolution>.mp4
process_video.c(cross-platform oriented C implementation)process_video.cpp(C++ implementation; currently tuned for Windows_popen)
ffmpegavailable onPATHffprobeavailable onPATH- C/C++ compiler (depending on implementation)
cc process_video.c -o process_videogcc process_video.c -o process_video.exeg++ process_video.cpp -std=c++17 -o process_video_cpp.exe./process_video input.mp4Windows:
process_video.exe input.mp4Input:
video.mp4 (1080p)
Generated:
video/video 1080.mp4
video/video 720.mp4
video/video 480.mp4
video/video 360.mp4
video/video 240.mp4
video/video 144.mp4
- The tool currently preserves audio stream via
-c:a copy. - Processing time depends on source duration, resolution, and machine performance.