[FFmpeg-devel] [PATCH 4/5] lavfi/graphparser: reimplement avfilter_graph_parse* using new API

Marton Balint cus at passwd.hu
Wed May 31 00:09:50 EEST 2023



On Fri, 20 Jan 2023, Anton Khirnov wrote:

> ---
> libavfilter/graphparser.c | 537 +++++++++-----------------------------
> 1 file changed, 126 insertions(+), 411 deletions(-)

This change makes error messages for parse failures less useful or 
completely missing. E.g.:

ffmpeg -f lavfi -i testsrc -vf yadif,scale=dummy=boo -f null none

Before:

[Parsed_scale_0 @ 0x555c19335b00] Option 'dummy' not found
[AVFilterGraph @ 0x555c19333e00] Error initializing filter 'scale' with args 'dummy=boo:flags=bicubic'
Error reinitializing filters!

After:

[AVFilterGraph @ 0x3c5a100] Error applying filter options
Error reinitializing filters!


ffplay -f lavfi -i testsrc -vf yadif,scale=dummy=boo

Before:

[Parsed_scale_1 @ 0x55fa2b935080] Option 'dummy' not found
Error initializing filter 'scale' with args 'dummy=boo:flags=bicubic'

After:

(no error message)

Regards,
Marton


More information about the ffmpeg-devel mailing list