This following piece will resize a video to maximum 1280 pixels in height, but doesn't take the width into account, it just keeps the ratio. The part of code that is actually relevant is the scale portion. Here comes the tricky part, I don't want to ruin the aspect ratio and I don't want the video to be upscaled if it's smaller than 1280. ![]() It doesn't matter if the final video is 720*1280 or 1280*1280 or something completely else, as long as neither of the two sides surpass 1280 pixels. Now my problem lies within the ffmpeg command that I'm passing to CC, as I need to keep videos below 1280 pixels on either side. I already have it so the script communicates and utilizes the API of. I'm trying to write a script for a telegram userbot that can convert any video/animation to a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |