JuliaIO / VideoIO.jl

Reading and writing of video files in Julia via ffmpeg
https://juliaio.github.io/VideoIO.jl/stable
Other
126 stars 53 forks source link

encodevideo.jl examples errors #266

Closed freemin7 closed 3 years ago

freemin7 commented 3 years ago

I am running the example in a dedicated environment using these versions

(FFMPEGFun) pkg> st
Project FFMPEGFun v0.1.0
Status `~/Projekte/Julia/FFMPEGFun/Project.toml`
  [d6d074c3] VideoIO v0.8.1
  [de0858da] Printf 

I included the directly into the src folder, only wrapping it in a module, when i try to call the code, i get warnings and errors:

using FFMPEGFun
[ Info: Precompiling FFMPEGFun [6630a81f-afe5-4bd1-8d8e-870a05f99115]
WARNING: ImageCore.permuteddimsview is deprecated, use PermutedDimsArray instead.
  likely near /home/joto/.julia/packages/VideoIO/G8CP6/src/VideoIO.jl:5
WARNING: importing deprecated binding ImageCore.permuteddimsview into VideoIO.
  ERROR: LoadError: setfield! immutable struct of type AVCodecContext cannot be changed
Stacktrace:
 [1] setproperty!(::VideoIO.AVCodecs.AVCodecContext, ::Symbol, ::Int64) at ./Base.jl:34
 [2] top-level scope at /home/joto/Projekte/Julia/FFMPEGFun/src/FFMPEGFun.jl:56
 [3] top-level scope at none:2
 [4] eval at ./boot.jl:331 [inlined]
in expression starting at /home/joto/Projekte/Julia/FFMPEGFun/src/FFMPEGFun.jl:56
ERROR: Failed to precompile FFMPEGFun [6630a81f-afe5-4bd1-8d8e-870a05f99115] to /home/joto/.julia/compiled/v1.4/FFMPEGFun/jfBp2_Lv8fM.ji.
IanButterworth commented 3 years ago

Those aren't actually examples of how to use VideoIO, they are examples of how the original conversion from c code was done to julia. We should rename them.

Best to check out the docs for usage guides

freemin7 commented 3 years ago

Thank you for clarifying it. I will look if i find what i seek there.