Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encodevideo.jl examples errors #266

Closed
freemin7 opened this issue Sep 18, 2020 · 2 comments
Closed

encodevideo.jl examples errors #266

freemin7 opened this issue Sep 18, 2020 · 2 comments

Comments

@freemin7
Copy link

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
Copy link
Member

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants