Video Concatenation Error
I'm trying to concatenate videos using the ruby gem. Here is the ruby code, and the url that is generated:
<%= cl_video_tag("video-clips/j30aqxpwa4uqp66jy6vzc5g9kz3i",
controls: true,
poster: true,
fallback_content: "Your browser does not support HTML5 video tags.",
transformation: [
{
:width=>400,
:height=>300,
:crop=>"limit",
},
{
:overlay=>"video:video-clips:nhc7yworetrzd5wqub7d2qgj51w9",
:flags=>"splice",
:width=>400,
:height=>300,
:crop=>"limit"
}
]
)%>
https://res.cloudinary.com/aca-media/video/upload/c_limit,h_300,w_400/c_limit,fl_splice,h_300,l_video:video-clips:nhc7yworetrzd5wqub7d2qgj51w9,w_400/v1/video-clips/j30aqxpwa4uqp66jy6vzc5g9kz3i.webm
Each video plays individually just fine. What am I missing?
https://res.cloudinary.com/aca-media/video/upload/c_limit,h_300,w_400/c_limit,fl_splice,h_300,l_video:video-clips:nhc7yworetrzd5wqub7d2qgj51w9,w_400/v1/video-clips/j30aqxpwa4uqp66jy6vzc5g9kz3i.webm
Each video plays individually just fine. What am I missing?
0
-
Hi John,
In concatenating videos, it is necessary that all videos should be of the same sizes. The URL you have shared has the error -"Concatenated videos sizes don't match. Given: 400x226 and 169x300". What you can do here is to use the cropping method `pad` instead of `limit`, the cropping method `pad` will apply padding if the resized image does not fill the whole area. Using this method, you will have 400x300 videos.
Let me know if this helps.
Thanks,
Francis
0
Post is closed for comments.
Comments
1 comment