Re: [FFmpeg-devel] [RFC] ffmpeg: default to single thread when hwaccel is active

2021-09-30 Thread Andreas Rheinhardt
Timo Rothenpieler: > On 30.09.2021 02:02, Andreas Rheinhardt wrote: >> Timo Rothenpieler: >>> On 29.09.2021 19:31, Dennis Mungai wrote: On Wed, 29 Sept 2021 at 20:22, Timo Rothenpieler wrote: > On 29.09.2021 19:17, Dennis Mungai wrote: >> A potential downside to this wo

Re: [FFmpeg-devel] [RFC] ffmpeg: default to single thread when hwaccel is active

2021-09-30 Thread Timo Rothenpieler
On 30.09.2021 02:02, Andreas Rheinhardt wrote: Timo Rothenpieler: On 29.09.2021 19:31, Dennis Mungai wrote: On Wed, 29 Sept 2021 at 20:22, Timo Rothenpieler wrote: On 29.09.2021 19:17, Dennis Mungai wrote: A potential downside to this would be on QSV's side, which needs at least 2  threads

Re: [FFmpeg-devel] [RFC] ffmpeg: default to single thread when hwaccel is active

2021-09-29 Thread Andreas Rheinhardt
Timo Rothenpieler: > On 29.09.2021 19:31, Dennis Mungai wrote: >> On Wed, 29 Sept 2021 at 20:22, Timo Rothenpieler >> wrote: >> >>> On 29.09.2021 19:17, Dennis Mungai wrote: A potential downside to this would be on QSV's side, which needs at least 2  threads to prevent dead-locking,

Re: [FFmpeg-devel] [RFC] ffmpeg: default to single thread when hwaccel is active

2021-09-29 Thread Dennis Mungai
On Wed, 29 Sept 2021 at 20:37, Timo Rothenpieler wrote: > On 29.09.2021 19:31, Dennis Mungai wrote: > > On Wed, 29 Sept 2021 at 20:22, Timo Rothenpieler > > wrote: > > > >> On 29.09.2021 19:17, Dennis Mungai wrote: > >>> A potential downside to this would be on QSV's side, which needs at > least

Re: [FFmpeg-devel] [RFC] ffmpeg: default to single thread when hwaccel is active

2021-09-29 Thread Timo Rothenpieler
On 29.09.2021 19:31, Dennis Mungai wrote: On Wed, 29 Sept 2021 at 20:22, Timo Rothenpieler wrote: On 29.09.2021 19:17, Dennis Mungai wrote: A potential downside to this would be on QSV's side, which needs at least 2 threads to prevent dead-locking, see https://github.com/Intel-Media-SDK/Me

Re: [FFmpeg-devel] [RFC] ffmpeg: default to single thread when hwaccel is active

2021-09-29 Thread Dennis Mungai
On Wed, 29 Sept 2021 at 20:22, Timo Rothenpieler wrote: > On 29.09.2021 19:17, Dennis Mungai wrote: > > A potential downside to this would be on QSV's side, which needs at least > > 2 threads to prevent dead-locking, see > > > https://github.com/Intel-Media-SDK/MediaSDK/blob/master/_studio/mfx_l

Re: [FFmpeg-devel] [RFC] ffmpeg: default to single thread when hwaccel is active

2021-09-29 Thread Timo Rothenpieler
On 29.09.2021 19:17, Dennis Mungai wrote: A potential downside to this would be on QSV's side, which needs at least 2 threads to prevent dead-locking, see https://github.com/Intel-Media-SDK/MediaSDK/blob/master/_studio/mfx_lib/scheduler/linux/src/mfx_scheduler_core_ischeduler.cpp#L90-L93 Is th

Re: [FFmpeg-devel] [RFC] ffmpeg: default to single thread when hwaccel is active

2021-09-29 Thread Dennis Mungai
On Wed, 29 Sept 2021 at 20:02, Timo Rothenpieler wrote: > --- > fftools/ffmpeg.c | 16 ++-- > 1 file changed, 10 insertions(+), 6 deletions(-) > > Not sure if there is any downside to this. > Threading for hwaccel does not make a whole lot of sense, and at least > in case of nvdec wa