-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
- A new tools tab in the sidebar
- Tabs for each tool (there will be only one tool to start with "Compress") use https://ui.shadcn.com/docs/components/base/tabs
- User sees an area/button to upload their file (maybe reuse the upload dialog in a different context)
- Once uploaded, show progress of compression using background jobs + socket I/O (check frappe react sdk + publish_realtime) (https://ui.shadcn.com/docs/components/base/progress)
- After it finishes show area with download option and details like how much percent reduction etc.
- no need to save the raw footage just compress and download maybe keep it for 3 - 7 days give a setting for it, in Frappe backend only
Technical details:
ffmpeg -i input.mov \
-c:v libx264 -preset medium -crf 23 -pix_fmt yuv420p \
-c:a aac -b:a 160k \
-movflags +faststart \
output.mp4
Cap resolution: -vf "scale='min(1920,iw)':-2"
“Smart” mode (fast remux when possible, else transcode)
Sometimes your .mkv already contains H.264 + AAC and you don’t need recompression—just repackage to MP4:
ffmpeg -i input.mkv -c copy -movflags +faststart output.mp4
This only works if codecs are MP4-compatible (e.g., H.264/H.265 video + AAC audio).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request