OpenCV drops audio
OpenCV writes video frames only. The pipeline writes an intermediate silent video, then uses FFmpeg to re-encode it and map the original audio stream back in.
Computer vision pipeline that keeps the audio
frame = face_swapper.get(frame, face, source_face, paste_back=True)Upload a reference face and a target video; the service detects the face, swaps it frame by frame, re-encodes the result and merges the original audio back in. A React front end and Docker Compose setup sit around the API.
Separate image and video endpoints with file type validation.
OpenCV writes video frames only. The pipeline writes an intermediate silent video, then uses FFmpeg to re-encode it and map the original audio stream back in.