GStreamer warning: Error opening file

GStreamer warning: Error opening file

Dear Shubha,

When I run my python script I get this error:

 

[ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap_gstreamer.cpp (701) open OpenCV | GStreamer warning: Error opening file: splits/myfile.mp4 (
[ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
libva info: VA-API version 1.4.1
libva info: va_getDriverName() returns -1
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: va_openDriver() returns -1
MFX: Can't initialize session
VIDIOC_REQBUFS: Inappropriate ioctl for device
 

I use 19.04 linux version, Do you know how can I resolve this?

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Dear Alon, Alon,

Hmmm. Well, technically Ubuntu 19.04 is not supported. But that said, I'm sure you can get OpenVino working on 19.04, maybe fix a few glitches.  Did you run setupvars.sh ? What Python script did you run to get this error ?

Thanks,

Shubha

I run setupvars.sh and get the output [setupvars.sh] OpenVINO environment initialized.

the Python script did I run is object_detection_demo_yolov3_async.py

in https://github.com/opencv/open_model_zoo/blob/master/demos/python_demos/...

  • Try to use full path to the file.
  • Try to set environment variables 'OPENCV_VIDEOIO_DEBUG=1' and 'OPENCV_LOG_LEVEL=v' and check verbose output.
  • Try to install 'good' and 'bad' plugin packages for GStreamer (gstreamer1.0-plugins-good, gstreamer1.0-plugins-bad).
  • Try to install FFmpeg.

I have the same error

It can't uses ffmpeg  and try gstreamer

 

[sanek@localhost build]$ ./intel64/Release/face_detection_tutorial -i ../../data/face.jpg InferenceEngine: API version ............ 2.1 Build .................. custom_releases/2019/R3_ac8584cb714a697a12f1f30b7a3b78a5b9ac5e05 Description ....... API [ INFO ] Parsing input parameters [ INFO ] Reading input [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/videoio_registry.cpp (187) VideoBackendRegistry VIDEOIO: Enabled backends(6, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); V4L2(970); CV_IMAGES(960); CV_MJPEG(950) [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (92) open VIDEOIO(FFMPEG): trying capture filename='../../data/face.jpg' ... [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (329) getPluginCandidates VideoIO pluigin (FFMPEG): glob is 'libopencv_videoio_ffmpeg*.so', 1 location(s) [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (336) getPluginCandidates - /opt/intel/openvino_2019.3.376/opencv/lib: 1 [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (340) getPluginCandidates Found 1 plugin(s) for FFMPEG [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (172) libraryLoad load /opt/intel/openvino_2019.3.376/opencv/lib/libopencv_videoio_ffmpeg.so => FAILED [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (128) open VIDEOIO(FFMPEG): backend is not available (plugin is missing, or can't be loaded due dependencies or it is not compatible) [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (92) open VIDEOIO(GSTREAMER): trying capture filename='../../data/face.jpg' ... [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (329) getPluginCandidates VideoIO pluigin (GSTREAMER): glob is 'libopencv_videoio_gstreamer*.so', 1 location(s) [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (336) getPluginCandidates - /opt/intel/openvino_2019.3.376/opencv/lib: 1 [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (340) getPluginCandidates Found 1 plugin(s) for GSTREAMER [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (172) libraryLoad load /opt/intel/openvino_2019.3.376/opencv/lib/libopencv_videoio_gstreamer.so => OK [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (220) PluginBackend Video I/O: loaded plugin 'GStreamer OpenCV Video I/O plugin' [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (112) open VIDEOIO(GSTREAMER): can't create capture [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (92) open VIDEOIO(INTEL_MFX): trying capture filename='../../data/face.jpg' ... [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (329) getPluginCandidates VideoIO pluigin (INTEL_MFX): glob is 'libopencv_videoio_intel_mfx*.so', 1 location(s) [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (336) getPluginCandidates - /opt/intel/openvino_2019.3.376/opencv/lib: 1 [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (340) getPluginCandidates Found 1 plugin(s) for INTEL_MFX [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (172) libraryLoad load /opt/intel/openvino_2019.3.376/opencv/lib/libopencv_videoio_intel_mfx.so => OK [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (220) PluginBackend Video I/O: loaded plugin 'MediaSDK OpenCV Video I/O plugin' libva info: VA-API version 1.4.1 libva info: va_getDriverName() returns 0 libva info: User requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_4 libva info: va_openDriver() returns 0 MFX: Unsupported extension: ../../data/face.jpg [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (112) open VIDEOIO(INTEL_MFX): can't create capture [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (92) open VIDEOIO(V4L2): trying capture filename='../../data/face.jpg' ... VIDIOC_REQBUFS: Inappropriate ioctl for device [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (112) open VIDEOIO(V4L2): can't create capture [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (92) open VIDEOIO(CV_IMAGES): trying capture filename='../../data/face.jpg' ... [ERROR:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (116) open VIDEOIO(CV_IMAGES): raised OpenCV exception: OpenCV(4.1.2-openvino) /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): ../../data/face.jpg in function 'icvExtractPattern' [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (92) open VIDEOIO(CV_MJPEG): trying capture filename='../../data/face.jpg' ... [ WARN:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/cap.cpp (112) open VIDEOIO(CV_MJPEG): can't create capture [ ERROR ] Cannot open input file or camera: ../../data/face.jpg [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (178) libraryRelease unload /opt/intel/openvino_2019.3.376/opencv/lib/libopencv_videoio_intel_mfx.so [ INFO:0] global /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/videoio/src/backend_plugin.cpp (178) libraryRelease unload /opt/intel/openvino_2019.3.376/opencv/lib/libopencv_videoio_gstreamer.so

Leave a Comment

Please sign in to add a comment. Not a member? Join today