-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
write EPIPE error for certain arguments #67
Comments
Hi James! I took a look at your code snippet and I managed to reproduce the A quick fix for me was adding the following directly after the declaration of output.on('error', e => outputStream.emit('error', e)); I'd recommend that the author of that package makes sure that they propagate all of these errors, or consider using stream.pipeline to really reduce on some of the boilerplate there. Note that this won't remove the EPIPE error entirely (it will still be thrown, but with this fix it won't crash the process), so you'll have to make sure to ignore errors once you've stopped playing that stream. Let me know if this works for you! |
Hey Amish! Thanks so much for that - makes a lot of sense. Running that fix locally it does catch the error, and I can run with that for now. Have made a quick PR for that with discord-ytdl-core 👍 Was still curious about the error itself:
It does seem to trim the clip at the right start / end point, but error on Any thoughts on if that's just down to the usage of As mentioned previous, I'm supplying |
Issue:
Hey Amish - appreciate all the work on this!
I'm using discord-ytdl-core to effectively trim a youtube clip with a start & end time (
-ss
/-to
flags in FFmpeg).Some flags work okay, but those two together consistently throws a
write EPIPE
error, which I can't handle gracefully. Seems like an error with the readable stream upon after the ffmpeg process.Wondering if you know what this might be?
Steps to reproduce:
Originally opened an issue in the above mentioned repo but apparently is happening directly with
prism-media
.Code snippet inside this issue:
twlite/discord-ytdl-core#20
Further details:
The text was updated successfully, but these errors were encountered: