Skip to content
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

how to download a broadcast without some processing steps #1218

Open
1 task done
yo8z6gv opened this issue Sep 26, 2024 · 1 comment
Open
1 task done

how to download a broadcast without some processing steps #1218

yo8z6gv opened this issue Sep 26, 2024 · 1 comment

Comments

@yo8z6gv
Copy link

yo8z6gv commented Sep 26, 2024

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
Copy link
Collaborator

ScrubN commented Sep 29, 2024

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,
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants