(ffprobePath, p)
| 14 | } |
| 15 | |
| 16 | export async function readDuration(ffprobePath, p) { |
| 17 | const { stdout } = await execa(ffprobePath, ['-v', 'error', '-show_entries', 'format=duration', '-of', 'default=noprint_wrappers=1:nokey=1', p]); |
| 18 | const parsed = parseFloat(stdout); |
| 19 | assert(!Number.isNaN(parsed)); |
| 20 | return parsed; |
| 21 | } |
| 22 | |
| 23 | export async function readFileStreams(ffprobePath, p) { |
| 24 | const { stdout } = await execa(ffprobePath, [ |
no outgoing calls
no test coverage detected