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