Items with tag softlayer_network_media_transcode_account

    python

    reference

    • createTranscodeAccount
      With this method, you can create a transcode account. Individual SoftLayer account can have a single Transcode account. You have to pass your SoftLayer account id as a parameter.
    • createTranscodeJob
      '''Note'''. This method is obsolete. Please use the [SoftLayer_Network_Media_Transcode_Job::createObject](/reference/datatypes/$1/#$2) method on SoftLayer_Network_Media_Transcode_Job object instead. SoftLayer_Network_Media_Transcode_Job::createObject returns an object of a newly created Transcode Job. With this method, you can create a transcode job. The very first step of creating a transcode job is to upload your media files to the /in directory on your Transcode FTP space. Then, you have to pass a [SoftLayer_Network_Media_Transcode_Job](/reference/datatypes/SoftLayer_Network_Media_Transcode_Job) object as a parameter for this method. There are 4 required properties of SoftLayer_Network_Media_Transcode_Job object: transcodePresetName, transcodePresetGuid, inputFile, and outputFile. A transcode preset is a configuration that defines a certain media output. You can retrieve all the supported presets with the [SoftLayer_Network_Media_Transcode_Account::getPresets](/reference/datatypes/$1/#$2) method. You can also use [SoftLayer_Network_Media_Transcode_Account::getPresetDetail](/reference/datatypes/$1/#$2) method to get more information on a preset. Use these two methods to determine appropriate values for 'transcodePresetName' and 'transcodePresetGuid' properties. For an 'inputFile', you must specify a file that exists in the /in directory of your Transcode FTP space. An 'outputFile' name will be used by the Transcode server for naming a transcoded file. An output file name must be in /out directory. If your outputFile name already exists in the /out directory, the Transcode server will append a file name with _n (an underscore and the total number of files with the identical name plus 1). The 'name' property is optional and it can help you keep track of transcode jobs easily. 'autoDeleteDuration' is another optional property that you can specify. It determines how soon your input file will be deleted. If autoDeleteDuration is set to zero, your input file will be removed immediately after the last transcode job running on it is completed. A value for autoDeleteDuration property is in seconds and the maximum value is 259200 which is 3 days. An example SoftLayer_Network_Media_Transcode_Job parameter looks like this: * name: My transcoding * transcodePresetName: F4V 896kbps 640x352 16x9 29.97fps * transcodePresetGuid: {87E01268-C3E3-4A85-9701-052C9AC42BD4} * inputFile: /in/my_birthday.wmv * outputFile: /out/my_birthday_flash Notice that an output file does not have a file extension. The Transcode server will append a file extension based on an output format. A newly created transcode job will be in 'Pending' status and it will be added to the Transcoding queue. You will receive a notification email whenever there is a status change on your transcode job. For example, the Transcode server starts to process your transcode job, you will be notified via an email. You can add up to 3 pending jobs at a time. Transcode jobs with any other status such as 'Complete' or 'Error' will not be counted toward your pending jobs. Once a job is complete, the Transcode server will place the output file into the /out directory along with a notification email. The files in the /out directory will be removed 3 days after they were created. You will need to use an FTP client to download transcoded files.
    • getAccount
      The SoftLayer account information
    • getDirectoryInformation
      This method returns a collection of SoftLayer_Container_Network_Ftp_Directory objects. You can retrieve directory information for /in and /out directories. A [SoftLayer_Container_Network_Directory_Listing](/reference/datatypes/SoftLayer_Container_Network_Directory_Listing) object contains a type (indicating whether it is a file or a directory), name and file count if it is a directory.
    • getFileDetail
      This method returns detailed information of a media file that resides in the Transcode FTP server. A [SoftLayer_Container_Network_Media_Information](/reference/datatypes/SoftLayer_Container_Network_Media_Information) object contains media details such as file size, media format, frame rate, aspect ratio and so on. This information is merely for reference purposes. You should not rely on this data. Our library grabs small pieces of data from a media file to gather media details. This information may not be available for some files.
    • getFtpAttributes
      This method returns your Transcode FTP login credentials to the transcode.service.softlayer.com server. The Transcode FTP server is available via the SoftLayer private network. There is no API method that you can upload a file to Transcode server so you need to use an FTP client. You will have /in and /out directories on the Transcode FTP server. You will have read-write privileges for /in directory and read-only privilege for /out directory. All the files in both /in and /out directories will be deleted after 72 hours from the creation date.
    • getObject
      getObject method retrieves the SoftLayer_Network_Media_Transcode_Account object whose ID number corresponds to the ID number of the initial parameter passed to the SoftLayer_Network_Media_Transcode_Account service. You can only retrieve a Transcode account assigned to your SoftLayer customer account.
    • getPresetDetail
      This method returns an array of [SoftLayer_Container_Network_Media_Transcode_Preset_Element](/reference/datatypes/SoftLayer_Container_Network_Media_Transcode_Preset_Element) objects. Each preset has its own collection of preset elements such as encoder, frame rate, aspect ratio and so on. Each element object has a default value for itself and an array of [SoftLayer_Container_Network_Media_Transcode_Preset_Element_Option](/reference/datatypes/SoftLayer_Container_Network_Media_Transcode_Preset_Element_Option) objects. For example, 'Frame Rate' element for 'Windows Media 9 - Download - 1 Mbps - NTSC - Constrained VBR' preset has 19 element options. 15.0 frame rate is selected by default. Currently, you are not able to change the default value. Customizing these values may be possible in the future.
    • getPresets
      A transcode preset is a configuration that defines a certain media output. This method returns an array of transcoding preset objects supported by SoftLayer's Transcode server. Each [SoftLayer_Container_Network_Media_Transcode_Preset](/reference/datatypes/SoftLayer_Container_Network_Media_Transcode_Preset) contains a GUID property. You will need a GUID string when you create a new transcode job.
    • getTranscodeJobs
      Transcode jobs
    • SoftLayer_Network_Media_Transcode_Account
      The SoftLayer_Network_Media_Transcode_Account contains information regarding a transcode account.
    • SoftLayer_Network_Media_Transcode_Account
      Transcoding is a service which allows you to transcode media files to different formats. For example, if you have a Windows Media Video file you wish to stream in Flash Video format, transcoding would be the process to make this change. Individual SoftLayer customer can have a single Transcode account and you need to create a Transcode account to use the service. To create a Transcode account, go to the 'Private Network' -> 'Transcoding' page in the SoftLayer [https://manage.softlayer.com customer portal] or invoke [SoftLayer_Network_Media_Transcode_Account::createTranscodeAccount](/reference/datatypes/$1/#$2) method. SoftLayer Transcoding service supports a large number of video and audio codecs. This means you can transcode many different types of movies. Refer to [http://knowledgelayer.softlayer.com/questions/409/SoftLayer+Transcoding+FAQ Transcode FAQ] for supported codes and media containers. Transcode server also has hundreds of pre-defined output formats that you can choose from. A Transcode account object allows you to communicate with the Transcode FTP (transcode.service.softlayer.com server) server and Transcode server. You can retrieve a directory listing, details on a media file, Transcode output presets, and Transcode FTP login credentials. Most importantly, you can create transcode jobs through your Transcode account. When a Transcode account is created, it creates an FTP account on the Transcode FTP. You can upload your media files to the /in directory and you can download transcoded media files from the /out directory. You can keep the files 3 days from the creation date. They will be automatically deleted after this point. For more details on the Transcode FTP server, refer to [SoftLayer_Network_Media_Transcode_Account::getFtpAttributes](/reference/datatypes/$1/#$2) method.