Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#7960 closed enhancement (fixed)

Trying to encode to AV1 results in "g_threads out of range [..64]" error

Reported by: cyrozap Owned by:
Priority: wish Component: avcodec
Version: 4.1 Keywords: av1
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

On FFmpeg version 4.1.3 (as distributed by Debian), on a system with 144 CPU threads, trying to encode any media as AV1 fails with the message "[libaom-av1 @ 0x137013140] Additional information: g_threads out of range [..64]". I've attached the verbose log if you'd like to see it.

It seems this has already been fixed in this commit, but that patch is only in git master, so the issue still exists in the stable version.

Would it be possible for this patch to be applied to the 4.1 branch?

Also, other than building FFmpeg myself, is there any way I can work around this issue? e.g., is there a "limit max CPUs" option I can set somewhere?

Attachments (1)

ffmpeg-20190617-154901.log (17.4 KB ) - added by cyrozap 2 years ago.

Download all attachments as: .zip

Change History (4)

by cyrozap, 2 years ago

Attachment: ffmpeg-20190617-154901.log added

comment:1 by Carl Eugen Hoyos, 2 years ago

Component: undeterminedavcodec
Keywords: av1 added
Priority: normalwish
Resolution: wontfix
Status: newclosed
Type: defectenhancement

You should ask the Debian maintainers.
Does -threads not work?

comment:2 by James, 2 years ago

Resolution: wontfixfixed

Backported as 72f03b2af489af4c6d2efc6006629d1f2dabdead. Will be included in 4.1.4

And as cehoyos said, the -threads output parameter should work around this in the meantime.

comment:3 by cyrozap, 2 years ago

Thank you, -threads with any number <= 64 seems to work.

Note: See TracTickets for help on using tickets.