pipe = sp.Popen([FFMPEG_BIN, '-i', VIDEO_URL, '-loglevel', 'quiet', '-an',
    '-f', 'image2pipe', '-pix_fmt', 'bgr24', '-vcodec', 'rawvideo', '-'],
    stdin=sp.PIPE, stdout=sp.PIPE)
while True:
    raw_image = pipe.stdout.read(432 * 240 * 3)
image = numpy.fromstring(raw_image, dtype='uint8').reshape((240, 432, 3))
cv2.imshow('GoPro', image)
if cv2.waitKey(5) == 27:
    break
cv2.destroyAllWindows()
потоковый файл m3u8 с opencv