Change filters in runtime

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

Change filters in runtime

Music Br
I need to change an overlay image on the video and resize the video while
running ffmpeg. It is possible? If so, how to proceed?
_______________________________________________
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: Change filters in runtime

Rik Roukens-2
Hi Music Br,

What have you tried so far? when you say while running ffmpeg, do you want
to change the image overlay somewhere in the middle? or just in general?

Cheers,

Rik

On Wed, Aug 7, 2019 at 8:13 PM Music Br <[hidden email]> wrote:

> I need to change an overlay image on the video and resize the video while
> running ffmpeg. It is possible? If so, how to proceed?
> _______________________________________________
> 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: Change filters in runtime

Alexander Strasser
In reply to this post by Music Br
Hi,

On 2019-08-07 15:07 -0300, Music Br wrote:
> I need to change an overlay image on the video and resize the video while
> running ffmpeg. It is possible? If so, how to proceed?

while ffmpeg doesn't support changing the filter graph, the
behaviour of some filters can be changed at runtime. If you
look at the documentation of the filters some have a section
named commands.

There are basically 3 ways to send commands when running ffmpeg:

1. interactively (press ? while ffmpeg is running, you should
   spot the two entries related to sending commands to filters)
2. sendcmd filter
3. zeromq (see documentation of the zmq filter)

Number 3 would the best fit for your use case I guess.

To be honest I think not enough filters support commands sufficiently
to make most use cases possible. From a quick glance the use case you
described seems not possible with current ffmpeg.

If you can't contribute to ffmpeg development, I fear that filter
commands won't work out for you.

So looking for another software that supports your use case out
of the box (possibly letting you use FFmpeg for the encoding)
might be more promising for quick success.

No idea in particular though, I don't have such a use case myself
and can't recommend any software. Also your description was a bit
terse and therefore some of my assumptions may be plain wrong. I'm
mostly only answering because I think the feature of sending commands
down the filter graph isn't widely known.


  Alexander
_______________________________________________
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: Change filters in runtime

Anatoly
In reply to this post by Music Br
On Wed, 7 Aug 2019 15:07:48 -0300
Music Br <[hidden email]> wrote:

> I need to change an overlay image on the video and resize the video
> while running ffmpeg. It is possible? If so, how to proceed?
> _______________________________________________
> 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".
>

I think you should take a look at zeromq. Can't point you where zmq is
documented in ffmpeg docs, but quick internet search bring me this:
https://superuser.com/questions/1133641/ffmpeg-change-filter-options-after-running-ffmpeg
_______________________________________________
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: Change filters in runtime

Carl Eugen Hoyos-2
Am Mo., 12. Aug. 2019 um 15:31 Uhr schrieb Anatoly
<[hidden email]>:
> Can't point you where zmq is documented in ffmpeg docs

https://ffmpeg.org/ffmpeg-filters.html#zmq_002c-azmq

(Not saying this is better or worse than other docs)

Carl Eugen
_______________________________________________
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".