[Twisted-Python] Call to ffmpeg using getProcessOutput
June 2007
11:49 a.m.
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.
6740
Age (days ago)
6740
Last active (days ago)
2 comments
2 participants
participants (2)
-
Andrew Bennetts -
Daniel de la Cuesta