Skip to content Skip to sidebar Skip to footer

Is It Possible To Have A Progress Bar Without A Loop?

I am using FFmpeg to do some video editing. I would like to have a progress bar but there is not a loop in my code. I've tried tqdm and putting my code in a loop with a range of

Solution 1:

You can use something like pv to monitor the progress of something through a pipe.

For example like this

pv infile.mp4 | ffmpeg

If you're to implement this into your code you can try something like

subprocess.call('pv '+inmovie+' | ffmpeg -filter:v "setpts= '+speed+' *PTS" '+outmovie, shell=True)

Post a Comment for "Is It Possible To Have A Progress Bar Without A Loop?"