Receiving RTSP stream using FFMPEG library
For rtsp streams the following is working for me (after receiving frames i save the result to a ppm file): #include <stdio.h> #include <stdlib.h> #include <iostream> #include <fstream> #include <sstream> extern “C” { #include <avcodec.h> #include <avformat.h> #include <avio.h> #include <swscale.h> } void log_callback(void *ptr, int level, const char *fmt, va_list vargs) { static char … Read more