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.

 

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 05-19-2013, 03:42 PM   #1
arena18
Confirmed User
 
arena18's Avatar
 
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

Last edited by arena18; 05-19-2013 at 03:43 PM..
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-19-2013, 09:18 PM   #2
Tent Pitcher
Confirmed User
 
Tent Pitcher's Avatar
 
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
Tent Pitcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-20-2013, 05:24 AM   #3
arena18
Confirmed User
 
arena18's Avatar
 
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

Last edited by arena18; 05-20-2013 at 05:25 AM..
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-20-2013, 06:09 AM   #4
dappz-datton
Confirmed User
 
Industry Role:
Join Date: Nov 2012
Posts: 223
you need to asking your server support... to fixed that issue on ffmpeg
__________________
dappz-datton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-20-2013, 06:29 AM   #5
arena18
Confirmed User
 
arena18's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 246
I'm not sure is server fault
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-27-2013, 03:27 PM   #6
CPA-Rush
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
CPA-Rush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-27-2013, 03:29 PM   #7
arena18
Confirmed User
 
arena18's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 246
Sure that i have it, latest version...!
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-27-2013, 05:00 PM   #8
CPA-Rush
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
CPA-Rush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.