I have an IPCamera on my LAN streaming video using RTSP. I have been able to capture and display it successfully using ffplay command:
ffplay rtsp://admin:123456@192.168.2.50:7070
(with authentication)
So I would like to achieve the same using programming in C/C++ using ffmpeg
library. I guess this must be possible.
So let me phrase two simple questions :
-
How do I receive the stream in a C/C++ program using FFMPEG library? (just provide some URL/tutorial, as google was not helpful)
-
How do I display the received video? (same here, some good URL to direct me).
Best Answer
For rtsp streams the following is working for me (after receiving frames i save the result to a ppm file):