[Twisted-Python] Call to ffmpeg using getProcessOutput

Andrew Bennetts andrew-twisted at puzzling.org
Mon Jun 25 05:49:11 MDT 2007


Daniel de la Cuesta wrote:
> Hi everybody, I am trying to call ffmpeg using getProcessOutput method.
> 
> My code is as follows:
> 
> #Tuple of strings
> arguments = ('-i imput_file', '-ar 8000', '-ac 1', '-acodec amr_nb', '-vcodec
> h263', '-s qcif', '-r 12', '-b 32', '-ab 8', output_file)

This almost certainly needs to be:

arguments = ('-i', 'imput_file', '-ar', '8000', '-ac', '1', '-acodec', 'amr_nb',
	     '-vcodec', 'h263', '-s', 'qcif', '-r', '12', '-b', '32', '-ab',
             '8', output_file)

The error you are seeing is because ffmpeg cannot understand the arguments you
are passing it, so it writes a basic help message to stderr.

-Andrew.





More information about the Twisted-Python mailing list