Error when reading videos with OPenCV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fedora 29 (x86-64), I have trouble reading videos with OPenCV and
python3.

The script is as simple as:

import cv2
import sys

video = cv2.VideoCapture(sys.argv[1])

And the error message is:

-> python3 test.py 170621_ch1_ROI2_20h38pt.mp4
Failed to query video capabilities: Inappropriate ioctl for device
libv4l2: error getting capabilities: Inappropriate ioctl for device
VIDEOIO ERROR: V4L: device 170621_ch1_ROI2_20h38pt.mp4: Unable to query
number of channels
warning: GStreamer: unable to query duration of stream
(/builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp:904)
warning: Cannot query video position: status=1 value=0 duration=-1
 (/builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp:952)

I have tried with other videos formats (includng nn-patent encumbered
ones such as webp or mpeg) and got the same error.
This seems remnant of some old bugs that are marked as solved in the
fedora 25/26 timeframe. Did they reappear ? Certainly, the problem was
not here two ot three years ago...

>From the opencv website, it seems that the same problem is said to be
solved when building with FFMPEG which seems to be uncompatible with
free software... But since it was working a while ago, would it be
possible to restore this functionality ?? Or at the very least to get
some understandable error message ?

    Thank's a lot,

	Theo

Attachment: 0x12BF16AD4F273D5D.asc
Description: application/pgp-keys

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux