# VideoIO: avformat\_open\_input error code -5

**URL:** <https://discourse.julialang.org/t/videoio-avformat-open-input-error-code-5/81758>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 27, 2022, 3:14am UTC](https://discourse.julialang.org/t/videoio-avformat-open-input-error-code-5/81758 "2022-05-27T03:14:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YANTAN520](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yantan520/32/22068_2.png) [@YANTAN520](https://discourse.julialang.org/u/YANTAN520)\
**Post date:** [May 27, 2022, 3:14am UTC](https://discourse.julialang.org/t/videoio-avformat-open-input-error-code-5/81758/1 "2022-05-27T03:14:36Z")

</div>

When I run the following code, the following error appears.

```julia
julia>t = VideoIO.get_camera_devices(ffmpeg, "dshow", "dummy")
julia>VideoIO.opencamera(t[1])
ERROR: Could not open USB2.0 HD UVC WebCam. avformat_open_input error code -5

```

Please ask how to solve this problem.
