[FFmpeg-user] How to change overlay parameter at runtime
penguin flying
theflyingpenguin2020 at gmail.com
Fri Mar 27 13:34:51 EET 2020
if you want to change the location (x, y) while using overlay,
maybe you can use it like this.
i.e.
x: move from x = 25 to x=45 in 4 sec ; in straight line way
y: always y = 25
k = (45 - 25) / 4 = 5
so the params maybe like this: overlay=x=25+5*(t -
0):y=25:enable='between(t,0,4)'
foxtail mega <foxtailmegadeveloper at gmail.com> 于2020年3月27日周五 下午6:49写道:
> Surely I will let you know if zmq works, but for zmq to work, ffmpeg has to
> be built with zmq and then enable zmq. The issue is mobile-ffmpeg has not
> enabled zmq by default and I will have to build it myself. I think zmq is
> the only way. But I will still try some other ways first.
>
> On Fri 27 Mar, 2020, 3:59 PM Michael Koch, <astroelectronic at t-online.de>
> wrote:
>
> > Am 27.03.2020 um 11:07 schrieb foxtail mega:
> > > Clarification regarding information (x,y for overlay filter).
> > >
> > > I am using ffmpeg for mobile devices so i am using flutter-ffmpeg. Now
> > > i am using dart language for supplying x and y co-ordinates to ffmpeg
> > > instance. Issue is, after i run the ffmpeg command, there is no way i
> > > am able to change the coordinates, so i have to stop running ffmpeg
> > > instance, and then re-run ffmpeg with changed coordinates.
> > >
> > > I guess i will check for suggested solution of realtime filter and
> > > sendcmd. I am not sure if that would work though.
> >
> >
> > A similar question was asked some time ago here:
> > http://ffmpeg.org/pipermail/ffmpeg-user/2019-August/045065.html
> >
> > One of the suggested solutions was FFmpeg's zmq filter. But I never
> > found a working example for it. If you figure out how it works, please
> > write a short documentation and let me know.
> >
> > Michael
> >
> >
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list