Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #109800

Re: movie from pictures

From alex wright <wrightalexw@gmail.com>
Newsgroups comp.lang.python
Subject Re: movie from pictures
Date 2016-06-10 17:31 -0400
Message-ID <mailman.143.1465594319.2306.python-list@python.org> (permalink)
References (1 earlier) <7e57c662-a6c2-441d-a46e-49458439250f@googlegroups.com> <16301530-a24b-42c6-bcf6-007c4eb85aca@googlegroups.com> <njce7v$lni$1@ger.gmane.org> <d70b41fd-7e11-343a-7e1e-258b8c3cd838@mrabarnett.plus.com> <CAJpBq5Ok0MSb86WXHYeYpHeG75KESQ-Uqmaya0JY0WPJLQVE3g@mail.gmail.com>

Show all headers | View raw


I find shlex.split to be most useful to make my arguments a list in these
cases.
On Jun 9, 2016 3:28 PM, "MRAB" <python@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
>>> 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..
>>>
>>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

movie from pictures nevzat.guler@gmail.com - 2016-06-08 15:11 -0700
  Re: movie from pictures Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-08 17:32 -0700
    Re: movie from pictures Nev <nevzat.guler@gmail.com> - 2016-06-09 08:54 -0700
      Re: movie from pictures Peter Otten <__peter__@web.de> - 2016-06-09 20:58 +0200
      Re: movie from pictures MRAB <python@mrabarnett.plus.com> - 2016-06-09 20:25 +0100
      Re: movie from pictures alex wright <wrightalexw@gmail.com> - 2016-06-10 17:31 -0400
      Re: movie from pictures Karim <kliateni@gmail.com> - 2016-06-11 19:26 +0200

csiph-web