Login

Remove unwanted parts in video

Eliminate unnecessary sections from your videos using FastPix’s simple editing feature. With this tool, you can remove mistakes, interruptions, or irrelevant content, allowing you to produce polished, professional videos with a clear and focused narrative.


Steps to remove video segments from new media

To remove sections of a video, use FastPix’s Create media from URL or Upload media from device API endpoint. Specify the segments you want to exclude, and FastPix will edit them out, leaving a smooth final video.


Step 1: Identify unwanted segments

Determine the start and end times for the portions of the video you want to remove. For example, in a 10 seconds video if there’s a segment from 2 to 5 seconds and another from 7 to 9 seconds that you want to delete, make a note of these times.


TIP
Ensure the timestamps accurately cover the unwanted content to avoid accidentally cutting desired parts of the video.


Step 2: Configure the JSON request with expunge segments

Using FastPix’s API, define the segments to remove by setting expungeSegments within the JSON request. For each segment, provide the start and end times in seconds.


Example JSON request payload for creating media from URL


{  
  "inputs": [  
    {  
      "type": "video",  
      "url": "https://static.fastpix.io/sample.mp4",  
      "expungeSegments": ["2-5", "7-9"]  
    }  
  ], 
"accessPolicy": "public", 
 "maxResolution": "1080p" 
} 

In this examples, the segments from 2 to 5 seconds and 7 to 9 seconds will be removed, leaving the rest of the video intact.


Request body while creating new media by direct upload


{
  "corsOrigin": "*",
  "pushMediaSettings": {
    "inputs": [
      {
        "type": "video",
        "expungeSegments": ["2-5", "7-9"]
      }
    ],
    "metadata": {
      "key1": "value1"
    },
    "accessPolicy": "public",
    "maxResolution": "1080p"
  }
}

Request body while removing segments from existing media


{  
  "inputs": [  
    {  
      "type": "video",  
      "url": "fp_mediaId://14206796-a1f5-4b9f-a086-2595802425d8",  
      "expungeSegments": ["4-6", "15-19"]  
    }  
  ], 
"accessPolicy": "public", 
"maxResolution": "1080p" 
} 

In this example, in place of the URL you can provide the existing media Id with fp_mediaId:// prefix and segments from 4 to 6 seconds and 15 to 19 seconds will be removed, leaving the rest of the video intact.


Step 3: Submit your API request

After creating the JSON request, send it through the FastPix API endpoint. The system will process your request, removing the specified segments to produce a seamless, edited video.


Example scenario

Let’s say your original video is 10 seconds long, and you remove two segments totalling 6 seconds (2-5 seconds and 7-9 seconds). After processing, your final video duration will be 5 seconds.


PLEASE NOTE
Removed segments do not affect the overall quality of the remaining content.


Tips for optimal results

  • Use precise timestamps: Ensure start and end times accurately match the unwanted content.

  • Avoid over-cutting: Only remove parts that don’t contribute to the video’s purpose to keep the narrative intact.

  • Preview edited videos: Once processed, preview the edited video to confirm all unwanted content has been removed as expected.