* [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands
@ 2022-03-25 11:19 Paul B Mahol
2022-03-29 8:15 ` Paul B Mahol
2022-03-29 20:39 ` Soft Works
0 siblings, 2 replies; 4+ messages in thread
From: Paul B Mahol @ 2022-03-25 11:19 UTC (permalink / raw)
To: ffmpeg-devel
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
doc/filters.texi | 4 ++++
libavfilter/f_realtime.c | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index d70ac3e237..1d56d24819 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -26757,6 +26757,10 @@ A processing speed faster than what is possible without these filters cannot
be achieved.
@end table
+@subsection Commands
+
+Both filters supports the all above options as @ref{commands}.
+
@section segment, asegment
Split single input stream into multiple streams.
diff --git a/libavfilter/f_realtime.c b/libavfilter/f_realtime.c
index 78da5dc3a7..ef713474ea 100644
--- a/libavfilter/f_realtime.c
+++ b/libavfilter/f_realtime.c
@@ -66,7 +66,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
}
#define OFFSET(x) offsetof(RealtimeContext, x)
-#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
+#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM
static const AVOption options[] = {
{ "limit", "sleep time limit", OFFSET(limit), AV_OPT_TYPE_DURATION, { .i64 = 2000000 }, 0, INT64_MAX, FLAGS },
{ "speed", "speed factor", OFFSET(speed), AV_OPT_TYPE_DOUBLE, { .dbl = 1.0 }, DBL_MIN, DBL_MAX, FLAGS },
@@ -100,6 +100,7 @@ const AVFilter ff_vf_realtime = {
.flags = AVFILTER_FLAG_METADATA_ONLY,
FILTER_INPUTS(avfilter_vf_realtime_inputs),
FILTER_OUTPUTS(avfilter_vf_realtime_outputs),
+ .process_command = ff_filter_process_command,
};
#endif /* CONFIG_REALTIME_FILTER */
@@ -128,5 +129,6 @@ const AVFilter ff_af_arealtime = {
.flags = AVFILTER_FLAG_METADATA_ONLY,
FILTER_INPUTS(arealtime_inputs),
FILTER_OUTPUTS(arealtime_outputs),
+ .process_command = ff_filter_process_command,
};
#endif /* CONFIG_AREALTIME_FILTER */
--
2.35.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands
2022-03-25 11:19 [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands Paul B Mahol
@ 2022-03-29 8:15 ` Paul B Mahol
2022-03-29 11:30 ` Nicolas George
2022-03-29 20:39 ` Soft Works
1 sibling, 1 reply; 4+ messages in thread
From: Paul B Mahol @ 2022-03-29 8:15 UTC (permalink / raw)
To: FFmpeg development discussions and patches
will apply
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands
2022-03-29 8:15 ` Paul B Mahol
@ 2022-03-29 11:30 ` Nicolas George
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas George @ 2022-03-29 11:30 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1.1: Type: text/plain, Size: 97 bytes --]
Paul B Mahol (12022-03-29):
> will apply
No objection.
Regards,
--
Nicolas George
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands
2022-03-25 11:19 [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands Paul B Mahol
2022-03-29 8:15 ` Paul B Mahol
@ 2022-03-29 20:39 ` Soft Works
1 sibling, 0 replies; 4+ messages in thread
From: Soft Works @ 2022-03-29 20:39 UTC (permalink / raw)
To: FFmpeg development discussions and patches
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Paul
> B Mahol
> Sent: Friday, March 25, 2022 12:19 PM
> To: ffmpeg-devel@ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for
> commands
>
> Signed-off-by: Paul B Mahol <onemda@gmail.com>
> ---
> doc/filters.texi | 4 ++++
> libavfilter/f_realtime.c | 4 +++-
> 2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/doc/filters.texi b/doc/filters.texi
> index d70ac3e237..1d56d24819 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -26757,6 +26757,10 @@ A processing speed faster than what is
> possible without these filters cannot
> be achieved.
Didn't you rather mean to say:
A processing speed faster than what is possible with these filters cannot..
^^^^
Best wishes,
softworkz
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-29 20:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 11:19 [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands Paul B Mahol
2022-03-29 8:15 ` Paul B Mahol
2022-03-29 11:30 ` Nicolas George
2022-03-29 20:39 ` Soft Works
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git