Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: MRAB Newsgroups: comp.lang.python Subject: Re: movie from pictures Date: Thu, 9 Jun 2016 20:25:32 +0100 Lines: 27 Message-ID: References: <7e57c662-a6c2-441d-a46e-49458439250f@googlegroups.com> <16301530-a24b-42c6-bcf6-007c4eb85aca@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de TiPCLjWT/VQzROZFYmgqbQKc4zMRKKmneaT1iYfK8Q1g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'preferable': 0.09; 'python': 0.10; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:192.168.1.4': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subprocess': 0.16; 'wrote:': 0.16; 'variable': 0.18; 'skip:" 30': 0.20; 'arguments': 0.22; 'pass': 0.22; 'tried': 0.24; 'import': 0.24; 'header:In- Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'separate': 0.27; 'command-line': 0.29; 'code:': 0.29; 'work.': 0.30; 'lets': 0.33; 'skip:- 10': 0.34; 'file': 0.34; 'skip:c 30': 0.35; 'list:': 0.35; 'path': 0.35; 'something': 0.35; 'reply.': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'names': 0.38; 'thank': 0.38; 'subject:from': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'more': 0.63; 'otten': 0.84; 'hand,': 0.97 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=K//fZHiI c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=ZGTHokUVeuYSdlPn3b4A:9 a=HeQECjkz1z7i3tMD:21 a=1ftKI4YTflAd2Uf2:21 a=QEXdDO2ut3YA:10 X-AUTH: mrabarnett@:2500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <7e57c662-a6c2-441d-a46e-49458439250f@googlegroups.com> <16301530-a24b-42c6-bcf6-007c4eb85aca@googlegroups.com> Xref: csiph.com comp.lang.python:109761 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 >> C:\\Projects\\data2\\movie.mp4"]) >> >> 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: > > call(["ffmpeg", > "-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..