bluenviron / gortsplib

RTSP 1.0 client and server library for the Go programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adapt to situations without audio fmpt in sdp

langhuihui opened this issue · comments

v=0
o=- 38990265062388 38990265062388 IN IP4 192.168.2.14
s=RTSP Session
c=IN IP4 192.168.2.14
t=0 0
a=control:*
a=range:npt=0-
m=video 0 RTP/AVP 98
a=rtpmap:98 H265/90000 
a=range:npt=0-
a=framerate:0S
a=fmtp:98 profile-id=010101;sprop-pps=RAHA8rA7NA==;sprop-sps=QgEBAWAAAAMAsAAAAwAAAwB7oAPAgBDlja7ky/NwEBAQQAAAAwBAAAAGaEA=;sprop-vps=QAEMAf//AWAAAAMAsAAAAwAAAwB7rAwAAAMABAAAAwBmqA==;sprop-sei=TgHlBMbLAACA;
a=framerate:25
a=control:trackID=3
m=audio 0 RTP/AVP 8
a=control:trackID=4

can you still create pcma track?

Hello, the question is that i'm not sure that all audio tracks without fmpt are PCMA tracks.

Anyway the client should skip these kind of tracks.

Sorry, i was completely wrong in the previous comment.

This track

m=audio 0 RTP/AVP 8
a=control:trackID=4

is fully recognized as a PCMA track since it has a payload type of 8, and gortsplib parses it correctly.

You are right! Thank you!

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.