I have a tube site and im using this function to generate thumbs from video file
Here is thumbs result, this image is just what i need, no border and etc..
i.imgur.com/ePpVA8E.png
but sometimes depending on video size i have thumbs like this
i.imgur.com/VTTESDf.png
Whats the best way to remove this black space from thumbs, but need to keep thumb size 240x180
Code:
ffmpeg -ss 255 -i test.mp4 -vcodec mjpeg -vframes 1 -an -f rawvideo -s 240x180 test.jpg
Here is thumbs result, this image is just what i need, no border and etc..
i.imgur.com/ePpVA8E.png
but sometimes depending on video size i have thumbs like this
i.imgur.com/VTTESDf.png
Whats the best way to remove this black space from thumbs, but need to keep thumb size 240x180


Comment