jimbuck / pully

A simple CLI and library for downloading high quality YouTube videos!
https://www.npmjs.com/package/pully
MIT License
189 stars 19 forks source link

Add option for thread limit #18

Closed jimbuck closed 5 years ago

jimbuck commented 7 years ago

Currently the download process is as follows:

  1. Download audio to temp file.
  2. Begin video download to stream.
  3. Pipe the video stream and audio temp file into ffmpeg for merging/encoding directly into our destination file.

Currently ffmpeg defaults to 0 which means use the optimal number of threads based on the system and encoding. This will really just get passed down to ffmpeg, but may help if we want to download multiple videos at a time (4 core -> 2 videos at 2 cores each).

This should be available via the node API only (not command line).

jimbuck commented 5 years ago

Going to leave this as it's probably best to let ffmpeg just do it's thing...