Tzahi12345 / YoutubeDL-Material

Self-hosted YouTube downloader built on Material Design
MIT License
2.65k stars 276 forks source link

[FEATURE] Show ffmepg progress during transcode #692

Open StarrrLiteNL opened 2 years ago

StarrrLiteNL commented 2 years ago

Is your feature request related to a problem? Please describe. I have YoutubeDL-Material installed on my Raspberry PI 3B+, and it's working fine except the 'audio only' function is mighty slow due to the limited processing power of the PI combined with the single-threaded nature of the transcoding process. I usually download longer video's (1H+) to extract the audio from it, and for a 1 hour video, the transcoding/extracting sound can easily take over an hour per video.

Currently the only way for me to track if the process is still going is to check my CPU usage, with no way to tell how far the encoding process is, or if it is actually still doing anything. The downloads page will be 'stuck' on getting info' the entire time.

Describe the solution you'd like It would be nice to have a clearer status in the downloads page that the video has been downloaded and FFMEP is currently converting it. Ideally it would show some form of progress (percentage done, time left?) in the status as well.

Tzahi12345 commented 2 years ago

Progress on the ffmpeg side of things will probably be difficult... Reason is that we don't actually do that, it's youtube-dl. The only time we ever do call ffmpeg directly is when we're cropping files.

But it shouldn't be stuck on "Getting info", it should be in the downloading step already at that point. In fact I'd expect it to be at 100% download percent.

Do you have an example link I can use?