How to remove subtitles from a video with Codex MCP and Medux

Use Codex and Medux through MCP to remove visible subtitles from an uploaded video. This guide covers input preparation, the approval gate, task monitoring, and a concrete output check.

Watch the complete workflow: automatic video subtitle removal with Codex, MCP, and Medux. Watch on YouTube ↗

Codex-specific workflow

Run Remove Subtitles from Video as a Codex MCP task

Use the active workspace as the source of truth. Ask Codex to identify the source video and any subtitle region or processing options, select the Medux subtitle-removal tool, and keep the Medux task ID and returned output with the rest of the project. Naming the input roles and the expected result prevents an agent from guessing which file should be used where.

Codex prompt pattern

In this workspace, use the Medux subtitle-removal tool through Medux MCP to remove subtitles from a video.
First inspect and identify the source video and any subtitle region or processing options.
Show me the exact tool arguments before execution.
After the task completes, return the subtitle-free video and verify that the visible subtitles are removed through the required frames and the full video plays correctly.

Approval gate

Before approving the call, compare the selected tool, file or asset IDs, ordering, timing, and output settings with the request. If a local filename was mapped to an uploaded Medux file ID, keep that mapping visible so it can be audited later.

Result verification

Let Codex monitor an asynchronous task until it reaches a terminal state, then save or report the subtitle-free video. The final check is explicit: confirm that the visible subtitles are removed through the required frames and the full video plays correctly.

Workflow overview

The video tutorial shows a compact agent workflow: prepare the file, give Codex the task, upload the asset to Medux, start subtitle removal, poll the task, then download and preview the result.

Prepare video
Prompt Codex
Upload to Medux
Run removal
Download MP4

Before you start

Codex projectUse a workspace where your source video can be read from a local path.
Medux MCP accessMake sure the Medux MCP server is already configured and available to Codex.
Source videoIn the recording, the input is named remove_subtitle.mp4.
Approval flowWhen Codex asks to call a Medux MCP tool, approve the action and let it continue.

Step-by-step tutorial

01

Put the source video in your Codex workspace

Open the project that already has the Medux MCP server connected. Place the video you want to clean in the workspace so Codex can access it directly.

/Users/chuan/projects/test_mudex/remove_subtitle.mp4
Codex workspace with the subtitle removal request
The tutorial starts with one local MP4 file and a simple Codex request.
02

Ask Codex to remove the visible subtitles

Keep the instruction direct. Tell Codex which file to use, what result you want, and that it should call Medux through MCP instead of doing unnecessary local analysis.

Remove all visible subtitles from the video located at /Users/chuan/projects/test_mudex/remove_subtitle.mp4 and output a clean version without subtitles. Use Medux. Call the Medux MCP directly and do not perform excessive analysis.
03

Let Codex request a Medux upload URL

Codex asks Medux for an upload target, then sends the local MP4 to that signed URL. In the recorded flow, Codex also keeps the upload request precise by using the returned content type.

curl --path-as-is -X PUT -T ./remove_subtitle.mp4   -H "Content-Type: video/mp4"   "<medux_signed_upload_url>"
Codex requesting a Medux upload URL
Codex creates the upload step and prepares to push the local MP4 to Medux.
04

Start the Medux subtitle-removal task

After the upload succeeds, Codex calls the Medux processing workflow. Medux handles the actual subtitle removal in the cloud, while Codex keeps the job organized inside the same chat.

Medux MCP action:
- input: uploaded MP4 asset
- task: remove visible subtitles
- output: cleaned MP4
Codex starting Medux subtitle removal
Once the upload is accepted, Codex starts the Medux subtitle-removal task.
05

Approve the MCP tool call and wait for processing

When Codex needs permission to query the Medux task, approve the MCP call. Codex then checks the task status at intervals until Medux returns the final output URL.

Medux task status:
PROCESSING → PROCESSING → COMPLETED
Codex asking for approval to query the Medux task
Approve the Medux task query inside Codex.
Codex polling Medux task status
Codex continues polling instead of restarting the task.
06

Download and preview the clean video

When the task completes, Codex downloads the cleaned MP4 back into the workspace. Open the result and preview it to confirm that the visible subtitles are gone.

clean output:
/Users/chuan/projects/test_mudex/remove_subtitle_clean.mp4
Codex downloading the completed Medux output
Codex downloads the completed Medux result.
Final cleaned video preview without subtitles
The final MP4 is ready to publish or reuse.

Publishing checklist

Before you post the tutorial on your site, docs, blog, or social channels, keep the story focused on the agent workflow: Codex gives instructions, Medux processes the video, and the final clean asset returns to the workspace.

Use one clear input path and one clear output name.
Keep command snippets wrapped so they never overflow on mobile.
Preview the final MP4 before sharing or reusing it.

Example result

Subtitle removal result

Play the final video below to review the subtitle-removal result generated by Medux.

Generated result. Final video after visible subtitles were removed by Medux.

Quick answer

How do I run Remove Subtitles from Video with Codex MCP?

Codex can use the Medux subtitle-removal tool through Medux MCP to remove visible subtitles from an uploaded video. The workflow identifies the exact inputs, reviews the tool arguments, monitors processing, and verifies the returned result.

What does this Medux tutorial cover?

Codex can use the Medux subtitle-removal tool through Medux MCP to remove visible subtitles from an uploaded video. The workflow identifies the exact inputs, reviews the tool arguments, monitors processing, and verifies the returned result.

Related topics: Remove Subtitles from Video · Remove Subtitles from Video with Codex MCP · Medux MCP tutorial