Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: dandv on December 23, 2017, 02:08:37 AM

Title: How can I increase gamma for a portion of a video?
Post by: dandv 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?
Title: Re: How can I increase gamma for a portion of a video?
Post by: eumagga0x2a 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 (http://avidemux.org/smif/index.php/topic,18011.msg82066.html#msg82066), 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.
Title: Re: How can I increase gamma for a portion of a video?
Post by: Jan Gruuthuse 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.
Title: Re: How can I increase gamma for a portion of a video?
Post by: BG Davis 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.
Title: Re: How can I increase gamma for a portion of a video?
Post by: eumagga0x2a 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 (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.