(ffmpegEncodersStdout: string)
| 32 | const GPU_PROBE_KILL_GRACE_MS = 1000; |
| 33 | |
| 34 | export function getCompiledGpuEncoders(ffmpegEncodersStdout: string): ConcreteGpuEncoder[] { |
| 35 | return GPU_ENCODER_CANDIDATES.filter((encoder) => |
| 36 | ffmpegEncodersStdout.includes(H264_ENCODER_BY_GPU[encoder]), |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | export async function selectUsableGpuEncoder( |
| 41 | candidates: readonly ConcreteGpuEncoder[], |
no outgoing calls
no test coverage detected