Enhance FFmpeg operations for full transcoding capabilities#37
Merged
alokemajumder merged 1 commit intomainfrom Dec 7, 2025
Merged
Enhance FFmpeg operations for full transcoding capabilities#37alokemajumder merged 1 commit intomainfrom
alokemajumder merged 1 commit intomainfrom
Conversation
- Add new operations: scale, crop, rotate, flip, audio, subtitle, concat - Expand allowed FFmpeg filters (50+ filters for video/audio processing) - Support both flat and nested params structure for API flexibility - Add audio processing: volume, normalization, sample rate, channels - Add video filters: blur, deinterlace, stabilize, speed, fade - Add HDR/color space filters for modern workflows - Allow empty operations list for simple format conversion - Map 'stream' operation type to 'streaming' for consistency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR significantly enhances the FFmpeg integration to expose more of FFmpeg's capabilities through the API.
New Operations Added
Enhanced Filters (50+ FFmpeg filters now available)
API Improvements
Test plan
Example payloads
Scale video to 1080p
{ "input": "/storage/input/video.mp4", "output": "/storage/output/video_1080p.mp4", "operations": [ {"type": "scale", "width": 1920, "height": 1080, "algorithm": "lanczos"} ] }Audio normalization
{ "input": "/storage/input/video.mp4", "output": "/storage/output/video_normalized.mp4", "operations": [ {"type": "audio", "normalize": true, "normalize_type": "loudnorm"} ] }Crop and rotate
{ "input": "/storage/input/video.mp4", "output": "/storage/output/video_processed.mp4", "operations": [ {"type": "crop", "width": 1280, "height": 720, "x": 100, "y": 50}, {"type": "rotate", "angle": 90} ] }