[Libav-user] How to optimize v360 filter config_output

Paul B Mahol onemda at gmail.com
Thu Jan 28 13:24:52 EET 2021


On Thu, Jan 28, 2021 at 12:16 PM thông trần minh <minhthong494 at gmail.com>
wrote:

> Hi everyone,
>
> I'm trying to change v360 filter params such as roll, pitch at
> real-time speed. I'm using avfilter_graph_send_command() to make thing
> happen. The problem came when the image became larger (4096 × 2160 or
> larger), it took more time to init a new filter graph. I found that most
> of the time it spent on running this callback v360_slice() . Firstly, I
> thought I could vectorize two for loops inside v360_slice() but I was
> unable to understand the algorithm in it. I tried to increase the number of
> threads processing the slices but it did not work.
>  I'm appreciated any advice to help me deal with it.
>
>
> https://github.com/FFmpeg/FFmpeg/search?q=static+av_always_inline+int+v360_slice
> \
>

You are CPU limited. Changing parameters will need to recalculate bunch of
stuff and on CPU this is pretty slow.


>
> Regards,
>
> thongtm2
>
> Vào Th 5, 28 thg 1, 2021 vào lúc 17:59 thông trần minh <
> minhthong494 at gmail.com> đã viết:
>
>> Hi everyone,
>>
>> I'm trying to change v360 filter params such as roll, pitch at
>> real-time speed. I'm using avfilter_graph_send_command() to make thing
>> happen. The problem came when the image became larger, it took more time to
>> init a new filter graph. I found that most of the time it spent on running
>> this callback v360_slice()
>>
>> ---------------------------------------
>> *Full Name*: Trần Minh Thông
>> *Phone*: (+84) 38 731 0304
>> --------------------------------------
>>
>> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20210128/94fba0e9/attachment.html>


More information about the Libav-user mailing list