I have a .tar
file containing a .mp4
video. I need to open them via OpenCV (v2.4.8) in PyQt4 without extracting the archive to the file system.
Here there solution for reading images from tar
Instance:
import cv2
import numpy as np
import tarfile
tar0 = tarfile.open('files.tar')
fileg = tar0.extractfile('1.mp4')# (may be convert fileg to VideoCapture?)