For trimming (video and audio option) please use the so
(start offset) and eo
(end offset) parameters.
Option t
(time) can be used for video to image transformation. For example, to get an image from the 3rd second of video, use t_3
as an option and set the extension to jpg
in the URL:
https://media.publit.io/file/t_3,w_800/tummy.jpg
To create a 2-second long trimmed video out of the original video starting from 2nd second, use so_2,eo_2
in the URL. so_2
indicates from which second (2) to start trimming and eo_2
is making the trimmed video 2 seconds long:
https://media.publit.io/file/so_2,eo_2,h_480/tummy.mp4
To create a 2 second long trimmed audio from original audio starting at 1st second, use so_1,eo_2
in the URL. so_1
indicates at which second (1) to start trimming and eo_2
makes the trimmed audio 2 seconds long:
https://media.publit.io/file/so_1,eo_2/railgun.mp3
Detailed instructions can be found on the docs page
Comments
0 comments
Please sign in to leave a comment.