1

What is the proper way of aborting the upload stream?

Current code (just an excerpt):

ffmpeg()
    .input(sourceFile.createReadStream())
    .output(destinationFile.createWriteStream())
    .run();

Files are instances of https://cloud.google.com/nodejs/docs/reference/storage/latest/storage/file.

AKd
  • 501
  • 4
  • 17
  • Not sure about aborting the stream, but you can check the non-zero return code of FFmpeg process for a failed FFmpeg run to trigger deleting the 0-byte file. – kesh Mar 15 '22 at 16:52
  • Thanks, as a workaround might be suitable. Yet still I hope there is a way of aborting the upload operation. – AKd Mar 15 '22 at 18:00

0 Answers0