Opened 5 years ago

Closed 8 months ago

#12778 closed Bug Report - General (Unverified)

h264 Cap at ~2 threads for encoding?

Reported by: Mitch Capper <mitch.capper@…> Owned by: JYA
Priority: minor Milestone: unknown
Component: MythTV - Mythtranscode Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no


After setting HTTPLiveStreamThreads to 16 and seeing mythtranscode say its encoding with 16 threads (rather than the default 2) the CPU usage only went from 170%->220% (despite plenty of additional free cpus). I do see a hardcoded c->slices = 8; in avformatwriter.cpp for h264, which sets the picture subdivisions im not sure if that is too low for more threads or its something else.

If anyone has any initial thoughts or suggestions I am open to it, otherwise I will start tweaking settings to see if we can allow for more threads.

There is such reference to a cap from about 4 years ago:

Change History (1)

comment:1 Changed 8 months ago by Stuart Auchterlonie

Resolution: Unverified
Status: newclosed

Closing all old tickets in trac.

If your issue still persists, please open an issue in Github

and reference the existing trac ticket.

Note: See TracTickets for help on using tickets.