百度智能云

All Product Document

          Multimedia Cloud Processing

          Thumbnail-Job

          Create Thumbnail Job

          To create a thumbnail job, you can refer to the following codes:

          pipeline_name = 'a3' 
          source = {'key': '36A2014.mp4'} 
          response = client.create_thumbnail_job(pipeline_name,  source) 
          print response 

          The interface returns an object containing the jobId.

          Query Assigned Thumbnail Jobs

          If you need to get a created thumbnail job information, you can refer to the following code:

          job_id = "your jobId" 
          response = client.get_thumbnail_job(job_id) 
          print response 

          Query the Thumbnail Job Information of the Assigned Pipeline

          To get the information about all thumbnail jobs in a pipeline, you can see the following code:

          pipeline_name = "your pipeline" 
          response = client.list_thumbnail_jobs_by_pipeline(pipeline_name) 
          print response
          Previous
          Mediainfo
          Next
          Watermark