Skip to content

pulkitpareek18/media-processing-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Media Processing Pipeline

CI Last Commit Stars Language

Release Snapshot (March 2026)

  • Status: Active
  • Type: CLI video processing utility
  • Core tooling: ffprobe + ffmpeg
  • CI checks: C build + C++ syntax check

Demo Card

Media Processing Pipeline Demo Card

CLI utility to generate lower-resolution variants from a single source video using ffprobe + ffmpeg.

What It Does

Given one input video file, the pipeline:

  1. Detects source resolution with ffprobe
  2. Creates an output folder named after the source file stem
  3. Copies the original source into that folder
  4. Produces subordinate resolutions (for example: 1080p -> 720p, 480p, 360p, 240p, 144p)

Output naming format:

<stem>/<stem> <resolution>.mp4

Implementations

  • process_video.c (cross-platform oriented C implementation)
  • process_video.cpp (C++ implementation; currently tuned for Windows _popen)

Prerequisites

  • ffmpeg available on PATH
  • ffprobe available on PATH
  • C/C++ compiler (depending on implementation)

Build

C (macOS/Linux)

cc process_video.c -o process_video

C (Windows, MinGW)

gcc process_video.c -o process_video.exe

C++ (Windows, MinGW)

g++ process_video.cpp -std=c++17 -o process_video_cpp.exe

Usage

./process_video input.mp4

Windows:

process_video.exe input.mp4

Example

Input:

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

Notes

  • The tool currently preserves audio stream via -c:a copy.
  • Processing time depends on source duration, resolution, and machine performance.

About

FFmpeg-based C/C++ pipeline that converts one source video into multiple lower-resolution variants with automated resolution detection and structured output naming.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors