Probe
Source:
src/AWS/MediaConvert/Probe.ts
Runtime binding for mediaconvert:Probe — analyze an input media file in
S3 (or over HTTPS) and get back its container, codecs, frame rate,
resolution, track layout, and captions, to drive transcoding decisions at
runtime.
The binding takes no arguments and grants mediaconvert:Probe on *.
Note the probing itself reads the file with the caller’s credentials —
the Function also needs S3 read access to the probed object (bind an
AWS.S3.GetObject capability on the bucket).
Provide the implementation with Effect.provide(AWS.MediaConvert.ProbeHttp).
Inspecting Inputs
Section titled “Inspecting Inputs”// initconst probe = yield* AWS.MediaConvert.Probe();
// runtimeconst { ProbeResults } = yield* probe({ InputFiles: [{ FileUrl: `s3://${bucket}/${key}` }],});const video = ProbeResults?.[0]?.TrackMappings;