DmitryScaletta / twitch-dlp

Download regular/sub-only/hidden twitch VODs from start during live broadcast
https://npmjs.com/package/twitch-dlp
7 stars 0 forks source link

Storing Fragments differently #4

Closed u2716 closed 2 months ago

u2716 commented 3 months ago

Twitch-dlp floods the current directory with thousands of files/fragments making it unusable until it finishes. I expect most users to run this from their home or download directories, so I think it's better to either store the fragments in a temp new folder or do like yt-dlp/ytarchive, i.e. append the .ts fragments to a temporary file and then at the end run the ffmpeg command. I personally prefer the latter approach more because the temporary mp4 is playable on mpv and there are less temporary files around.