Ithaca Free Software GNU Linux

A Central New York Free Software User Group
It is currently Wed Sep 08, 2010 8:05 am

All times are UTC - 4 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Adjust video brightness, contrast, hue, saturation
PostPosted: Tue Oct 20, 2009 11:13 am 
Offline
User avatar

Joined: Tue Sep 05, 2006 12:57 pm
Posts: 159
Location: Freeville, NY
I've used mencoder a few times to brighten videos captured in low-light. It works pretty well.

My typical usage is:
Passing the "-vf eq=20:20" option to the video codec. It increases the brightness:contrast by 20.
Code:
mencoder example.mpg -oac copy -ovc lavc -lavcopts vcodec=mpeg4  -vf eq=20:20 -o example.mp4


Bringing out some more color:
This example uses the -vf eq2 filter to keep the adjust the brightness, contrast, and saturation all in one go. I added "scale=." because the aspect is wrong without it.
Code:
mencoder example.mpg -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -vf eq2=1:1.5:.1:2:1:1:1:1,scale=640:480  -o example.mp4

key: -vf eq2= gamma : brightness : contrast : redgamma : greengamma : bluegamma : weight


Processing parts of the whole video:
You can use the -ss and -endpos options to work with a part of the whole video.
"-ss 10 -endpos 56" means begin at 10 seconds in, and end 56 seconds later (at 1:06).
Code:
mencoder example.mpg -ss 10 -endpos 56 -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -vf eq2=1:1.5:.1:2:1:1:1:1,scale=640:480  -o example.mp4


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 4 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group