Skip to content

Instantly share code, notes, and snippets.

@evitolins
Created February 5, 2014 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evitolins/8815187 to your computer and use it in GitHub Desktop.
Save evitolins/8815187 to your computer and use it in GitHub Desktop.
<?
// Source:
// http://www.encoding.com/help/sub_category/category/error_codes
$encoding_errorCodes = array(
"ECOM00229" => "S3 upload error: We encountered an internal error. Please try again.",
"ECOM00228" => "S3 upload error: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.",
"ECOM00230" => "Creating the dir/file failed: No such file or directory.",
"ECOM00202" => "Error putting thumbnail",
/*
This error is encountered when our platform is unable to deliver the thumbnail to the specified destination. Please verify the path, syntax and permissions and retry your request.
*/
"ECOM00203" => "S3 Download error",
/*
When you submit jobs to us via an Amazon S3 location, it's imperative that we can read it. Please refer to the Knowledge Base article on setting permissions if your source file is to be encoded properly. http://help.encoding.com/idx.php/9/025/Amazon-S3-Integration/article/How-can-I-use-a-Amazon-S3-file-as-a-source.html
*/
"ECOM00227" => "The requested URL returned error: 400",
/*
The web server returned an error processing your request: the request was not understood.,
*/
"ECOM00226" => "The requested URL returned error: 503",
/*
The web server returned an error processing your request: "Service Unavailable." ,
*/
"ECOM00225" => "The requested URL returned error: 404",
/*
The web server returned an error processing your request: there is no page with the specified URL.,
*/
"ECOM00201" => "Error while opening file" ,
/*
Our encoding platform is experiencing issues decoding your source file. It may be the case that your source file format uses some features that our decoder doesn't currently support. Please scroll to the bottom of our home page and plug in your source and output formats to see if we
*/
"ECOM00224" => "The requested URL returned error: 403",
/*
The web server returned an error processing your request: access to the requested URL is not allowed.
*/
"ECOM00203" => "S3 Download error",
/*
When you submit jobs to us via an Amazon S3 location, it's imperative that we can read it. Please refer to the Knowledge Base article on setting permissions if your source file is to be encoded properly. http://help.encoding.com/idx.php/9/025/Amazon-S3-Integration/article/How-can-I-use-a-Amazon-S3-file-as-a-source.html
*/
"ECOM00202" => "Error putting thumbnail",
/*
This error is encountered when our platform is unable to deliver the thumbnail to the specified destination. Please verify the path, syntax and permissions and retry your request.
*/
"ECOM00201" => "Error while opening file",
/*
Our encoding platform is experiencing issues decoding your source file. It may be the case that your source file format uses some features that our decoder doesn't currently support. Please scroll to the bottom of our home page and plug in your source and output
*/
"ECOM00139" => "Encoder error: Failed extracting mp3 from the ts file that was submitted",
"ECOM00138" => "Audio downmixing failed",
"ECOM00137" => "Can not resample 4 channels @ 44100 Hz to 2 channels @ 44000 Hz",
"ECOM00223" => "Connection time-out",
/*
Check to see if the location of your files either on the source side or destination is currently online. Try reaching the locations manually and check the syntax of the locations.,
*/
"ECOM00136" => "Bufsize is required",
"ECOM00218" => "Cannot assign requested address",
/*
This issue may be firewall related. Please ensure that we can gain access to the FTP server. Perhaps you may want to try using passive FTP mode for source or destination.
"*/
"ECOM00135" => "syntax error near unexpected token",
/*
Encoder error: OverallBitRate:163322\nsh: -c: line 0: syntax error near unexpected token `('\nsh: -c: line 0: `/usr/local/bin/mediainfo /mnt/vhosts/default/code/tmp/afa2b2b124ecb76ad4df56a4878d036f/Alic ,
*/
"ECOM00222" => "S3 upload error: All access to this object has been disabled",
/*
Permissions, naming and other features may have changed on the destination side of things. Check to see if any of the permissions, locations or any other features have changed on the S3 storage location.
*/
"ECOM00134" => "width or height not divisible by 16 (480x360), compression will suffer",
/*
Your sourcevideo appears to not want to play nicely with our encoding platform. Generally, it's best to see what the dimensions are of the video and see if they are divisible by 16.,
*/
"ECOM00221" => "S3 download error: The specified key does not exist",
/*
It appears that your Amazon key is not being recognized as valid. Please check the content of the string you entered and see if it is valid. Also, please make sure that the key that you are using from S3
*/
"ECOM00220" => "Failed to MKD dir",
/*
This error is related to an issue with the path and the folder. Please check whether you specified correct path and set appropriate permissions.
*/
"ECOM00219" => "Error getting file",
/*
Check your S3 source permissions, bucket name and credentials for valid values and resubmit. If this doesn't clear up your issue, try a different location or contact Support.
*/
"ECOM00211" => "Timed out before server could connect to us",
/*
A good attempt at trying to get around this issue is to try to use passive mode in your FTP syntax. Simply add '?passive=yes' to the end of your FTP URL.
*/
"ECOM00210" => "Upload Error: Authentication failure",
/*
This error is directly related to your login details. Please double check that your username and password are correct. Also. when you enter in details for the username for your destination URL, you must ensure that you specify non-encoded characters by their proper hexadecimal equivalent.
*/
"ECOM00209" => "Failed FTP upload: 550",
/*
Error 550 usually denotes a permissions error. The FTP server at the client level is not allowing the credentials that it was passed to do what it was expected to with the file system. Please check whether the FTP user is allowed to read &
*/
"ECOM00208" => "Error accessing S3 file",
/*
It appears that the correct permissions were not exacted upon the destination folder. Please also check to see if the specified destination bucket exists. You can read all about S3 Amazon permissions for destinations at this Knowledge Base article: http://help.encoding.com/idx.php/9/032/Amazon-S3-Integration/article/Setting-permissions-for-Amazon-S3-bucket-delivery-from-encodingcom.html
*/
"ECOM00207" => "Error putting file to S3",
/*
It appears that the correct permissions were not exacted upon the destination folder. Please also check to see if the specified destination bucket exists. You can read all about S3 Amazon permissions for destinations at this Knowledge Base article: http://help.encoding.com/idx.php/9/032/Amazon-S3-Integration/article/Setting-permissions-for-Amazon-S3-bucket-delivery-from-encodingcom.html
*/
"ECOM00206" => "Upload Error: Uploaded unaligned file size",
/*
When this error is encountered, we would encourage you to double check that the file was not relocated or removed from its current location while uploading to encoding.com's platform. There's also the chance that a network connection was lost at the source file
*/
"ECOM00205" => "Upload Error: Couldn\'t resolve host .*@",
/*
When you enter in details for the username for your destination URL, you must ensure that you specify non-encoded characters by their proper hexadecimal equivalent. For example, if '@' is part of your username, you must replace the '@' in the username part
*/
"ECOM00204" => "S3 Upload Error: Access denied",
/*
When you encounter this error, the first step that you must take it to verify that the S3 destination bucket has granted write permission for AWS user fastencoding. Please view the knowledge base article on S3 delivery for further explanation: http://help.encoding.com/idx.php/9/032/Amazon-S3-Integration/article/Setting-permissions-for-Amazon-S3-bucket-delivery-from-encodingcom.html
*/
"ECOM00216" => "connect() timed out",
/*
This error occurs when we have users that are requesting our platform to access files that are on an FTP server that is behind a firewall. Also, please verify that your FTP server is running and reachable by outside sources.
*/
"ECOM00133" => "Can't get segment duration",
/*
Encoder error: OverallBitRate:588175\n\n\nDuration:380612\n\n\nCan't get segment duration\n,
*/
"ECOM00215" => "couldn't connect to host",
/*
This error occurs when we have users that are requesting that our platform access files that are on an FTP server that is behind a firewall. Also, please verify that your FTP server is running and reachable by outside sources.
*/
"ECOM00214" => "Upload failed: Permission denied",
/*
Our encoding platform is experiencing issues accessing your files at your S3 location. Please make sure your source files and containing bucket are readable by AWS user 'fastencoding'.
*/
"ECOM00213" => "Upload failed: Permission denied",
/*
Please check if you specified correct file path (especially when using SFTP), and the specified user is able to write to this directory. It's imperative for the user whom is accessing the directory to have write permissions.
*/
"ECOM00212" => "Upload Error: Upload failed: Permission denied",
/*
Please check if your credentials are correct for the FTP path specified. If you are using special characters in your username, it's imperative to URL encode them. For example, if you are using @ in a username, replace it with %40. It's also
*/
"ECOM00217" => "error opening file",
/*
Please verify that your source file is self-contained. It may be that your source file contains references to streams located in another files on your hard drive.
*/
"ECOM00119" => "libfaac doesn't support this output format.",
/*
The most often reason that you would run across this video is that the left audio parameter is blank. At this point, the encoder tried to take them from the source, but the target audio codec does not support such parameters set, e.g. 8000 Hz mono.,
*/
"ECOM00127" => "Incorrect video parameters such as bitrate, width or height",
/*
Your source video appears to not want to play nicely with our encoding platform. Generally, it's best to see what the dimensions are of the video and see if they are divisible by 8.
*/
"ECOM00127" => "an encoder error",
/*
Additional notes: -acodec libmp3lame Encoder error: /usr/local/ffmpeg/current/bin/ffmpeg -i '/mnt/vhosts/default/code/tmp/331bc4d5e40275ce90cd389f313f4071/vzc06e77571ebe4fa8834255d2e369c81b-1200k.split.1.ts' -vn -acodec libmp3lame -y '/m
*/
"ECOM00129" => "Compressed SWF format not supported",
/*
Simply put, we can't decode this codec.
*/
"ECOM00128" => "Encoder error: sh: /bin/tar: Argument list too long",
/*
This is known bug. It will be fixed in nearest release. ,
*/
"ECOM00127" => "Audio stream was not found.",
/*
Verify that the clip that you sent contains audio. Also please verify that the clip that you sent transferred in its entirety. If you're sure your media contains the right components, please contact technical support
*/
"ECOM00126" => "Encoding was not completed An unexpected error occurred during encoding.",
/*
Computers aren't always perfect! Try to restart your job to see if you can circumvent this issue.
*/
"ECOM00125" => "Could not decode source file.",
/*
Please verify that the source clip that you submitted is acceptable by our encoding platform. If you browse to the bottom of http://www.encoding.com and plug in your source and desired output, you can verify whether or not we support your source codec.
*/
"ECOM00124" => "Segmentation error",
/*
This error can be traced to specifying the incorrect set of parameters: segment duration, framerates and keyframes. Please refer to http://help.encoding.com/idx.php/0/142/article/why-do-i-get-segmentation-error.html for more details,
*/
"ECOM00123" => "Neither video nor audio stream was found.",
/*
Verify that the clip that you sent does contain video and audio. Also please verify that the clip that you sent transferred in its entirety. If you're sure your media contains the right components, please contact technical support.,
*/
"ECOM00122" => "Unknown format.",
/*
This error could denote a few different issues:,
1) Your source file may be corrupted. Please verify that your source has uploaded in its entirety.
2) Double check that your file is supported by encoding.com. It may be that it is not supported format. Check it against our source
*/
"ECOM00121" => "Unsupported codec for input video stream.",
/*
Your sourcemedia contains a video stream that our system cannot decode. A good way of isolating this issue is to resubmit a different version of your source clip. Please contact technical support for more details.
*/
"ECOM00120" => "Unsupported codec for input audio stream.",
/*
Your source media contains an audio stream that our platform could not decode. A good way of isolating this issue is to resubmit a different version of your source clip. Please contact technical support for more details.
*/
"ECOM00118" => "Video codec is not supported.",
/*Our encoding engine is unable to decode the source video that you submitted. Please refer to our supported format list and submit a different version of your clip.,
How can I better understand the types of error messages I am receiving?
To provide a foundation for a strong error messaging system, we have segmented error codes into four main categories. This makes the error messages easier to classify as well as allow our API customers to take specific actions programatically in their software based on a specific error message that was returned. Here is the breakdown of categories:
ECOM00000 –
*/
"ECOM00117" => "Unknown encoder .",
/*No resulting file. Our encoder was not able to produce any resulting file from the submitted clip. This is internal error, please inform us if it persists.
*/
"ECOM00116" => "Wrong input file format",
/*
Your source file may be corrupted or it is not in supported format. Be sure the source URL you specified returns valid data and there is no JavaScript or external references that could not be understood by our download engine.
*/
"ECOM00115" => "Video stream was not found.",
/*
Generally we see these errors when there are issues related to the uploading of source clips. Also, please double check that the video that you submitted contains a video stream.
"ECOM00114" => "Requested video bitrate is too low." ,
/*
For this error, I would refer back to your request and verify that you specified the bitrate correctly, e.g. "500k" instead of "500". Also, you can avoid such issues by using 1-pass encoding.
*/
"ECOM00113" => "Unknown encoder error .",
/*
This vague error will be thrown when there is an encoder error at the platform level. Don't hesitate to give us a jingle or an email through the support form if you want to alert us!
*/
"ECOM00112" => "Encoding was not completed: .*: could not find codec parameters.",
/*
Your source file did not contain a video stream. Please check your source file for a video stream if the request that you made was for an output requiring audio and video.
*/
"ECOM00111" => "Unsupported codec .* for input",
/*
Your source file that you presented to us is not part of our supported format list. We could not decode your source! It's best to check what you submitted to us against the supported format list. You can double check if your source format is
*/
"ECOM00110" => "Cannot allocate temp picture, check pix fmt.",
/*
You'll receive this error if you've specified a frame size that is not acceptable to the format you have chosen. This will happen when the frame size that is requested is too large for the selected codec.
*/
"ECOM00109" => "Output file does not contain any stream.",
/*
It seems your source file looks like valid video container, but it doesn't contain any video/audio data. Be sure the source URL you specified returns valid data and there is no JavaScript or external references that could not be understood by our download
*/
"ECOM00108" => "Unsupported codec for output stream.",
/*
There are certain formats that need to have certain parameters defined before they will work properly. In such cases you must specify the values explicitly in your request. For example for 3GP format you should use audio codec libamr_nb.
*/
"ECOM00001" => "Unknown encoder.",
/*
You'll receive this error when you've specified a output codec that encoding.com does not support. Please check if the codec you've requested is part of our the services that we offer. Scroll to the bottom of our page http://www.encoding.com/ and plug in your source
*/
"ECOM00106" => "Error while opening codec for output stream.",
/*
It is entirely possible to create tasks that just don't meet the specs for certain codecs. Please watch for this caveat. Please ensure that the specified parameters (bit rate, audio sampling rate, number of audio channels) meet the needs of the specified codec.
*/
"ECOM00105" => "Crop size must be a multiple of 2.",
/*
You'll receive this message when you have chosen crop parameters that are not divisible by 2. Please double check your request for any odd numbers.
*/
"ECOM00104" => "The AWS Access Key Id you provided does not exist.",
/*
Frame size must be a multiple of 2 You'll receive this message when you've specified an invalid width or height value in your request. When specifying size as WxH, both width and height must be multiple of 2.
*/
"ECOM00103" => "Incorrect frame size.",
/*
Please check the frame size is correctly specified in your request. Make sure that it does not contain whitespaces or zero dimensions (for example 0x240). It would also be useful for you to inspect your source video to ensure that the video you are submitting has the
*/
"ECOM00102" => "No audio or video streams available.",
/*
You will encounter this error if you are trying to decode a video format that our encoder does not understand. Please take a moment to view our supported format list and ensure that you are pulling from our trusted format list: http://www.encoding.com/wdocs/SourceFileFormats.
*/
"ECOM00101" => "Could not write header for output file.",
/*
The specified codec that you have selected does not support what you are requested of it as an output file. You may be including or omitting certain parameters that are not supported for this format. In addition to that, you may need special
*/
"ECOM00003" => "The specified bucket does not exist .",
/*
Please verify that the source location exists. Our encoding platform believes that this location is invalid.
*/
"ECOM00002" => "Overtime Limit Exceeded.",
/*
Overtime Limit Exceeded
*/
"ECOM00001" => "The AWS Access Key Id you provided does not exist."
/*
Please verify you specified the correct AWS key and it is properly encoded in the URL. If you still experience this problem, please contact customer support.
*/
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment