Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distortion while sending frames from EmguCV (customer frame) #12

Closed
chauhan19911 opened this issue Mar 10, 2021 · 2 comments
Closed

Distortion while sending frames from EmguCV (customer frame) #12

chauhan19911 opened this issue Mar 10, 2021 · 2 comments

Comments

@chauhan19911
Copy link

chauhan19911 commented Mar 10, 2021

Hi, I'm facing problem while sending frames captured from external source like EmguCV
This is my code to create server and to add source


 //Create the server optionally specifying the port to listen on
            server = new Media.Rtsp.RtspServer(IPAddress.Parse("192.168.31.173"), 8081);
            _mirror = new RFC2435Media("channel_1", null, false, testFrame.Width, testFrame.Height, false)
            {
                m_ForceTCP = true,
            };
            if (server.TryAddMedia(_mirror))
            {
                server.Start();
                foreach (var item in server.MediaStreams)
                {
                    item.Start();
                    Console.WriteLine(item.IsReady);
                    Console.WriteLine(item.State);
                }
            }

Code where I'm setting frame
_mirror.Packetize(frame);
where frame is bitmap frame coming in 30 fps

accessing using rtsp://192.168.31.173:8081/live/channel_1 from VLC

Now, I'm getting my web camera frame in VLC through the rtsp server but that frame is distorted or too much flickering.

@juliusfriedman
Copy link
Owner

What do you want me to do about what sounds to be like re-transmission or re-ordering or perhaps packet loss?

@juliusfriedman
Copy link
Owner

  1. Try using a lower default quality, something below 50 e.g. 45.
  2. Try to capute the sending and the loss (you should have 2 packet caputes sent and receieved), post those here and I will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants