mirror of
https://git.stupid.fish/teidesu/scripts.git
synced 2025-11-27 16:31:25 +11:00
chore: update public repo
This commit is contained in:
parent
171ba5de7a
commit
da3ca48244
2 changed files with 156 additions and 64 deletions
|
|
@ -100,8 +100,10 @@ export function generateFfmpegMetadataFlags(metadata: Partial<Record<string, str
|
|||
}
|
||||
|
||||
export async function pipeIntoProc(proc: ProcessPromise, stream: ReadableStream) {
|
||||
const pipe = Readable.fromWeb(stream as any).pipe(proc.stdin)
|
||||
const nodeStream = Readable.fromWeb(stream as any)
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
nodeStream.on('error', reject)
|
||||
const pipe = nodeStream.pipe(proc.stdin)
|
||||
pipe.on('error', reject)
|
||||
pipe.on('finish', resolve)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue