Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV can't capture m3u8 video with videoCapture

Hey Folks,

I'm trying to grab a live preview of a m3u8 video stream using OpenCV and Python on a Mac (OS X).

I've got a really simple test script here:

#!/usr/bin/python
import cv2
stream = cv2.VideoCapture("http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8")cv2.VideoCapture

That m3u8 stream is a working video that I can view through VLC no problem.

However when I run this all I get is: WARNING: Couldn't read movie file http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8

Is it possible to run this in a debug mode and get more information? Anyone know if I'm likely to be missing an important library on OS X? Do I need to directly parse the datastream using Python? I was hoping the OpenCV did that for me.