Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple channel identification when frame is receeived

See original GitHub issue


Is there any way to handle if two audio channel are in the stream? It is ok, that the sdp file handles it if the dynamic payload type is different. But when I receive the frame for example RawAACFrame in the rtspClient.FrameReceived += (sender, frame) => method I can’t get the channel id so in that case I don’t know where it comes from.


Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

Dimigergocommented, Aug 28, 2019


I have made it locally. Can I get a branch to commit it and you will check it?


Dimigergocommented, Sep 17, 2019

Temporary in my code that use Dimigergo/RTSPClientSharp with the “mediaId” in upper level I have made it similar to your suggestion, and I haven’t got any performance issue with it.

I have made a class which made from hardcoded code. new CMediaInfo(1, 25) It’s only contains FPS, because I only need it.

    public class CMediaInfo
        public int MediaId { get; set; }
        public int FPS { get; set; }

        public CMediaInfo(int mediaId, int fps)
            this.MediaId = mediaId;
            this.FPS = fps;

        public override string ToString()
            return "MediaId: " + this.MediaId.ToString() 
                + " FPS: " + this.FPS.ToString();

When the first RawFrame is received with a MediaId I query this CMediaInfo reference from a private list and initialize my code with the saved FPS.

So according to your suggestion if these media info class come from the RtspClient class and filled from SDP the performance is the same as mine with the hardcoded temporary CMediaInfo list.

In my opinion your suggsestion is a good solution. 😃 I think it is good if every media line creates a new instance with a string list, which contains the attribute lines, and referenced in the frames. In this case I think don’t need to parse every line (FPS etc.), it should make in upper level if need.

Read more comments on GitHub >

github_iconTop Results From Across the Web

4. 802.11 Framing in Detail - 802.11 Wireless Networks
Several different data frame flavors can occur, depending on the network. ... When the wireless MAC receives a frame, it checks the BSSID...
Read more >
How to find AP's current channel when beacon frame is ...
You can find the current channel number by looking at 'DS Parameter set'. In the picture, the AP's operating channel is 5.
Read more >
Frame Check Sequence - an overview
For example, if two received frames have the same sequence number, it means that the same frame was retransmitted. If the first frame...
Read more >
Identification of channels with single and multiple inputs ...
The channel identification problem for multiple-input multiple-output (MIMO) channels under linear constraints can be formulated as solving ...
Read more >
Identify the video encodes - MediaLive
One video encode. Frame Capture, One video encode. HLS or MediaPackage, One or more video encodes. Typically, there are multiple video encodes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found