Ffmpeg-python: how can create video from list of images

Created on 13 Aug 2018  Â·  6Comments  Â·  Source: kkroening/ffmpeg-python

i have list
imglist = ['path/to/img1','path/to/img2','path/to/img3']
I would like to know if i can use this list to create videos.

question

All 6 comments

See this issue for an example: https://github.com/kkroening/ffmpeg-python/issues/95
There is also an example in the readme: https://github.com/kkroening/ffmpeg-python/blob/master/examples/README.md#assemble-video-from-sequence-of-frames

hi
'/path/to/jpegs/*.jpg' ->this will give me all images there are. what I'm Trying to do is use only selective images. so have list in python for selected images, want to make videos from those only

Would it be a problem to simply move/copy/symlink those image you do want into a new directory and points ffmpeg to that directory? it might still be possible to do it with selective images, just create one input per image, and concat them all.. but that seems impractical.

Hi
Thank you for your response. I have just one more question i have enabled omx encode while compiling ffmpeg, can you tell me how can use it in my code with this python binding

In the .output(…) you can add the keyword argument: vcodec='h264_omx'. That should enable the h264_omx encoder.

Thanks @153957.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CNugteren picture CNugteren  Â·  5Comments

nathanaelneveux picture nathanaelneveux  Â·  4Comments

oveddan picture oveddan  Â·  3Comments

ghost picture ghost  Â·  3Comments

laurentalacoque picture laurentalacoque  Â·  4Comments