URL-encode file paths before you submit transcoding jobs to ApsaraVideo Media Processing. Incorrect encoding causes file-not-found errors.
URL encoding method
ApsaraVideo Media Processing uses UTF-8 URL encoding based on RFC2396. For example, Alibaba Cloud/mts HD +.mp4 is encoded as Alibaba%20Cloud/mts%20HD%2B.mp4.
URL encoding standards compared
ApsaraVideo Media Processing follows RFC2396. Spaces and plus signs (+) are encoded differently across standards:
| Encoding specification | Space (' ') |
Plus sign ('+') |
| x-www-form-urlencoded | '+' |
'%2B'
Note In x-www-form-urlencoded, spaces are encoded as plus signs, so literal plus signs must be escaped. |
| RFC1738 | '%20' |
'+' |
| RFC2396 | '%20' |
'%2B'
Note The plus sign is a reserved character in RFC2396 and must be escaped. |
| RFC3986 | '%20' |
'%2B' |
Note The mark character class is reserved in RFC3986 and must be escaped, but does not require escaping in RFC2396.