How to change overlay parameter at runtime

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

How to change overlay parameter at runtime

foxtail mega
can someone please help regarding this issue ?

-re -i video.mp4 -i image.png -filter_complex "[0:v][1:v]
overlay=25:25:enable='between(t,0,4)'" -pixel_format yuv420p -tune
zerolatency -c:a copy -c:v libx264 -crf 27 -preset veryfast -f mpegts
udp://localhost:5454


here i am using overlay as 25:25, but i wish to change that at
runtime, and i know i can't use variable for this, so how do i change
this overlay parameters at runtime ?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Paul B Mahol
On 3/27/20, foxtail mega <[hidden email]> wrote:

> can someone please help regarding this issue ?
>
> -re -i video.mp4 -i image.png -filter_complex "[0:v][1:v]
> overlay=25:25:enable='between(t,0,4)'" -pixel_format yuv420p -tune
> zerolatency -c:a copy -c:v libx264 -crf 27 -preset veryfast -f mpegts
> udp://localhost:5454
>
>
> here i am using overlay as 25:25, but i wish to change that at
> runtime, and i know i can't use variable for this, so how do i change
> this overlay parameters at runtime ?

Using expressions, everything is clearly explained in available documentation.

> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

foxtail mega
Actually I meant when ffmpeg is running, I want to send parameters to that
running ffmpeg instance and that should change the filter_complex overlay
parameters in the next frame of processing.

Using expression is like hard coding parameters into ffmpeg command. I need
something where I can send the variable parameters when I need it without
stopping the current running ffmpeg command.

On Fri 27 Mar, 2020, 2:11 PM Paul B Mahol, <[hidden email]> wrote:

> On 3/27/20, foxtail mega <[hidden email]> wrote:
> > can someone please help regarding this issue ?
> >
> > -re -i video.mp4 -i image.png -filter_complex "[0:v][1:v]
> > overlay=25:25:enable='between(t,0,4)'" -pixel_format yuv420p -tune
> > zerolatency -c:a copy -c:v libx264 -crf 27 -preset veryfast -f mpegts
> > udp://localhost:5454
> >
> >
> > here i am using overlay as 25:25, but i wish to change that at
> > runtime, and i know i can't use variable for this, so how do i change
> > this overlay parameters at runtime ?
>
> Using expressions, everything is clearly explained in available
> documentation.
>
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Paul B Mahol
On 3/27/20, foxtail mega <[hidden email]> wrote:
> Actually I meant when ffmpeg is running, I want to send parameters to that
> running ffmpeg instance and that should change the filter_complex overlay
> parameters in the next frame of processing.
>
> Using expression is like hard coding parameters into ffmpeg command. I need
> something where I can send the variable parameters when I need it without
> stopping the current running ffmpeg command.

Please stop top posting.

There is sendcmd filter for this, but I think overlay filter does not
support commands,
but that could be easily fixed.

>
> On Fri 27 Mar, 2020, 2:11 PM Paul B Mahol, <[hidden email]> wrote:
>
>> On 3/27/20, foxtail mega <[hidden email]> wrote:
>> > can someone please help regarding this issue ?
>> >
>> > -re -i video.mp4 -i image.png -filter_complex "[0:v][1:v]
>> > overlay=25:25:enable='between(t,0,4)'" -pixel_format yuv420p -tune
>> > zerolatency -c:a copy -c:v libx264 -crf 27 -preset veryfast -f mpegts
>> > udp://localhost:5454
>> >
>> >
>> > here i am using overlay as 25:25, but i wish to change that at
>> > runtime, and i know i can't use variable for this, so how do i change
>> > this overlay parameters at runtime ?
>>
>> Using expressions, everything is clearly explained in available
>> documentation.
>>
>> > _______________________________________________
>> > ffmpeg-user mailing list
>> > [hidden email]
>> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> >
>> > To unsubscribe, visit link above, or email
>> > [hidden email] with subject "unsubscribe".
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Gyan Doshi-2


On 27-03-2020 02:40 pm, Paul B Mahol wrote:

> On 3/27/20, foxtail mega <[hidden email]> wrote:
>> Actually I meant when ffmpeg is running, I want to send parameters to that
>> running ffmpeg instance and that should change the filter_complex overlay
>> parameters in the next frame of processing.
>>
>> Using expression is like hard coding parameters into ffmpeg command. I need
>> something where I can send the variable parameters when I need it without
>> stopping the current running ffmpeg command.
> Please stop top posting.
>
> There is sendcmd filter for this, but I think overlay filter does not
> support commands,
> but that could be easily fixed.

overlay already supports commands.

Gyan
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Michael Koch
In reply to this post by Paul B Mahol
Am 27.03.2020 um 10:10 schrieb Paul B Mahol:

