![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
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 |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Nov 2012
Location: New Orleans
Posts: 213
|
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
__________________
Tent Pitcher - Adult Search Engine |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
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 |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Nov 2012
Posts: 223
|
you need to asking your server support... to fixed that issue on ffmpeg
__________________
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
I'm not sure is server fault
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#6 |
small trip to underworld
Industry Role:
Join Date: Mar 2012
Location: first gen intel 80386/nintendo-gb/arcade/ps1/internet person
Posts: 4,927
|
u have ffmpeg installed on your cp?
__________________
automatic exchange - paxum , bitcoin,pm, payza . daizzzy signbucks caution will black-hat black-hat your traffic ignored forever :zuzana designs
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
Sure that i have it, latest version...!
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#8 |
small trip to underworld
Industry Role:
Join Date: Mar 2012
Location: first gen intel 80386/nintendo-gb/arcade/ps1/internet person
Posts: 4,927
|
nice
![]()
__________________
automatic exchange - paxum , bitcoin,pm, payza . daizzzy signbucks caution will black-hat black-hat your traffic ignored forever :zuzana designs
|
![]() |
![]() ![]() ![]() ![]() |