concatenate videos in nodejs

ascdsc
ascdsc Member Posts: 3
edited September 3 in Developer APIs

hi , i am uploading videos to cloudinary in chunks , i want to cocnatenated videos from cloudinary is it possible,

i am storing all data like url, assest_id, publi_id etc

Tagged:

Answers

  • DannyFromCloudinary
    DannyFromCloudinary Member, Cloudinary Staff Posts: 151

    Hey, thanks for getting in touch.

    This is absolutely possible - I recommend having a read of this article in our documentation which includes examples in Node: https://cloudinary.com/documentation/video_transformations_tutorial

    Please let us know how it goes :)

    -Danny

  • ascdsc
    ascdsc Member Posts: 3

    hi @DannyFromCloudinary
    thanks for your help ,i get a tranfromation link after concatenating , i want to ask if it possible to save the transformation video in cloudinay itself , instead of link?

  • DannyFromCloudinary
    DannyFromCloudinary Member, Cloudinary Staff Posts: 151

    We're not able to directly save the result of a transformation as a new asset, however you could take the generated URL and use that as the source when uploading a new file, for instance, in the Media Library:

    or in Node:

    cloudinary.uploader.upload("https://res.cloudinary.com/demo/video/upload/c_fill,h_200,w_300/fl_splice,l_video:dog/c_fill,h_200,w_300/fl_layer_apply/kitten_fighting.mp4", {
    	resource_type: "video"
    })
    .then(result=>console.log(result))
    .catch(error=>console.warn(error))