lay295 / TwitchDownloader

Twitch VOD/Clip Downloader - Chat Download/Render/Replay
MIT License
2.75k stars 262 forks source link

how to download a broadcast without some processing steps #1218

Open yo8z6gv opened 1 month ago

yo8z6gv commented 1 month ago

Checklist

Write stuff here

I need to download the broadcast as .ts merged or in fragment form, without merging. earlier it was possible to do so by changing the file in the directory with the program ffmpeg to empty content and blocked as read. in recent versions after a program error, all file fragments are deleted and I have to download everything again, only this time through the task manager to closed the process ffmpeg or everything related to the program. When downloading several broadcasts you have to monitor the process to have time to turn off processing.

is there any way to do it via cli version? or other solutions to my problem

ScrubN commented 1 month ago

Unfortunately this is not currently possible, however it is planned eventually due to being requested a few times.

If you're willing to build from source it should be pretty simple to add an early return in VideoDownloader.cs at line 104:

...
_progress.SetTemplateStatus("Verifying Parts {0}% [3/4]", 0);

await VerifyDownloadedParts(playlist.Streams, videoListCrop, baseUrl, downloadFolder, airDate, cancellationToken);

+++ _shouldClearCache = false;
+++ return;

_progress.SetTemplateStatus("Finalizing Video {0}% [4/4]", 0);

string metadataPath = Path.Combine(downloadFolder, "metadata.txt");
await FfmpegMetadata.SerializeAsync(metadataPath, downloadOptions.Id.ToString(), videoInfo, downloadOptions.TrimBeginning ? downloadOptions.TrimBeginningTime : TimeSpan.Zero, videoLength,
...