Brave Cobra's Hideout
If Linux doesn't have the solution, you have got the wrong problem.
HomeNews

News

Linux

Linux: Make movies brighter with mencoder

Contributed by bravecobra on Apr 20, 2005 - 10:21 AM

Linux

You bought a little camera that can make video's? Some of these camera's perfom very bad when there is not much light. Sometimes it's even impossible to recognize what the video represents. There must be a way to make these home video's a little brighter.

Mplayer includes a video encoder called Mencoder. With Mencoder you can also process the video before encoding. You can try this to make the clips brighter (and also noisy):

mencoder dark_video.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -vf eq=75:100 -o out.avi

In the example, the result video is in Divx 4/5 format. Try varying brightness/contrast values. Also, trying eq2 would be worth it, since it can adjust eg. gamma, brightness, saturation, and rgb channels independently. Eg this way (rgb not treated in this):

mencoder dark_video.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -vf eq2=0.5:1.9:1.1 -o out.avi

Happy encoding!


 

Rating

  • Currently 0 / 5 Stars.

Comments

  1. thank you
  2. Thank you. This allowed me to salvage some video that I thought I wasn't going to be able to use.

Only logged in users are allowed to comment. Register or log in.