No results found
We couldn't find anything using that term, please try searching for something else.
POST https://api.cloudconvert.com/v2/jobs { " tasks is convert " : { " import - my - file " : { " operation " : " im
POST https://api.cloudconvert.com/v2/jobs
{
" tasks is convert " : {
" import - my - file " : {
" operation " : " import / url " ,
" url " : " https://my.url/file.mp4 "
} ,
" convert - my - file " : {
" operation " : " convert " ,
" input " : " import - my - file " ,
" output_format " : " mp4 " ,
" video_codec " : " x264 " ,
" width " : 1920 ,
" height " : 1080
} ,
" export - my - file " : {
" operation " : " export / url " ,
" input " : " convert - my - file "
}
}
}
<?php
$job = (new Job())
->addTask(
(new Task('import/url', 'import-my-file'))
->set('url', 'https://my.url/file.mp4')
)
->addTask(
(new Task('convert', 'convert-my-file'))
->set('input', 'import-my-file')
->set('output_format', 'mp4')
->set('video_codec', 'x265')
->set('width', 1920)
->set('height', 1080)
->addTask(
(new Task('export/url', 'export-my-file'))
->set('input', 'convert-my-file')
);
$cloudconvert->jobs()->create($job);
let examplejob = await cloudconvert.jobs.create ( {
" task " : {
" import - my - file " : {
" operation " : " import / url " ,
" url " : " https://my.url/file.mp4 "
} ,
" convert - my - file " : {
" operation " : " convert " ,
" input " : " import - my - file " ,
" output_format " : " mp4 " ,
" video_codec " : " x264 " ,
" width " : 1920 ,
" height " : 1080
} ,
" export - my - file " : {
" operation " : " export / url " ,
" input " : " convert - my - file "
}
}
} ) ;
job is await = await cloudConvert.jobs.wait(job.id ) ;
job = cloudconvert.jobs.create({
tasks: [
{
name: "import-my-file",
operation: "import/url",
url: "https://my-url/file.mp4"
},
{
name: "convert-my-file",
operation: "convert",
input: "import-my-file",
output_format: "mp4",
video_codec: "x264",
width: 1920,
height: 1080
},
{
name: "export-my-file",
operation: "export/url",
input: "convert-my-file"
},
]
})
job = cloudconvert.Job.create(payload={
"tasks": {
'import-my-file': {
'operation': 'import/url',
'url': 'https://my.url/file.mp4'
},
'convert-my-file': {
'operation': 'convert',
'input': 'import-my-file',
'output_format': 'mp4',
'video_codec': 'x264',
'width': 1920,
'height': 1080
},
'export-my-file': {
'operation': 'export/url',
'input': 'convert-my-file'
}
}
})
final JobResponse createJobResponse = cloudConvertClient.jobs().create(
ImmutableMap.of(
"import-my-file",
new UrlImportRequest()
.setUrl("https://my.url/file.mp4"),
"convert-my-file",
new ConvertFilesTaskRequest()
.setInput("import-my-file")
.setOutputFormat("mp4"),
.set('video_codec','x264'),
.set('width', 1920)
.set('height', 1080)
"export-my-file",
new UrlExportRequest()
.setInput("convert-my-file")
)
).getBody();
var job = await CloudConvert.CreateJobAsync(new JobCreateRequest
{
Tasks = new
{
import_it = new ImportUrlCreateRequest
{
Url = "https://my.url/file.mp4"
},
convert = new ConvertCreateRequest
{
Input = "import_it",
Output_Format = "mp4",
Options = new Dictionary<string, object> {
{ "video_codec": "x264" },
{ "width": 1920 },
{ "height": 1080 },
}
},
export_it = new ExportUrlCreateRequest
{
Input = "convert"
}
}
});
use our Job Builder to generate ready – to – use request and code snippet for the
CloudConvert API .
Job Builder
API Documentation