I was capturing 10 cameras at 720p encoded with x264 and I was getting a lot of artefacts.
While examining my system for network problems I noticed that the video stream was being sent over UDP. It seems like avformat_open_input (I'm using latest ffmpeg from git) defaults to RTSP over UDP.
This is what I did in FfmpegCamera::PrimeCapture to fix my issue:
AVDictionary *opts = 0;
av_dict_set(&opts, "rtsp_transport", "tcp", 0);
avformat_open_input( &mFormatContext, mPath.c_str(), NULL, &opts )
It's a quick fix but it would be nice if it is added as an option in the web interface, as I belive there are situations where streaming over UDP is prefferable.
I was capturing 10 cameras at 720p encoded with x264 and I was getting a lot of artefacts.
While examining my system for network problems I noticed that the video stream was being sent over UDP. It seems like avformat_open_input (I'm using latest ffmpeg from git) defaults to RTSP over UDP.
This is what I did in FfmpegCamera::PrimeCapture to fix my issue:
AVDictionary *opts = 0;
av_dict_set(&opts, "rtsp_transport", "tcp", 0);
avformat_open_input( &mFormatContext, mPath.c_str(), NULL, &opts )
It's a quick fix but it would be nice if it is added as an option in the web interface, as I belive there are situations where streaming over UDP is prefferable.