![]() ![]() ![]() ![]() Now we just have to read the output of FFMPEG. It can be omitted most of the time in Python 2 but not in Python 3 where its default value is pretty small. In sp.Popen, the bufsize parameter must be bigger than the size of one frame (see below). The format image2pipe and the - at the end tell FFMPEG that it is being used with a pipe by another program. In the code above -i myHolidays.mp4 indicates the input file, while rawvideo/rgb24 asks for a raw RGB output. Import subprocess as sp command = pipe = sp. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |