Skip to content

Commit 8b72610

Browse files
[Stream] Add troubleshooting reference for Media Transformation error codes (#24403)
* [Stream] Add troubleshooting reference for Media Transformation error codes Adds a troubleshooting reference for Media Transformation error codes. * Restructured and added context --------- Co-authored-by: ToriLindsay <[email protected]>
1 parent a131131 commit 8b72610

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

src/content/docs/stream/transform-videos/index.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
pcx_content_type: concept
33
title: Transform videos
44
sidebar:
5-
order: 5
5+
order: 4
66
badge:
77
text: Beta
88
---
99

10-
Media Transformations let you optimize and manipulate videos stored _outside_ of the Cloudflare Stream. Transformed videos and images are served from one of your zones on Cloudflare.
10+
You can optimize and manipulate videos stored _outside_ of Cloudflare Stream with Media Transformations. Transformed videos and images are served from one of your zones on Cloudflare.
1111

1212
To transform a video or image, you must [enable transformations](/stream/transform-videos/#getting-started) for your zone. If your zone already has Image Transformations enabled, you can also optimize videos with Media Transformations.
1313

@@ -126,16 +126,19 @@ Specifies the filename to use in the returned Content-Disposition header. If not
126126

127127
## Source video requirements
128128

129-
Input video must be less than 100MB.
130-
131-
Input video should be an MP4 with H.264 encoded video and AAC or MP3 encoded audio. Other formats may work but are untested.
129+
- Input video must be less than 100MB.
130+
- Input video should be an MP4 with H.264 encoded video and AAC or MP3 encoded audio. Other formats may work but are untested.
131+
- Origin must support either HTTP HEAD and range requests, and must return a Content-Range header.
132132

133133
## Limitations
134134

135135
Media Transformations are currently in beta. During this period:
136136

137137
- Transformations are available for all enabled zones free-of-charge.
138138
- Outputs from Media Transformations will be cached, but if they must be regenerated, the origin fetch is not cached and may result in subsequent requests to the origin asset.
139+
- Maximum input file size is 100 MB. Maximum duration of input video is 10 minutes.
140+
- Media Transformations are not compatible with [Bring Your Own IP (BYOIP)](/byoip/).
141+
- Input video should be an MP4 with H.264 encoded video and AAC or MP3 encoded audio. Other formats may work but are untested.
139142

140143
## Pricing
141144

src/content/docs/stream/transform-videos/sources.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pcx_content_type: how-to
33
title: Define source origin
44
sidebar:
5-
order: 4
5+
order: 2
66
badge:
77
text: Beta
88
---
@@ -12,7 +12,7 @@ When optimizing remote videos, you can specify which origins can be used as the
1212
On this page, you will learn how to define and manage the origins for the source videos that you want to optimize.
1313

1414
:::note
15-
The allowed origins setting applies to requests from Cloudflare Workers.
15+
The allowed origins setting applies to requests from Cloudflare Workers.
1616

1717
If you use a Worker to optimize remote videos via a `fetch()` subrequest, then this setting may conflict with existing logic that handles source videos.
1818
:::
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
pcx_content_type: troubleshooting
3+
title: Troubleshooting
4+
sidebar:
5+
order: 3
6+
badge:
7+
text: Beta
8+
---
9+
10+
If you are using Media Transformations to transform your video and you experience a failure, the response body contains an error message explaining the reason, as well as the `Cf-Resized` header containing `err=code`:
11+
12+
- 9401 — The required options are missing or are invalid. Refer to [Options](/stream/transform-videos/#options) for supported arguments.
13+
- 9402 — The video was too large or the origin server did not respond as expected. Refer to [source video requirements](/stream/transform-videos/#source-video-requirements) for more information.
14+
- 9404 — The video does not exist on the origin server or the URL used to transform the video is wrong. Verify the video exists and check the URL.
15+
- 9406 & 9419 — The video URL is a non-HTTPS URL or the URL has spaces or unescaped Unicode. Check your URL and try again.
16+
- 9407 — A lookup error occurred with the origin server's domain name. Check your DNS settings and try again.
17+
- 9408 — The origin server returned an HTTP 4xx status code and may be denying access to the video. Confirm your video settings and try again.
18+
- 9412 — The origin server returned a non-video, for example, an HTML page. This usually happens when an invalid URL is specified or server-side software has printed an error or presented a login page.
19+
- 9504 — The origin server could not be contacted because the origin server may be down or overloaded. Try again later.
20+
- 9509 — The origin server returned an HTTP 5xx status code. This is most likely a problem with the origin server-side software, not the transformation.
21+
- 9517 & 9523 — Internal errors. Contact support if you encounter these errors.
22+
23+
---

0 commit comments

Comments
 (0)