loops for ffmpeg CLI in python

Albert Hopkins marduk at letterboxes.org
Thu Aug 13 17:42:42 CEST 2009

On Wed, 2009-08-12 at 11:29 +0200, fakhar Gillani wrote:
> Hi,
> I am a begineer in Python. Actually I am encoding video files with
> different bitrates using ffmpeg CLI. I wanted to ask you that how can
> I make loops so that I can vary the bitrates in the CLI of ffmpeg??
> I want to bulid a loop for the command below where i just want to vary
> the -vb parameter i.e. 10M. 
> ffmpeg.exe -i sample.avi -y -f h264 -vb 10M -r 25
> encoded_1000_0-05.h264
> I have tried to make simple loops but it doest work:(
> Can anyone here help me out?

It might help if you specify what you tried and why it didn't work (for


More information about the Python-list mailing list