Python scripts to create/extend a movie


R. Alblas
 

Ernst,

I did change the mentioned required command to:

conda install -c fastai opencv-python-headless

That works (including creating movies), at least for linux-64 (but this package is also available for win-64 and osx-64).

(conda install opencv-python doesn't work, the package is not available via the default channels.)

Regards,
Rob.

On 07-11-2022 15:35, Ernst Lobsiger via groups.io wrote:

Rob,

I'll probably have a look at that. I first thought:

These guys recommend to install anaconda and then use pip. Not sure this is good advice as conda packages are binary while pip packages are source related AFAIK.
In any case I had unresolvable severe dependency problems after updating a pytroll environment directly from github using pip3. This ended in a reinstall of miniconda ...

Your mileage may vary ...

Regards,
Ernst


R. Alblas
 

Ernst,

Good point. To be honest, I did try this outside Pytroll, since there is no direct relation with satpy. But this should be tested using conda to install, otherwise it becomes maybe a bit confusing (partly conda, partly pip...)

Rob.


On 07-11-2022 15:35, Ernst Lobsiger via groups.io wrote:

Rob,

I'll probably have a look at that. I first thought:

These guys recommend to install anaconda and then use pip. Not sure this is good advice as conda packages are binary while pip packages are source related AFAIK.
In any case I had unresolvable severe dependency problems after updating a pytroll environment directly from github using pip3. This ended in a reinstall of miniconda ...

Your mileage may vary ...

Regards,
Ernst


Ernst Lobsiger
 

Rob,

I'll probably have a look at that. I first thought:

These guys recommend to install anaconda and then use pip. Not sure this is good advice as conda packages are binary while pip packages are source related AFAIK.
In any case I had unresolvable severe dependency problems after updating a pytroll environment directly from github using pip3. This ended in a reinstall of miniconda ...

Your mileage may vary ...

Regards,
Ernst


R. Alblas
 

I have added a python file with some functions to create a movie from jpeg files, and to extend a movie with one frame, with a limit of max. number of frames. This way you can extend a movie on the fly each time a new jpg-file is created.
An example file how to use it is also added.

For some reason WebM (VP09) doesn't work, so for the moment it's default DIVX (easy to adapt to other codecs).

These functions are not connected to any satpy related code.

See:

http://www.alblas.demon.nl/wsat/software/satpy.html#movie

Rob.