Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The settings file flash_handler_publish.sdp describes SDP for streams published from a Flash an RTMP client. By default, the file contains the following SDP configuration:

...

Note that changing this file allows to add or remove audio and video streams support only, but not to change codec used by publisher.

For example, if audio description is removed from flash_handler_publish.sdp file

Code Block
themeRDark
v=0
o=- 1988962254 1988962254 IN IP4 0.0.0.0
c=IN IP4 0.0.0.0
t=0 0
a=sdplang:en
m=video 0 RTP/AVP 119 127
a=rtpmap:119 H264/90000
a=fmtp:119 profile-level-id=42e01f;packetization-mode=1
a=rtpmap:127 FLV/90000
a=sendonly

then a stream from RTMP encoder will be video only stream on WCS even if it si published as video+audio stream by a client.

flash_handler_play.sdp

The settings file flash_handler_play.sdp describes SDP for streams played on a Flash client. By default, the file contains the following SDP configuration:

...

Code Block
themeRDark
a=rtpmap:102 mpeg4-generic/44100/1
a=rtpmap:103 mpeg4-generic/44100/2
a=rtpmap:104 mpeg4-generic/48000/1
a=rtpmap:105 mpeg4-generic/48000/2

Publishing codecs negotiation

If a stream is published with a codec which is not in SDP settings (for example, SDP contains AAC stereo only, but AAC mono is published), the publishing will fail with No common codecs error.