MCPcopy
hub / github.com/mifi/editly / readFileStreams

Function readFileStreams

util.js:23–29  ·  view source on GitHub ↗
(ffprobePath, p)

Source from the content-addressed store, hash-verified

21}
22
23export 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
31export async function readVideoFileInfo(ffprobePath, p) {
32 const streams = await readFileStreams(ffprobePath, p);

Callers 3

runInnerFunction · 0.90
readVideoFileInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected