![]() |
ffmpeg problem with creating thumbnail
I have a tube site and im using this function to generate thumbs from video file
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 |
You will need to crop the frame/image to a multiple of your thumbnail before you resize it. The problem is that your thumbnail is a different aspect ratio than the source image. Try cropping it to 1200x900 or whatever the closest ratio to your source is.
Code:
-vf crop=width:height:x:y |
Yes im try something like this, but problems is because i dont know what video resolution user will upload 4:3 or 16:9, so any trick to detect black area and remove it automaticly, than with imagic i can resize and enhance image?
P.S good example i think you can see on hardsextube, black areas is removed |
you need to asking your server support... to fixed that issue on ffmpeg
|
I'm not sure is server fault
|
u have ffmpeg installed on your cp?
|
Sure that i have it, latest version...!
|
nice :thumbsup
|
All times are GMT -7. The time now is 03:10 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc