Author Topic: How can I increase gamma for a portion of a video?  (Read 447 times)

dandv

  • Newbie
  • *
  • Posts: 2
How can I increase gamma for a portion of a video?
« on: December 23, 2017, 02:08:37 AM »
I have a video that gets dark at the end as it gets dark outside. I want to increase the gamma for that portion but Avidemux doesn't let me make the Mplayer eq2 filter partial.

This is a really basic and common task. Other color filters can be made partial. Can we make this one too?
« Last Edit: December 23, 2017, 02:18:25 AM by dandv »

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 2026
Re: How can I increase gamma for a portion of a video?
« Reply #1 on: December 23, 2017, 12:50:20 PM »
Technically, there are two kinds of video filters in Avidemux: filters which don't use caching as filters which do. Filters which like eq2 use caching can't be made partial.

I assume you use Linux, so building Avidemux from source is trivial. In this case you could apply the attached patch which would allow to make eq2 partial with implications I don't have time to investigate now.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6001
Re: How can I increase gamma for a portion of a video?
« Reply #2 on: December 23, 2017, 02:02:12 PM »
load video
mark and save part that does not need adjustment (part1)
delete marked part1 from video (delete)
apply the wanted filter over the remaining video
save as part 2
close video
load part 1, append part 2 and save as new video.

BG Davis

  • Jr. Member
  • **
  • Posts: 72
Re: How can I increase gamma for a portion of a video?
« Reply #3 on: January 03, 2018, 06:46:46 PM »
You can edit portions of a video clip in an older version of Avidemux, v2.5.
Sad to see that this useful function was removed in later versions.

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 2026
Re: How can I increase gamma for a portion of a video?
« Reply #4 on: January 04, 2018, 09:26:51 PM »
I've pushed the patch attached to http://avidemux.org/smif/index.php/topic,18158.msg82988.html#msg82988 to the git master. The MPlayer eq2 filter should be partializable in nightlies built on 2018-01-05 and later.