Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'else:': 0.03; 'exit': 0.07; 'issue?': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; 'appreciated!': 0.16; 'rval': 0.16; 'subject:Recording': 0.16; 'subject:issue': 0.16; 'webcam': 0.16; 'thanks,': 0.18; 'load': 0.19; 'code.': 0.20; 'import': 0.21; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'cc:2**2': 0.27; 'lines': 0.28; 'url:non-standard http port': 0.30; 'code': 0.31; 'received:google.com': 0.34; 'false': 0.35; 'feed': 0.35; 'there': 0.35; 'method': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'easily': 0.39; 'help': 0.40; 'address': 0.60; 'first': 0.61; 'url:ip addr': 0.62; 'video': 0.65; 'camera': 0.65; 'from:addr:hotmail.co.uk': 0.65; 'sam': 0.65; 'url:cgi': 0.65; 'subject:live': 0.84 X-Received: by 10.49.81.72 with SMTP id y8mr439075qex.42.1361110525779; Sun, 17 Feb 2013 06:15:25 -0800 (PST) Newsgroups: comp.lang.python Date: Sun, 17 Feb 2013 06:15:25 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.100.234.232; posting-account=TejjHAoAAADkS2KGneh-APCsC96PgtnN References: <9c18d916-839c-4335-a6fa-c61fd87bd380@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 83.100.234.232 MIME-Version: 1.0 Subject: Re: Recording live video stream from IP camera issue From: Sam Berry To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361110534 news.xs4all.nl 6893 [2001:888:2000:d::a6]:44707 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39030 Hi Xav, Iv been looking into OpenCV, i can easily stream my laptops webcam using this code. import cv2 cv2.namedWindow("preview") vc = cv2.VideoCapture(0) if vc.isOpened(): # try to get the first frame rval, frame = vc.read() else: rval = False while rval: cv2.imshow("preview", frame) rval, frame = vc.read() key = cv2.waitKey(20) if key == 27: # exit on ESC break However using the cv2.Videocapture(ip_address) method will not load my IP camera video feed into the new window. I can view the stream in any web browser or VLC using the IP address http://192.168.1.72:1025/videostream.cgi?user=&pwd=&resolution=8. Did you have this issue? Is there some lines of code i may need to add? Any help would be appreciated! Thanks, Sam