Hi,
I am trying to open a sony mxf video file with the following python code:
import cv2
file="./A006C004_201031PG.mxf"
type orcap = cv2.VideoCapture(file)
print(cap)
while not cap.isOpened():
cap = cv2.VideoCapture(file)
cv2.waitKey(1000)
The code never passes the open statement, it just hangs
I am able to read and process the file with ffmpeg. The video uses the h.264 codec.
I am able to open other containers on my linux (fedora 37) system.
I have converted the file to a mp4 container and can read it in.
I have set
OPENCV_VIDEOIO_DEBUG=1
and get this result
`` WARN:0@0.481] global /builddir/build/BUILD/opencv-4.6.0/modules/videoio/src/cap.cpp (130) open VIDEOIO(FFMPEG): trying capture filename=‘./A006C004_201031PG.mxf’ …
[ WARN:0@0.488] global /builddir/build/BUILD/opencv-4.6.0/modules/videoio/src/cap.cpp (190) open VIDEOIO(FFMPEG): backend is not available (plugin is missing, or can’t be loaded due dependencies or it is not compatible)
[ WARN:0@0.488] global /builddir/build/BUILD/opencv-4.6.0/modules/videoio/src/cap.cpp (130) open VIDEOIO(GSTREAMER): trying capture filename=‘./A006C004_201031PG.mxf’ …`
Are there plugins available or do I have to recompile? I can not find any plugins.
Thanks.
render