- Newest
- Most votes
- Most comments
Unfortunately, AWS MediaConvert does not provide a direct way to split a single input video into multiple output clips with different time ranges within a single job. The service is primarily designed for transcoding and packaging media files, rather than for complex editing tasks like splitting videos.
To achieve your desired outcome of creating two separate video files from specific time ranges of a single input, you would need to create two separate MediaConvert jobs. Each job would be configured with the same input file, but with different input clipping settings to extract the desired portions of the video.
For your specific use case:
-
Create the first MediaConvert job:
- Input: input.mp4
- Input Timecode Source: Start at 0
- Input Clipping: Start timecode 00:00:00, End timecode 00:01:00
- Output: clip1.mp4
-
Create the second MediaConvert job:
- Input: input.mp4
- Input Timecode Source: Start at 0
- Input Clipping: Start timecode 00:01:00, End timecode 00:02:00
- Output: clip2.mp4
While this approach requires running two separate jobs, it ensures that you get the exact clips you need from your input video. Each job will process only the specified portion of the input, which can be more efficient than processing the entire video multiple times.
If you frequently need to split videos in this manner, you might consider creating a workflow that automates the creation and submission of these MediaConvert jobs, perhaps using AWS Lambda or Step Functions to orchestrate the process.
Sources
Clip video for only one of the outputs | AWS re:Post
Tutorial: Configuring job settings - MediaConvert
Adjusting the input timeline with the input timecode source - MediaConvert
the above answer is accurate; you need two jobs with two separate time clipping windows.
You may also be able to use the AWS MediaConvert passthrough function, without transcoding, if your source is I Frame encoded. Otherwise you would need to run two transcode jobs as detailed in the other responses.
Please see the following for restrictions on MediaConvert Passthrough. https://docs.aws.amazon.com/mediaconvert/latest/ug/video-passthrough-feature-restrictions.html
Relevant content
- asked 3 years ago
- asked a year ago