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

avformat_input_error code -2 #402

Open
juliohm opened this issue Jul 20, 2023 · 1 comment
Open

avformat_input_error code -2 #402

juliohm opened this issue Jul 20, 2023 · 1 comment

Comments

@juliohm
Copy link

juliohm commented Jul 20, 2023

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#[email protected]:378[inlined]
VideoReader@avio.jl:378[inlined]
#openvideo#[email protected]: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
Copy link
Contributor

f3fora commented Jul 31, 2023

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

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