> On 3/27/20, foxtail mega <[hidden email]> wrote:
>> Actually I meant when ffmpeg is running, I want to send parameters to that
>> running ffmpeg instance and that should change the filter_complex overlay
>> parameters in the next frame of processing.
>>
>> Using expression is like hard coding parameters into ffmpeg command. I need
>> something where I can send the variable parameters when I need it without
>> stopping the current running ffmpeg command.
> Please stop top posting.
>
> There is sendcmd filter for this, but I think overlay filter does not
> support commands,
> but that could be easily fixed.

The overlay filter does already support commands. There is an example in
chapter 2.61 of my book:
http://www.astro-electronic.de/FFmpeg_Book.pdf

But I think the question was if the parameters can be changed in
real-time while ffmpeg is running. I don't know if this is possible.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Paul B Mahol
On 3/27/20, Michael Koch <[hidden email]> wrote:

> Am 27.03.2020 um 10:10 schrieb Paul B Mahol:
>> On 3/27/20, foxtail mega <[hidden email]> wrote:
>>> Actually I meant when ffmpeg is running, I want to send parameters to
>>> that
>>> running ffmpeg instance and that should change the filter_complex overlay
>>> parameters in the next frame of processing.
>>>
>>> Using expression is like hard coding parameters into ffmpeg command. I
>>> need
>>> something where I can send the variable parameters when I need it without
>>> stopping the current running ffmpeg command.
>> Please stop top posting.
>>
>> There is sendcmd filter for this, but I think overlay filter does not
>> support commands,
>> but that could be easily fixed.
>
> The overlay filter does already support commands. There is an example in
> chapter 2.61 of my book:
> http://www.astro-electronic.de/FFmpeg_Book.pdf
>
> But I think the question was if the parameters can be changed in
> real-time while ffmpeg is running. I don't know if this is possible.
>

Look at realtime filter.

> Michael
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Michael Koch
Am 27.03.2020 um 10:29 schrieb Paul B Mahol:

> On 3/27/20, Michael Koch <[hidden email]> wrote:
>> Am 27.03.2020 um 10:10 schrieb Paul B Mahol:
>>> On 3/27/20, foxtail mega <[hidden email]> wrote:
>>>> Actually I meant when ffmpeg is running, I want to send parameters to
>>>> that
>>>> running ffmpeg instance and that should change the filter_complex overlay
>>>> parameters in the next frame of processing.
>>>>
>>>> Using expression is like hard coding parameters into ffmpeg command. I
>>>> need
>>>> something where I can send the variable parameters when I need it without
>>>> stopping the current running ffmpeg command.
>>> Please stop top posting.
>>>
>>> There is sendcmd filter for this, but I think overlay filter does not
>>> support commands,
>>> but that could be easily fixed.
>> The overlay filter does already support commands. There is an example in
>> chapter 2.61 of my book:
>> http://www.astro-electronic.de/FFmpeg_Book.pdf
>>
>> But I think the question was if the parameters can be changed in
>> real-time while ffmpeg is running. I don't know if this is possible.
>>
> Look at realtime filter.

That's not what the OP wanted. He wrote:

"Actually I meant when ffmpeg is running, I want to send parameters to that
running ffmpeg instance and that should change the filter_complex overlay
parameters in the next frame of processing.

Using expression is like hard coding parameters into ffmpeg command. I need
something where I can send the variable parameters when I need it without
stopping the current running ffmpeg command."

Michael


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Paul B Mahol
On 3/27/20, Michael Koch <[hidden email]> wrote:

> Am 27.03.2020 um 10:29 schrieb Paul B Mahol:
>> On 3/27/20, Michael Koch <[hidden email]> wrote:
>>> Am 27.03.2020 um 10:10 schrieb Paul B Mahol:
>>>> On 3/27/20, foxtail mega <[hidden email]> wrote:
>>>>> Actually I meant when ffmpeg is running, I want to send parameters to
>>>>> that
>>>>> running ffmpeg instance and that should change the filter_complex
>>>>> overlay
>>>>> parameters in the next frame of processing.
>>>>>
>>>>> Using expression is like hard coding parameters into ffmpeg command. I
>>>>> need
>>>>> something where I can send the variable parameters when I need it
>>>>> without
>>>>> stopping the current running ffmpeg command.
>>>> Please stop top posting.
>>>>
>>>> There is sendcmd filter for this, but I think overlay filter does not
>>>> support commands,
>>>> but that could be easily fixed.
>>> The overlay filter does already support commands. There is an example in
>>> chapter 2.61 of my book:
>>> http://www.astro-electronic.de/FFmpeg_Book.pdf
>>>
>>> But I think the question was if the parameters can be changed in
>>> real-time while ffmpeg is running. I don't know if this is possible.
>>>
>> Look at realtime filter.
>
> That's not what the OP wanted. He wrote:
>
> "Actually I meant when ffmpeg is running, I want to send parameters to that
> running ffmpeg instance and that should change the filter_complex overlay
> parameters in the next frame of processing.
>
> Using expression is like hard coding parameters into ffmpeg command. I need
> something where I can send the variable parameters when I need it without
> stopping the current running ffmpeg command."

