![]() ![]() The above command works fine, and I can push the input stream to RTMP endpoint. Running the ffmpeg command in the terminal works fine.įfmpeg -i rtsp://10.0.1.7/media.sdp -c copy -f flv The python script returns “ Broken pipe”. P = subprocess.Popen(command, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE)Ĭv2.putText(frame, 'TEXT ON VIDEO', (50, 50), font, 1, (0, 255, 255), 2, cv2.LINE_4) Height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))Ĭommand = Width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) ![]() I referred this FFmpeg stream video to rtmp from frames OpenCV python - Stack Overflow import sys I want to read an rtsp video source, add overlay text and push it to the RTMP endpoint.I am using Videocapture to read the video source and python subprocess to write the frames back to RTMP endpoint.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |