Skip to content

Instantly share code, notes, and snippets.

@DanLaufer
Last active March 3, 2019 09:29
Show Gist options
  • Save DanLaufer/9588613ce0265554fd743161fa319bab to your computer and use it in GitHub Desktop.
Save DanLaufer/9588613ce0265554fd743161fa319bab to your computer and use it in GitHub Desktop.
ffmpeg - Adjust Video Brightness Programmatically
ffmpeg -i movie.mp4 -vf eq=brightness=0.1 -c:a copy movie-brighter.mp4
@sritaanya
Copy link

sritaanya commented Mar 3, 2019

Hello,

I am running ffmpeg bat file on windows by using this code

[:loop

title CH1 - Channel Name

ffmpeg -i "Input Source" -q:v 0 -bsf h264_mp4toannexb -f mpegts - | ffmpeg -i - -isync -acodec aac -strict -2 -b:a 128000 -ar 32000 -vcodec libx264 -preset veryfast -b:v 2600k -s 1280x720 -aspect 16:9 -f flv "Output source"
goto loop]

I want to increase brightness and contrast and sharpness of video but how? Can anyone please edit this code and send me exact code for that? If any better solution is there then its very good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment