VideoIO.jl
VideoIO.jl copied to clipboard
Reading and writing of video files in Julia via ffmpeg
I want to obtain frame data at ahead and behind line 446 in avio.jl https://github.com/JuliaIO/VideoIO.jl/blob/e4f619ab917810d93454d50fc2c40c7383f21058/src/avio.jl#L446 how to output the AVFrame data ? It's contain metadata and side_data what i want...
```julia cam = opencamera() VideoIO.framerate(cam) ``` gives `1//0`. The webcam works normally. ``` Julia Version 1.7.3 Commit 742b9abb4d (2022-05-06 12:58 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-8550U...
``` julia> VideoIO.framerate(video_reader) 1//0 ``` but if instead i examine the [code](https://github.com/JuliaIO/VideoIO.jl/blob/master/src/avio.jl#L843) for `seek` i can get the correct value: ``` julia> convert(Rational, video_reader.avin.format_context.streams[1].time_base) 1//10 ``` the `framerate` [method](https://github.com/JuliaIO/VideoIO.jl/blob/master/src/avio.jl#L368) is...
@galenlynch any ideas with this? ``` Encoding Gray{N6f10} imagestack, scanline_major = true, size = 100: Error During Test at /home/runner/work/VideoIO.jl/VideoIO.jl/test/writing.jl:22 Got exception outside of a @test BoundsError: attempt to access...
The error seen here is difficult to figure out because we don't auto convert the error number to a meaningful message, which I believe should be straightforward https://discourse.julialang.org/t/videoio-avformat-open-input-error-code-5/81758
``` julia> VideoIO.save(mktemp()[1], [rand(UInt8, 240,480) for _ in 1:10]) ERROR: Could not allocate AVFormatContext Stacktrace: [1] error(s::String) @ Base ./error.jl:33 [2] output_AVFormatContextPtr @ ~/.julia/packages/VideoIO/hrriD/src/avptr.jl:149 [inlined] [3] VideoIO.VideoWriter(filename::String, ::Type{UInt8}, sz::Tuple{Int64, Int64};...
When I write a video with RGB{N0f8} the video isn't viewable by any video player. I am running julia with a mac M1 Monterey ``` Julia Version 1.7.2 Commit bf53498635...
When encoding a video with large frames, Julia crashes because the system runs out of memory. I made the following MWE to illustrate this (I stole @yiyuezhuo `get_memory_usage` function from...
For the type `Ptr{VideoIO.libffmpeg.AVCodecContext}`, `propertynames` returns values that don't work with `getproperty`. See an example at https://github.com/tshort/Eyeball.jl/issues/24.
I'm trying to fetch frames from a Raspberry Pi camera (headless Raspbian on 32-bit ARMv7). I also tired @hhaensel's solution mentioned here: https://github.com/JuliaIO/VideoIO.jl/issues/341#issuecomment-1012974406 ```julia (tmp) pkg> st Status `~/tmp/Project.toml` [d6d074c3]...