public CreateTranscodingJobResponse createTranscodingJob ( String pipelineName , String sourceKey , String targetKey , String presetName , String watermarkId , DelogoArea delogoArea ) { CreateTranscodingJobRequest request = new CreateTranscodingJobRequest ( ) ; request . setPipelineName ( pipelineName ) ; Source source = new Source ( ) ; source . setSourceKey ( sourceKey ) ; request . setSource ( source ) ; Target target = new Target ( ) ; target . setTargetKey ( targetKey ) ; target . setPresetName ( presetName ) ; if ( ! Strings . isNullOrEmpty ( watermarkId ) ) { List < String > watermarkIds = Collections . singletonList ( watermarkId ) ; target . setWatermarkIds ( watermarkIds ) ; } if ( delogoArea != null ) { target . setDelogoArea ( delogoArea ) ; } request . setTarget ( target ) ; return createTranscodingJob ( request ) ; }
Creates a new transcoder job which converts media files in BOS buckets with specified preset watermarkId and delogoArea .