stdin
Writer
const input_file = `./sample_recording.wav`;const ffmpeg_bin = `/usr/bin/ffmpeg`;const output_file = './sample_output.ogg';const input_data = await Deno.open(input_file, { read: true });const command = new Deno.Command(ffmpeg_bin, { args: [ '-i', '-', output_file, ], stdin: 'piped', stdout: 'piped',});const child_process = await command.spawn();const stdin = await child_process.stdin.getWriter();for await (const chunk of input_data.readable) { stdin.write(chunk);}stdin.releaseLock();await child_process.stdin.close();