How stream clip works? Generates a new video or modifies the actual one?

Type

Video

What is the issue you’re encountering

How stream clip works? Generates a new video or modifies the actual one?

What are the steps to reproduce the issue?

Anyone knows if stream clip api (Cloudflare API Documentation) generates a new video or modifies the original one? If modifies the original one what happens if the video wasn’t processed yet? Do I lose quality from clipping the original one?

It generates a new video. It does not modify the actual video.

@zaid Thank you. I took a look and I have some questions.

How do I get the UID of the new video? I took a look at the response and only returns the clippedFromVideoUID but I need the new ID for the webhook.

Is safe to delete the original video after the clip generation?

My use case is:

  • I generate a direct upload link for tus protocol (Direct creator uploads | Cloudflare Stream docs)
  • Once uploaded user can only keep 30 seconds of his video so I want to clip it (Can it be clipped on the 1st upload without server side work?)
  • While the video is being clipped and encoded is not available until I get the webhook response with successful response.