...
A stream published on the WCS server can be played via RTSP RTMP in a third-party player. In this case, WCS itself serves as an RTMP-source.
...
1. For the test we use:
- the demo server at demo.flashphoner.com;
- the Two Way Streaming web application to publish the stream;
- VLC Player to play the stream.
...
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Track order management in RTMP stream
Most players on various platforms suppose video track to be first in RTMP stream. To guarantee this order and to send videodata before audiodata, set the following parameter in flashphoner.properties file:
Code Block | ||
---|---|---|
| ||
rtmp_send_video_first=true |
Note that if this setting is active, a stream containing audio track only can not be played as RTMP because audiodata will not be sent to client.
RTMP playback sound suppression
Sound may be disabled while stream published on server playback as RTMP. To do this, the following RTMP URL parameter should be passed:
Code Block | ||
---|---|---|
| ||
rtmp://yourserver:1935/live?suppress_sound=true/streamName |
In this case audio track will be replaced by silence.
Disabling RTMP playback
By default, RTMP playback is enabled. Since build 5.2.1081 this feature may be disabled if needed
Code Block | ||
---|---|---|
| ||
rtmp_server_enabled=false
rtmfp_server_enabled=false |
Known issues
1. When playing FullHD, 2K, 4K streams with big frame size, data packets to send may not fit to socket buffer, this leads to artifacts in some players
Symptoms: artifacts occur while playing RTMP stream via good channel
Solution: enable RTMP packets buffering with the parameter
Code Block | ||
---|---|---|
| ||
rtmp.server_buffer_enabled=true |