Skip to content

FLAC and OGG not working with libsndfile_jll v1.0.31+0 #47

@sairus7

Description

@sairus7
using HTTP
using FileIO: load, save, loadstreaming, savestreaming
import LibSndFile

url = "https://filesamples.com/samples/audio/ogg/sample1.ogg"
res = HTTP.get(url)

buf = IOBuffer(res.body)
s = loadstreaming(buf) # error
s = load(buf) # error
Errors encountered while load FileIO.Stream{FileIO.DataFormat{:OGG}, IOBuffer, Nothing}(IOBuffer(data=UInt8[...], readable=true, writable=false, seekable=true, append=false, size=1756265, maxsize=Inf, ptr=13, mark=-1), nothing).
All errors:
===========================================
ArgumentError: Package VideoIO [d6d074c3-1acf-5d4c-9a43-ef38773959a2] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

===========================================
LibSndFile.jl error while opening stream: File contains data in an unimplemented format.
===========================================

Fatal error:
ERROR: ArgumentError: Package VideoIO [d6d074c3-1acf-5d4c-9a43-ef38773959a2] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

Stacktrace:
  [1] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1012
  [2] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:936
  [3] #34
    @ C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:203 [inlined]
  [4] lock(f::FileIO.var"#34#35"{Base.PkgId}, l::ReentrantLock)
    @ Base .\lock.jl:187
  [5] action(::Symbol, ::Vector{Union{Base.PkgId, Module}}, ::FileIO.Formatted; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:203
  [6] action(::Symbol, ::Vector{Union{Base.PkgId, Module}}, ::FileIO.Formatted)
    @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:197
  [7] action(::Symbol, ::Vector{Union{Base.PkgId, Module}}, ::Symbol, ::IOBuffer; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:183
  [8] action
    @ C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:183 [inlined]
  [9] #load#14
    @ C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:113 [inlined]
 [10] load(::IOBuffer)
    @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:110
 [11] top-level scope
    @ REPL[11]:1
Stacktrace:
 [1] handle_error(e::ArgumentError, q::Base.PkgId, bt::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}})
   @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\error_handling.jl:61
 [2] handle_exceptions(exceptions::Vector{Tuple{Any, Union{Base.PkgId, Module}, Vector{T} where T}}, action::String)
   @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\error_handling.jl:56
 [3] action(::Symbol, ::Vector{Union{Base.PkgId, Module}}, ::FileIO.Formatted; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:228
 [4] action(::Symbol, ::Vector{Union{Base.PkgId, Module}}, ::FileIO.Formatted)
   @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:197
 [5] action(::Symbol, ::Vector{Union{Base.PkgId, Module}}, ::Symbol, ::IOBuffer; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:183
 [6] action
   @ C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:183 [inlined]
 [7] #load#14
   @ C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:113 [inlined]
 [8] load(::IOBuffer)
   @ FileIO C:\Users\gvg\.julia\packages\FileIO\DNKwN\src\loadsave.jl:110
 [9] top-level scope
   @ REPL[11]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions