Bug 1487816
Summary: | Cannot read .FLV or .MP4 files | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Rares Vernica <rvernica> |
Component: | opencv | Assignee: | Nicolas Chauvet (kwizart) <kwizart> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | hhorak, jmlich83, jridky, karlthered, kwizart, matthias, pkajaba, sergio, viktor.vix.jancik |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | opencv-3.2.0-12.fc26 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-10-05 22:51:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Rares Vernica
2017-09-02 03:52:27 UTC
After googling I found [1] says to add -DWITH_LIBV4L=ON to build add support to V4L1 and not just V4L2 [2] , if you could install these packages from [3] and check if it fix and report back , I could do a official build for F26 . Thanks. [1] https://github.com/opencv/opencv/issues/6157 [2] V4L/V4L2: Using libv4l1 (ver 1.12.5) / libv4l2 (ver 1.12.5) [3] https://copr-be.cloud.fedoraproject.org/results/sergiomb/opencv/fedora-26-x86_64/00597410-opencv/build.log.gz Yes it works now. I installed the following packages from [1]: > dnf install *.rpm Last metadata expiration check: 0:07:28 ago on Sat 02 Sep 2017 10:12:21 AM PDT. Dependencies resolved. ================================================================================================ Package Arch Version Repository Size ================================================================================================ Installing: opencv x86_64 3.2.0-10.fc26 @commandline 1.6 M opencv-contrib x86_64 3.2.0-10.fc26 @commandline 2.1 M opencv-core x86_64 3.2.0-10.fc26 @commandline 3.6 M opencv-python3 x86_64 3.2.0-10.fc26 @commandline 611 k Installing dependencies: ... In Python I get some errors/warnings, but the output looks good: > ipython Python 3.6.2 (default, Aug 11 2017, 11:59:59) Type 'copyright', 'credits' or 'license' for more information IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import cv2 In [2]: cv2.VideoCapture('big_buck_bunny_720p_5mb.mp4') Failed to query video capabilities: Inappropriate ioctl for device libv4l2: error getting capabilities: Inappropriate ioctl for device VIDEOIO ERROR: V4L: device big_buck_bunny_720p_5mb.mp4: Unable to query number of channels DtsGetHWFeatures: Create File Failed DtsGetHWFeatures: Create File Failed Running DIL (3.22.0) Version DtsDeviceOpen: Opening HW in mode 0 DtsDeviceOpen: Create File Failed warning: GStreamer: unable to query duration of stream (/builddir/build/BUILD/opencv-3.2.0/modules/videoio/src/cap_gstreamer.cpp:846) Out[2]: <VideoCapture 0x7fa9bae451d0> Thanks! [1] https://copr-be.cloud.fedoraproject.org/results/sergiomb/opencv/fedora-26-x86_64/00597410-opencv/ opencv-3.2.0-11.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-16c5865d73 opencv-3.2.0-11.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8d4865aad2 opencv-3.2.0-11.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-16c5865d73 opencv-3.2.0-11.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8d4865aad2 opencv-3.2.0-12.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d3648491e8 opencv-3.2.0-12.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d3648491e8 opencv-3.2.0-12.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. I still get this error with the version opencv-3.2.0-12.fc26: Failed to query video capabilities: Inappropriate ioctl for device libv4l2: error getting capabilities: Inappropriate ioctl for device VIDEOIO ERROR: V4L: device ../../Downloads/SampleVideo_1280x720_1mb.mp4: Unable to query number of channels warning: GStreamer: unable to query duration of stream (/builddir/build/BUILD/opencv-3.2.0/modules/videoio/src/cap_gstreamer.cpp:846) The links to the COPR repos are dead, are the fixes for this problem really already pushed? (In reply to Matthias from comment #10) > I still get this error with the version opencv-3.2.0-12.fc26: > > Failed to query video capabilities: Inappropriate ioctl for device > libv4l2: error getting capabilities: Inappropriate ioctl for device > VIDEOIO ERROR: V4L: device ../../Downloads/SampleVideo_1280x720_1mb.mp4: > Unable to query number of channels > warning: GStreamer: unable to query duration of stream > (/builddir/build/BUILD/opencv-3.2.0/modules/videoio/src/cap_gstreamer.cpp: > 846) > > > The links to the COPR repos are dead, are the fixes for this problem really > already pushed? I think it is working , now you just get warnings, before you got a "DtsDeviceOpen: Opening HW in mode 0 DtsDeviceOpen: Create File Failed " |