[FFmpeg-devel] RV: [PATCH] addroi filter: Now it can be dynamically moved with zmq command

Miguel Ángel Torres Font migueltorresfont at hotmail.com
Sat Jul 17 15:48:05 EEST 2021


Hi all, I am updating this patch for the addroi filter to now include the ability to dynamically move the region of interest via message passing.

Through the ZeroMQ library or similar, new regions of interest in a video that is in the process of being encoded can now be sent through the command line. This works very well for live streams using FFmpeg.

An example of use will be as follows:

./ffmpeg -i <input_video> -c:v libx264 -crf <NUM_VALUE> -vf "addroi=iw-200:ih-200:iw/2:ih/2:-1,zmq" -f dash /var/www/html/dash/file.mpd

In case you need to change it, just execute this command changing the attributes you want to set:

echo Parsed_addroi_0 reinit x=200:y=200:w=100:h=100 | ./zmqsend
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-addroi-filter-Now-it-can-be-dynamically-moved-with-z.patch
Type: application/octet-stream
Size: 19388 bytes
Desc: 0001-addroi-filter-Now-it-can-be-dynamically-moved-with-z.patch
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210717/423902c5/attachment.obj>


More information about the ffmpeg-devel mailing list