Exactly and realtime filter allows exactly that in combination with
filters that send commands, there are at least 2 such filters for
video.

>
> Michael
>
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Michael Koch
Am 27.03.2020 um 10:40 schrieb Paul B Mahol:

> On 3/27/20, Michael Koch <[hidden email]> wrote:
>> Am 27.03.2020 um 10:29 schrieb Paul B Mahol:
>>> On 3/27/20, Michael Koch <[hidden email]> wrote:
>>>> Am 27.03.2020 um 10:10 schrieb Paul B Mahol:
>>>>> On 3/27/20, foxtail mega <[hidden email]> wrote:
>>>>>> Actually I meant when ffmpeg is running, I want to send parameters to
>>>>>> that
>>>>>> running ffmpeg instance and that should change the filter_complex
>>>>>> overlay
>>>>>> parameters in the next frame of processing.
>>>>>>
>>>>>> Using expression is like hard coding parameters into ffmpeg command. I
>>>>>> need
>>>>>> something where I can send the variable parameters when I need it
>>>>>> without
>>>>>> stopping the current running ffmpeg command.
>>>>> Please stop top posting.
>>>>>
>>>>> There is sendcmd filter for this, but I think overlay filter does not
>>>>> support commands,
>>>>> but that could be easily fixed.
>>>> The overlay filter does already support commands. There is an example in
>>>> chapter 2.61 of my book:
>>>> http://www.astro-electronic.de/FFmpeg_Book.pdf
>>>>
>>>> But I think the question was if the parameters can be changed in
>>>> real-time while ffmpeg is running. I don't know if this is possible.
>>>>
>>> Look at realtime filter.
>> That's not what the OP wanted. He wrote:
>>
>> "Actually I meant when ffmpeg is running, I want to send parameters to that
>> running ffmpeg instance and that should change the filter_complex overlay
>> parameters in the next frame of processing.
>>
>> Using expression is like hard coding parameters into ffmpeg command. I need
>> something where I can send the variable parameters when I need it without
>> stopping the current running ffmpeg command."
> Exactly and realtime filter allows exactly that in combination with
> filters that send commands, there are at least 2 such filters for
> video.

To the OP: Please clarify where the information (x,y for overlay filter)
comes from.
If I understood the question right, the coordinates are unknown when
FFmpeg is started and come from somewhere else while FFmpeg is running.
He needs a filter that receives commands from outside of FFmpeg.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

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.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Michael Koch
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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

foxtail mega
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, <[hidden email]>
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
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

penguin flying
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 <[hidden email]> 于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, <[hidden email]>
> 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
> > [hidden email]
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

Gyan Doshi-2
In reply to this post by foxtail mega


On 27-03-2020 03:37 pm, foxtail mega wrote:

> 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.

realtime filter is irrelevant here since you're using -re.  sendcmd
parses its argument once at init, so can't be used to add or change
arguments.

What you can do is send directives to ffmpeg via stdin. One of the
directives is 'c' to send commands to filters which support commands.
While running ffmpeg, press ? to see list and syntax of available
directives.

Gyan
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

foxtail mega
Yes I need to try that interactive mode by pressing '?' At runtime and let
me see if it changes filter parameters or not.

On Fri 27 Mar, 2020, 6:31 PM Gyan Doshi, <[hidden email]> wrote:

>
>
> On 27-03-2020 03:37 pm, foxtail mega wrote:
> > 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.
>
> realtime filter is irrelevant here since you're using -re.  sendcmd
> parses its argument once at init, so can't be used to add or change
> arguments.
>
> What you can do is send directives to ffmpeg via stdin. One of the
> directives is 'c' to send commands to filters which support commands.
> While running ffmpeg, press ? to see list and syntax of available
> directives.
>
> Gyan
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change overlay parameter at runtime

kumowoon1025
In reply to this post by Gyan Doshi-2
Morning,

> realtime filter is irrelevant here since you're using -re.  sendcmd parses its argument once at init, so can't be used to add or change arguments.


But wouldn’t it make a difference if zmq was being used to send commands? Or do you mean because it's reading at realtime? I think you could set up a filterchain that reads input at realtime but outputs (and encode/render/write) frames with polynomial PTS.

What I’ve always wanted to add to the examples section is a sort of libavfilter/libavformat REPL using zmq, with the filtergraph dot graph visualized in the terminal, and maybe some real time monitoring capability, though that might need to automatically render fractionally (which I’m lost on) in some situations, viz fps drops on sending command.

Not that I have any of the hard part of this done yet, but recently I noticed rabbitmq support in the configure script, in addition to zmq. I’ve never heard of rabbitmq, can someone comment on the differences between them? Is it more popular? It’d be hard to be easier or lighter than 0mq but if anyone is familiar with it I’d be much obliged.


Regards,
Ted Park

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".