Stream RTMP?
I'm using opencv Python module 2.4.9 and want to capture RTMP stream.
I tried this:
import cv2
cap = cv2.VideoCapture()
cap.open('rtmp://stream_url')
which returns False
If I try to play same url with ffplay
all is fine:
Metadata: : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
videocodecid avc1
width 704.00
height 576.00
frameWidth 704.00
frameHeight 576.00
displayWidth 704.00
displayHeight 576.00
framerate 6.25
trackinfo:
timescale 90000.00
language eng
sampledescription:
sampletype H264
type video
profile-level-id 420029
sprop-parameter-sets Z0KAFoiLUFgJNCAAA4QAACvyAIA=,aM44gA==
description {H264CodecConfigInfo: profile: "Baseline", level: 2.2, frameSize: 704x576, displaySize: 704x576,
frameRate: 6.25}
rtpsessioninfo:
emailaddress NONE
name Media Presentation
origin - 1405834265312553 1405834265312553 IN IP4 <ip-address>
timing 0 0
protocolversion 0
attributes:
Input #0, flv, from 'rtmp://<stream_url>':
Metadata:
frameWidth : 704
frameHeight : 576
displayWidth : 704
displayHeight : 576
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p, 704x576, 6.25 fps, 43.42 tbr, 1k tbn, 12.50 tbc
117.49 M-V: -0.038 fd= 8 aq= 0KB vq= 15KB sq= 0B f=1/1
Any ideas how to resolve?