[Live-devel] audio sampling rate from MediaSubsession

sampsa sampsa.riikonen at dasys.fi
Mon Sep 26 04:12:11 PDT 2016


Hi,

Let's consider the following sdp file:
------------
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 224.1.168.100
t=0 0
a=tool:libavformat 56.36.100
m=audio 5000 RTP/AVP 97
b=AS:256
a=rtpmap:97 L16/16000/1
-------------

The resulting MediaSubsession from the MediaSubsessionIterator, has lots 
of methods, like
->codecName()
->mediumName()
->numChannels()

.. that work nicely.

Is there any method in MediaSubsession that returns the sampling rate ?  
Tried "->speed()", but that does not seem to be the one..
(I am passing the frames to ffmpeg matroska muxer, that needs the 
sampling rate of the audio.)

Regards,

Sampsa









More information about the live-devel mailing list