Video Processing

Task progress is available through WebSocket. See Task Progress Query.

Gitruck Cloud video processing APIs provide AI subtitles, rule-based shot segmentation, multimodal shot segmentation, motion-highlight analysis, black border removal, canvas resize, frame interpolation, super resolution, video stabilization, watermark removal, Vaporwave filter effects, project file export, timeline rendering, smart oral cut, and long-to-short highlights.

General Notes

All video processing APIs use an asynchronous task model:

  1. Upload file: Call the File Upload API to get a file_id.
  2. Create task: Call the corresponding processing API (POST) with the file_id to create a task and receive a task_id.
  3. Poll for result: Call the query API (GET) to poll the task status. Results are available when status becomes completed.

💡 Tip: Video processing tasks typically take longer. Poll every 5–10 seconds.

API List

APIPathDescription
AI Subtitle/task/video_ai_subtitleAuto-generate subtitles with translation and style options
Video Segment/task/video_segmentDetect shot boundaries from visual changes and optionally export clips
AI Video Segment/task/video_ai_segmentSplit video shots with multimodal semantic understanding and structured grouping
Video Motion Cut/task/video_motion_cutDetect highlight intervals with obvious motion or camera movement and return structured results only
Remove Black Borders/task/video_blackborder_removeAuto-detect and remove black borders from video
Video Matting/task/video_mattingGreen-screen-free human video matting to a transparent-background video (WebM/VP9 alpha)
Canvas Resize/task/video_canvas_adaptResize video to a target canvas size with optional clipping
Smart Split-Screen Layout/task/video_split_screenCompose 2-16 video clips into one split-screen video with shared layout templates
Frame Interpolation/task/video_interpolateAI frame interpolation to improve video smoothness
Remove Watermark/task/video_purifyRemove watermarks, logos, or subtitles from video
Video Stabilization/task/video_stabilizerAnti-shake processing for smoother footage
Video Super Resolution/task/video_upscaleAI upscaling to improve video resolution and clarity
Vaporwave Filter/task/video_vaporwaveApply a Vaporwave-style color filter to video
Project File Export/task/video_project_structConvert a timeline structure into Premiere/FCPX/OTIO/JianYing/CapCut project files (no upload required)
Timeline Render/task/video_timeline_renderRender a timeline structure directly into a final mp4 (shares the timeline model with Project File Export)
HTML Animation Render (Layered)/task/html_animate_renderComposite a long base track + transparent HTML animation particle overlays (not covering the subject) into a final mp4
HTML Animation Render (Simple)/task/html_render_simpleComposite a video base track + custom HTML animation particles in one pass (full-screen opaque cut-ins / short clips / pure HTML animation)
Smart Oral Cut/task/video_oral_cutOne-click smart editing for talking-head footage: removes retakes and misreads, keeps the last fluent take, shapes pauses by punctuation
Long-to-Short Highlights/task/video_long2shortTurn long content into multiple distinct-topic highlight clips: semantic selection + jump cut + word-level cuts (rough cut)
Long-to-Short Highlights (Pro)/task/video_long2short_proRough-cut core plus blurred-background fit / restrained camera moves / pitch-preserving speed / smart subtitles — one-click finished clips
Audio-Visual Speaker Detection/task/video_speaker_detectDetect visible speakers and fuse ASR, visual tracks, and sentence attribution
Video Material Search/task/video_clip_searchSearch editable video clips by description/keywords, returning in-clip time ranges (synchronous, not an async task)

Supported File Formats

Video processing APIs currently support mp4, avi, mpg, mov, flv, mxf, mpeg, ogg, 3gp, wmv, h264, m4v, and ts. mkv and webm are not currently supported.

Notes

  • Frame Interpolation: The current implementation validates that the output side length does not exceed 4000 px.
  • Video Segment: Structured shot ranges are returned by default. Set only_struct=false to also export clip files.
  • AI Video Segment: Supports scene, shot_type, narrative, and subject modes, and automatically chunks long videos before merging results.
  • Video Motion Cut: The endpoint is currently fixed to the OpenCVMotionCut engine. No mode selection is exposed, and the API always returns structured results only without exporting clips.
  • Remove Watermark: Supports ffmpeg and raft algorithms and full_screen / subtitle / custom cleanup scopes; raft uses neural inpainting and supports videos up to 20 minutes.
  • Video Super Resolution: The current implementation only supports videos up to 1 minute, and the upscaled output side length must stay within 4000 px.
  • Video Matting: input video must be within 10 minutes; longer videos are rejected (error code 6019).

Next Steps