Skip to content

Add the ability to force RTSP over TCP in ffmpeg cameras. #323

@malazar

Description

@malazar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions