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

avformat_input_error code -2 #402

Open juliohm opened 1 year ago

juliohm commented 1 year ago

I am trying to read a mp4 file that was converted from a dav fil\e using ffmpeg:

ffmpeg -y -i input.dav -c:v libx264 -crf 24 output.mp4

Solution suggested here.

The VideoIO.jl is showing the following error:

Could not open data/output.mp4. avformat_open_input error code -2

error(::String)@error.jl:35
open_avinput@avio.jl:205[inlined]
var"#AVInput#15"(::Int64, ::Type{VideoIO.AVInput}, ::String, ::Ptr{Nothing}, ::Ptr{Nothing})@avio.jl:237
AVInput@avio.jl:209[inlined]
#VideoReader#19@avio.jl:378[inlined]
VideoReader@avio.jl:378[inlined]
#openvideo#20@avio.jl:636[inlined]
openvideo(::String)@avio.jl:636
top-level scope@[Local: 3](http://localhost:1234/edit?id=b8191e20-2715-11ee-33b0-7f68d6b801ac#)[inlined]

Do you know what this error code means? I tried searching online, but couldn't find a good resource.

f3fora commented 1 year ago

I have the same error on some specific videos in a set of almost identical ones.