JuliaIO / VideoIO.jl

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

AxisArrays Error #107

Closed yakir12 closed 5 years ago

yakir12 commented 7 years ago

Running the "simple interface" example results in an error:

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0 (2017-06-19 13:05 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

julia> import ImageView

julia> import VideoIO

WARNING: deprecated syntax "abstract StreamContext" at /home/yakir/.julia/v0.6/VideoIO/src/avio.jl:16.
Use "abstract type StreamContext end" instead.

julia> f = VideoIO.testvideo("annie_oakley")  # downloaded if not available
AVInput(/home/yakir/.julia/v0.6/VideoIO/src/../videos/annie_oakley.ogg, ...), with
  1 video stream(s)

julia> VideoIO.playvideo(f)  # no sound
WARNING: Array{T}(::Type{T}, m::Integer, n::Integer, o::Integer) is deprecated, use Array{T}(Int(m), Int(n), Int(o)) instead.
Stacktrace:
 [1] depwarn(::String, ::Symbol) at ./deprecated.jl:70
 [2] Array(::Type{UInt8}, ::Int32, ::Int32, ::Int32) at ./deprecated.jl:57
 [3] #VideoReader#4(::Bool, ::Int64, ::Int32, ::Type{T} where T, ::VideoIO.AVInput{String}, ::Int64) at /home/yakir/.julia/v0.6/VideoIO/src/avio.jl:287
 [4] VideoIO.VideoReader(::VideoIO.AVInput{String}) at /home/yakir/.julia/v0.6/VideoIO/src/avio.jl:247
 [5] #openvideo#6(::Array{Any,1}, ::Function, ::VideoIO.AVInput{String}, ::Vararg{VideoIO.AVInput{String},N} where N) at /home/yakir/.julia/v0.6/VideoIO/src/avio.jl:451
 [6] playvideo(::VideoIO.AVInput{String}) at /home/yakir/.julia/v0.6/VideoIO/src/avio.jl:706
 [7] eval(::Module, ::Any) at ./boot.jl:235
 [8] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66
 [9] macro expansion at ./REPL.jl:97 [inlined]
 [10] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73
while loading no file, in expression starting on line 0
ERROR: MethodError: no method matching AxisArrays.AxisArray(::MappedArrays.ReadonlyMappedArray{ColorTypes.RGB{FixedPointNumbers.Normed{UInt8,8}},2,PermutedDimsArray{ColorTypes.RGB{FixedPointNumbers.Normed{UInt8,8}},2,(2, 1),(2, 1),Array{ColorTypes.RGB{FixedPointNumbers.Normed{UInt8,8}},2}},Base.#identity}, ::Tuple{Symbol,Symbol}, ::Tuple{Bool})
AShedko commented 7 years ago

I have the same problem, any news on the solution?

yakir12 commented 7 years ago

the last version of ffmpeg is not supported yet, but @kmsquire is working on it now (if I understood correctly).

IanButterworth commented 5 years ago

Most likely fixed by the move to Makie for playvideo() and a few other recent changes

cirobr commented 2 years ago

Cheers, have just tried the "simple interface". Outcome shows an error as follows, thanks for advising.

MethodError: no method matching openvideo() Closest candidates are: openvideo(!Matched::Union{AbstractString, IO, VideoIO.AVInput}, !Matched::Any...; kwargs...) at /home/ciro/.julia/packages/VideoIO/V24Bg/src/avio.jl:636 openvideo(!Matched::Any, !Matched::Any...; kwargs...) at /home/ciro/.julia/packages/VideoIO/V24Bg/src/avio.jl:638

IanButterworth commented 2 years ago

Can you post a MWE/link to the code. Thanks