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

Get progress from conversion/postprocessing #11

Open
onionware-github opened this issue May 15, 2022 · 1 comment
Open

Get progress from conversion/postprocessing #11

onionware-github opened this issue May 15, 2022 · 1 comment

Comments

@onionware-github
Copy link

When I download long audio files that don't output directly to MP3 and need to be converted, it takes a while and I don't see the progress. As far as I know, ffmpeg converts the audio. Can I get the conversion progress or the FFmpeg output?

@adanvdo
Copy link
Contributor

adanvdo commented Jun 22, 2022

When I download long audio files that don't output directly to MP3 and need to be converted, it takes a while and I don't see the progress. As far as I know, ffmpeg converts the audio. Can I get the conversion progress or the FFmpeg output?

Are you using RunWithOptions? There are a couple things that make using RunWithOptions problematic for me. To solve the problem I ran into I ended up copying the code in that method into my own project and modifying it to accept a single url and the IProgress parameters, as well as return a RunResult<string> object containing the DownloadLocation instead of RunResult<string[]>

It worked well so I have created a second RunWithOptions method in YoutubeDLSharp that supports this and I will be submitting a Pull Request soon.

If you are using a method other than RunWithOptions all the others should accept IProgress parameters for output and progress.

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

No branches or pull requests

2 participants