This repository contains various Python scripts demonstrating different methods of video streaming and processing using OpenCV.
-
camera_stream_multithreading.py: This script demonstrates how to stream video from a camera using multithreading for improved performance.
-
ip_camera_stream.py: This script shows how to stream video from an IP camera. It also includes a function to maintain the aspect ratio of the video.
-
multiple_camera_streams.py: This script demonstrates how to capture and display video streams from multiple cameras simultaneously using PyQt4.
-
real_time_streaming_sync.py: This script shows how to capture and display a real-time video stream with frame synchronization.
-
rtsp_to_video_file.py: This script demonstrates how to capture a video stream from an RTSP link and save it to a video file.
-
opencv_video_saving.py: This script shows how to capture video from multiple sources and save them to separate video files.
-
multiprocessing_video_capture.py: This script demonstrates how to capture video using multiprocessing for improved performance.
Each script can be run independently. Some scripts require a video source such as a camera or video file. Please replace the placeholder values with your actual video source.
All code taken from nathancy on StackOverflow