Multiple format video creation
Hi,
When I upload a video with an unsigned preset, I would like to create 3 file formats of that upload. So the default is .mp4 when uploaded from a google pixel, .mov when uploaded from an iphone. I want to create 3 files from that single upload webm, ogv, and mp4.
Is this spell available with the sorcery that is cloudinary?
I don't want the html5 video control to request a file that then needs to be lazy transformed on request. This will obviously become rather expensive and I assume will take longer to load.
-
Hi,
Yes, you're correct in that the first request for a new derived version of a video, such as when having to transcode a video to a different format lazily/synchronously would result in that first request being slower which isn't ideal. To combat such cases we do offer and recommend to generate the required versions that you will need ahead of time so that the first and subsequent requests would return the already generated version and thus not need to create it on-the-fly.
You can indeed upload an original MP4/MOV and then request for Cloudinary to generate other derived videos for different formats such as OGV and WebM. To do that, you can use eager transformations. Eager transformations allow you to specify any of our transformations which are then generated as a derived version of the original after an upload request. The eager transformations can be specified directly in 'upload' method calls or configured in an upload preset. In your case, these would be added as part of the upload preset you are using. You can do that by finding the relevant preset in your account, clicking on the Edit button, and then going to the Upload Manipulations tab. There you will see the Eager Transformation field which will popup a modal that will allow you to pick the different formats you need to be generated. After saving, these would take effect for all new uploads using that preset. You can also find more details and examples in the above link to our Eager Transformation section of the documentation.
Please take a look and let me know if this clears things up or if you have further questions?
Best regards,
Aleksandar
0
Post is closed for comments.
Comments
1 comment