node-ytdl-core icon indicating copy to clipboard operation
node-ytdl-core copied to clipboard

Is there an easy way to create 2 different file from the same stream?

Open romain130492 opened this issue 2 years ago • 0 comments

Description

Just wondering if we can currently create 2 types of files from a same pipe? For example :

  • mp4
  • mp3

Thanks!

romain130492 avatar Aug 10 '22 14:08 romain130492

since it looks like you want specific formats (mp4 and mp3 don't get used that often for web-streaming) i'd recommend using ffmpeg it has full support for multiple inputs and multiple outputs

you can also checkout the example-folders if i remember correct one of these used a stream input for ffmpeg (so without writing to a file first)

TimeForANinja avatar Aug 26 '22 11:08 TimeForANinja