Skip to content

basic: track URLs, payload types and UDP ports are hard-coded #40

Closed

Description

@compot-dev

On basic, rtsp_connect() ignores the SDP:

  • SETUP always goes to <url>/trackID=0 and <url>/trackID=1, whatever a=control says.
  • Payload types are fixed: 96/97 video, 100 PCM audio, 98/99 ignored (processPacket).
  • In UDP mode the client asks for client_port=5000 (video) and 5002 (audio), but only port 5000 is opened, so UDP audio never arrives. A fixed port also clashes with anything else on the device that uses 5000.
  • The audio SETUP is sent even when the stream has no audio track; its reply is read but not checked.

Fix: parse the SDP (a=control, a=rtpmap) as v2 does (#9 and #19 for the remaining gaps), and use ephemeral UDP ports, or drop UDP on basic.

Activity

  1. added
    bugSomething isn't working
    basicLegacy basic branch
    on Oct 12, 2026
  2. added a commit that references this issue on Oct 12, 2026
  3. compot-dev commented on Oct 12, 2026

    @compot-dev
    CollaboratorAuthor

    Fixed in #41 (merged into basic as 6cf68b5). Not closed automatically because basic is not the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    basicLegacy basic branchbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions