movie from pictures
kliateni at gmail.com
Sat Jun 11 13:26:46 EDT 2016
On 10/06/2016 23:31, alex wright wrote:
> I find shlex.split to be most useful to make my arguments a list in these
> On Jun 9, 2016 3:28 PM, "MRAB" <python at mrabarnett.plus.com> wrote:
>> On 2016-06-09 19:58, Peter Otten wrote:
>>> Nev wrote:
>>> Thank you for your reply. I tried something like this in python code:
>>>> from subprocess import call
>>>> call(["ffmpeg -framerate 4/1 -start_number 1 -i
>>>> C:\\Projects\\data2\\img_%05d.png -c:v libx264 -r 30 -pix_fmt yuv420p
>>>> But it did not work. I get FileNotFoundError: [WinError 2] The system
>>>> cannot find the file specified..
>>> You have to pass the command-line arguments as separate items in the list:
>>> "-framerate", "4/1",
>>> "-start_number", "1",
>>> "-i", "C:\\Projects\\data2\\img_%05d.png",
>>> ... # and so on
>>> You should also give it the full path of ffmpeg.
>> On the other hand, in-loop solution would be more preferable since it lets
>>>> me to use variable names of the images and paths..
Why not use the split() method on the string of the command line.
More information about the Python-list