prism-media icon indicating copy to clipboard operation
prism-media copied to clipboard

properly destroying ffmpeg

Open Roki100 opened this issue 5 years ago • 0 comments

Issue:

im getting Cannot call write after a stream was destroyed in discord.js after doing <prism ffmpeg>.destroy() on dispatcher finish event

Steps to reproduce:

use prism ffmpeg and pass it into dispatcher, then destroy this ffmpeg on disaptcher finish (without it, ffmpegs does not despawn)

Further details:

  • Operating System: windows 10 home
  • Node.js version: 12.4.1
  • Commit I'm using: prism 1.2.0 (that one that comes with discord.js master)

My reason of creating this issue

i cant seem to destroy ffmpeg without errors so my question is how can i destroy it properly // it happens only while piping ytdl to transcoder, using -i url in ffmpeg doesnt throw that

Roki100 avatar Feb 23 '20 21:02 Roki100