A
A
akakakaka2022-01-08 18:21:46
fmpeg
akakakaka, 2022-01-08 18:21:46

How to apply an effect with ffmpeg for a certain time?

There is a command for FFMPEG that imposes a sepia effect on the video

ffmpeg -threads 2 -y -i m1.mp4 -strict experimental -filter_complex  [0:v]colorchannelmixer=.435:.123:.112:0:.563:.124:.124:0:.324:.554:.133[colorchannelmixed];[colorchannelmixed]eq=1.0:0:1.3:2.4:1.0:1.0:1.0:1.0[color_effect] -map [color_effect] -map 0:a -vcodec mpeg4 -crf 23 -b:v 1000K -maxrate 1500K -bufsize 500K m3v.mp4


The question is how to make it superimpose it at a certain time
For example from 00:01:10 to 00:02:20
and then from 00:03:01 to 00:04:00?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2022-01-08
@akakakaka

see Timeline editing . Examples:

smartblur = enable='between(t,10,3*60)',
curves    = enable='gte(t,3)' : preset=cross_process
Expressions of type between()and are gte()described in Expression evaluation
The output of the command ffmpeg -filterswill show which of the filters support timeline (letter "T").
Filters colorchannelmixerand eqfrom your team - support:
Filters:
  T.. = Timeline support
  .S. = Slice threading
  ..C = Command support
  A = Audio input/output
  V = Video input/output
  N = Dynamic number and/or type of input/output
  | = Source or sink filter

 TSC colorchannelmixer V->V       Adjust colors by mixing color channels.
 T.C eq                V->V       Adjust brightness, contrast, gamma, and saturation.
spoiler
Нет, готовую команду под вашу задачу не напишу.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question