Couldnt concatanate image with video with python

Comments

1 comment

  • Avatar
    Eric Pasos

    Hi Saurav,

    As the video that you are using is already uploaded into your Media Library account, you could use the explicit method and perform the eager transformation. For example (i.e. using Python SDK):

    cloudinary.uploader.explicit("sample_video",
                                  type = "upload",
                                  resource_type = "video",
                                  eager = [
                                      { "format": 'webm', "codec": 'vc_vp9/mp4', "quality": 'auto' },
                                      { "format": 'mp4', "codec": 'h264', "quality": 'auto' },
                                      { "format": 'mp4', "codec": 'h_265', "quality": 'auto' },
                                      { "format": 'auto', "quality": 'auto' }
                                ])

    On the other hand, you could also perform the eager transformation using the upload method of the Upload API for the video that is from another source location. For example (i.e. using Python SDK):

    cloudinary.uploader.upload("/localdir/sample_video.mp4",
                   type = "upload",
                   resource_type = "video",
                   eager = [
                            { "format": 'webm', "codec": 'vc_vp9/mp4', "quality": 'auto' },
                            { "format": 'mp4', "codec": 'h264', "quality": 'auto' },
                            { "format": 'mp4', "codec": 'h_265', "quality": 'auto' }, 
                            { "format": 'auto', "quality": 'auto' }],
                   eager_async = True,
                   eager_notification_url = "https://your_webhook_site",
                   notification_url = "https://your_webhook_site")

    As for concatenating videos and adding image overlays, you can take a look at the sample provided in this link.

    Hope this helps.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.