[FFmpeg-devel] implement process_command for vf_scale and vf_crop

Bernd Blessmann bb at it-entwicklung.de
Mon Jul 6 15:16:59 CEST 2015

Am 06.07.2015 um 11:17 schrieb Paul B Mahol:
> On 6/25/15, Bernd Blessmann <bb at it-entwicklung.de> wrote:
>> Hi all,
>> I want to implement process_command for vf_scale.c and vf_crop.c in order to
>> use zmq to change
>> scaling and cropping dynamically.
>> I have implemented it using av_opt_set() and calling config_props() for
>> scale and config_input() and
>> config_output() for crop. I am using the config_-functions because they
>> handle variable parsing and
>> checking of the values. But I do not know if this is the right way to do it
>> and if it is safe to
>> call these functions from process_command.
>> Maybe someone can comment on these implementation or outline a way to
>> implement process_command for
>> these filters.
>> I attach patches including my implementation so far.
>> Thank you very much in advance
>>     Bernd
> If it works I guess it should be ok. But newly added stuff should be
> somewhere documented...

Yes. Thank you. I will have a look a the developer documentation again and add a commands entry to 
the filter documentation.


More information about the ffmpeg-devel mailing list