HaikuArchives / ffmpegGUI

GUI for FFmpeg
MIT License
23 stars 10 forks source link

Progresss bar: Re-use clip duration from getting media info #75

Closed humdingerb closed 1 year ago

humdingerb commented 1 year ago

As we already got the duration in seconds from running ffprobe to get the media info, re-use it for the progress bar.

Besides simplifying the code, it also fixes some instances where the progress bar would be stuck at 0% when parsing the ffmpeg output for "Duration:" failed for some reason.