(ffprobePath, p)
| 21 | } |
| 22 | |
| 23 | export async function readFileStreams(ffprobePath, p) { |
| 24 | const { stdout } = await execa(ffprobePath, [ |
| 25 | '-show_entries', 'stream', '-of', 'json', p, |
| 26 | ]); |
| 27 | const json = JSON.parse(stdout); |
| 28 | return json.streams; |
| 29 | } |
| 30 | |
| 31 | export async function readVideoFileInfo(ffprobePath, p) { |
| 32 | const streams = await readFileStreams(ffprobePath, p); |
no outgoing calls
no test coverage detected