Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Reframe CLI Pipeline Configuration File
# ------------------------------------------------------------
# This file defines the sequence of operations applied to your video.
# You can customize these steps or comment/uncomment them as needed.

name: "Standard Video Preprocessing"
pipeline:
# 1. Trim the video (start and end times in seconds)
- step: trim
start: 0
end: 10

# 2. Resize the video to standard resolution
# Options for fit: "contain" (pads black bars) or "crop" (fills screen)
- step: resize
width: 720
height: 1280
fit: contain

# 3. Transcode and convert format
# Options: "mp4", "webm", "mkv"
- step: convert
format: mp4

# ============================================================
# ALTERNATIVE EXAMPLE: ML Dataset Frame Extraction
# To use this instead, uncomment the block below and comment out the block above.
#
# name: "Chroma Key Frame Extraction Pipeline"
# pipeline:
# # Trim the clip to the target segment
# - step: trim
# start: 1
# end: 5
#
# # Extract individual frames at a specified frame rate (FPS)
# # Note: When 'extract_frames' is present, the pipeline outputs
# # a folder of images instead of a single output video.
# - step: extract_frames
# fps: 2
# format: png
#
# # Remove chroma-key background color (e.g. green screen) from extracted frames
# - step: remove_background
# color: green
# similarity: 0.15
# blend: 0.05
#
# # Crop/resize frames for machine learning input
# - step: resize
# width: 512
# height: 512
# fit: crop
#
# # Convert and save frames to target format
# - step: convert
# format: png
# ============================================================
Loading