Skip to content

movie_from_images #107

@NicolasRiel

Description

@NicolasRiel

There is crash when using the function

movie_from_images(; dir=pwd(), file="test", outfile="test2_mp4", framerate=10, copy_to_current_dir=true, type=:mp4_default)

when copy_to_current_dir=false the crash does no occur. the default for the parameter is true

Note that in both cases the video is however properly saved.

ERROR: ArgumentError: 'src' and 'dst' refer to the same file/dir. This is not supported.
src refers to: /home/seph42/CHEESE2_GeodynamicsWorkshop/Geodynamic_model_with_LaMEM/Basic_setups/01_falling_block_isoviscous/gifs/test2_mp4.mp4
dst refers to: /home/seph42/CHEESE2_GeodynamicsWorkshop/Geodynamic_model_with_LaMEM/Basic_setups/01_falling_block_isoviscous/gifs/test2_mp4.mp4
Stacktrace:
[1] checkfor_mv_cp_cptree(src::String, dst::String, txt::String; force::Bool)
@ Base.Filesystem ./file.jl:327
[2] checkfor_mv_cp_cptree
@ Base.Filesystem ./file.jl:318 [inlined]
[3] cp(src::String, dst::String; force::Bool, follow_symlinks::Bool)
@ Base.Filesystem ./file.jl:380
[4] cp
@ ./file.jl:378 [inlined]
[5] movie_from_images(; dir::String, file::String, outfile::String, framerate::Int64, copy_to_current_dir::Bool, type::Symbol)
@ GeophysicalModelGenerator ~/.julia/packages/GeophysicalModelGenerator/yKWqX/src/movies_from_pics.jl:69
[6] top-level scope
@ REPL[7]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions