Python Imageio MP4-Video aus einer Reihe von PNG-BildernPython

Python-Programme
Anonymous
 Python Imageio MP4-Video aus einer Reihe von PNG-Bildern

Post by Anonymous »

Wie erstelle ich mit dem Modul imageio ein MP4-Video aus einer Reihe von PNG-Bildern? Ich habe Folgendes versucht:

Code: Select all

import imageio
import glob
writer = imageio.get_writer('test.mp4', fps=20)
for png_path in glob.glob('*.png'):
im = imageio.imread(png_path),
writer.append_data(im[:, :, 1])
writer.close()
Ich habe auch versucht, im[:, :, 1] durch im zu ersetzen. Was mache ich falsch? Gerne verwende ich ein anderes Modul.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post