Close Menu
Techs Slash

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Ellen DeGeneres on Why Kindness Still Matters More Than Ever

    January 21, 2026

    Why Angled Cooker Hoods Offer Better Headroom and Performance

    January 16, 2026

    Dominocomp Services and Cloud Computing: What Makes Them Stand Out?

    January 16, 2026
    Facebook X (Twitter) Instagram
    Techs Slash
    • Home
    • News
      • Tech
      • Crypto News
      • Cryptocurrency
    • Entertainment
      • Actors
      • ANGEL NUMBER
      • Baby Names
      • Beauty
      • beauty-fashion
      • facebook Bio
      • Fitness
      • Dubai Tour
    • Business
      • Business Names
    • Review
      • Software
      • Smartphones & Apps
    • CONTRIBUTION
    Facebook X (Twitter) Instagram
    Techs Slash
    Home»python»Python 3 Tkinter Script to Access Live IP Camera RTSP Video Stream Using FFMPEG & OpenCV Library GUI Desktop App
    python

    Python 3 Tkinter Script to Access Live IP Camera RTSP Video Stream Using FFMPEG & OpenCV Library GUI Desktop App

    Ranveer KumarBy Ranveer KumarOctober 1, 2022No Comments1 Min Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email

    Warning: Trying to access array offset on value of type bool in /home/cadesimu/techsslash.com/wp-content/themes/smart-mag/partials/single/featured.php on line 78
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Python 3 Tkinter Script to Access Live IP Camera RTSP Video Stream Using FFMPEG & OpenCV Library GUI Desktop App

    capture = cv2.VideoCapture(<span class="hljs-string">'rtsp://192.168.1.64/1'</span>) 
    capture = cv2.VideoCapture(<span class="hljs-string">'rtsp://username:password@192.168.1.64/1'</span>)
    import cv2 #print("Before URL")cap = cv2.VideoCapture('rtsp://admin:123456@192.168.1.216/H264?ch=1&subtype=0')#print("After URL") while True:     #print('About to start the Read command')    ret, frame = cap.read()    #print('About to show frame of Video.')    cv2.imshow("Capturing",frame)    #print('Running..')     if cv2.waitKey(1) & 0xFF == ord('q'):        break cap.release()cv2.destroyAllWindows()
    <span class="hljs-keyword">import</span> cv2 <span class="hljs-comment">#print("Before URL")</span>cap = cv2.VideoCapture(<span class="hljs-string">'rtsp://admin:123456@192.168.1.216/H264?ch=1&subtype=0'</span>)<span class="hljs-comment">#print("After URL")</span> <span class="hljs-keyword">while</span> <span class="hljs-literal">True</span>:     <span class="hljs-comment">#print('About to start the Read command')</span>    ret, frame = cap.read()    <span class="hljs-comment">#print('About to show frame of Video.')</span>    cv2.imshow(<span class="hljs-string">"Capturing"</span>,frame)    <span class="hljs-comment">#print('Running..')</span>     <span class="hljs-keyword">if</span> cv2.waitKey(<span class="hljs-number">1</span>) & <span class="hljs-number">0xFF</span> == <span class="hljs-built_in">ord</span>(<span class="hljs-string">'q'</span>):        <span class="hljs-keyword">break</span> cap.release()cv2.destroyAllWindows() 
    import cv2 cap = cv2.VideoCapture('http://192.168.18.37:8090/video') while(True):    ret, frame = cap.read()    cv2.imshow('frame',frame)    if cv2.waitKey(1) & 0xFF == ord('q'):        cv2.destroyAllWindows()        break
    """Access IP Camera in Python OpenCV""" import cv2 stream = cv2.VideoCapture('protocol://IP:port/1') # Use the next line if your camera has a username and password# stream = cv2.VideoCapture('protocol://username:password@IP:port/1')   while True:     r, f = stream.read()    cv2.imshow('IP Camera stream',f)     if cv2.waitKey(1) & 0xFF == ord('q'):        break cv2.destroyAllWindows()
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Ranveer Kumar
    • Website

    Related Posts

    JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    December 18, 2023

    Why does math.log result in ValueError: math domain error?

    December 17, 2023

    “inconsistent use of tabs and spaces in indentation” [duplicate]

    December 16, 2023
    Leave A Reply Cancel Reply

    Top Posts

    Top 10 Best Websites to Download Cracked Software for Free

    March 18, 2024

    Sapne Me Nahane Ka Matlab

    March 18, 2024

    Sapne Me Nagn Stri Dekhna

    March 18, 2024

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    ABOUT TECHSSLASH

    Welcome to Techsslash! We're dedicated to providing you with the best of technology, finance, gaming, entertainment, lifestyle, health, and fitness news, all delivered with dependability.

    Our passion for tech and daily news drives us to create a booming online website where you can stay informed and entertained.

    Enjoy our content as much as we enjoy offering it to you

    Most Popular

    Top 10 Best Websites to Download Cracked Software for Free

    March 18, 2024

    Sapne Me Nahane Ka Matlab

    March 18, 2024

    Sapne Me Nagn Stri Dekhna

    March 18, 2024
    CONTACT DETAILS

    Phone: +92-302-743-9438
    Email: contact@serpinsight.com

    Our Recommendation

    Here are some helpfull links for our user. hopefully you liked it.

    Techs Slash
    Facebook X (Twitter) Instagram Pinterest
    • Home
    • About us
    • contact us
    • Affiliate Disclosure
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • Write for us
    • Daman Game
    © 2026 Techsslash. All Rights Reserved

    Type above and press Enter to search. Press Esc to cancel.