...
Code Block |
---|
|
{
"uri":"rtmp://myserver.com/live/myStream",
"localStreamName":"stream1",
"hasAudio": false,
"hasVideo": true
} |
Configuration
Codecs parameters definition
In the /usr/local/FlashphonerWebCallServer/conf
directory you can find the SDP description file for the RTMP agent rtmp_agent.sdp
:
Code Block |
---|
|
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 95
a=rtpmap:95 H264/90000
a=fmtp:95 profile-level-id=42e01f;packetization-mode=1
a=sendonly
m=audio 0 RTP/AVP 103 96 97 98 99 100 102 108 104
a=rtpmap:108 mpeg4-generic/48000/12
a=rtpmap:96 mpeg4-generic/8000/12
a=rtpmap:97 mpeg4-generic/11025/12
a=rtpmap:98 mpeg4-generic/12000/12
a=rtpmap:99 mpeg4-generic/16000/12
a=rtpmap:100 mpeg4-generic/22050/12
a=rtpmap:104 mpeg4-generic/24000/12
a=rtpmap:102 mpeg4-generic/32000/12
a=rtpmap:103 mpeg4-generic/44100/12
a=recvonly |
To enable recording of both audio and video (instead of audio only) during captured stream recording specify the following attribute in this file
...
Code Block |
---|
|
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 95
a=rtpmap:95 H264/90000
a=fmtp:95 profile-level-id=42e01f;packetization-mode=1
a=sendonly |
Frame type detection
Sometimes, RTMP stream source may set a media frame type incorrectly at RTMP protocol level. In this case frame type should be detected according to frame content. To enable this, use the following parameter added in build 5.2.1446
Code Block |
---|
|
rtmp_detect_h264_frame_type=true |
Quick manual on testing
Capturing of an RTMP stream broadcast by another server using the REST-query /pull/rtmp/pull
...