Skip to content

RTMP to HTTP-FLV

Introduction to HTTP-FLV

HTTP-FLV is a streaming media transmission technology based on the HTTP protocol, used for real-time transmission of audio and video data. It encapsulates audio and video content in FLV format (Flash Video) and continuously pushes data streams through HTTP long connections. It is widely used in live streaming scenarios to achieve low-latency real-time playback.

Configuration

  1. First, you need to enable the HTTP service in the mms.yaml file:
yaml
http:
  enabled: on   # Enable HTTP service
  port: 80    # Port
  1. Next, you also need to enable the conversion from RTMP to FLV in the streaming domain configuration:
yaml
type: publish
name: test.publish.com
apps:
  - name: app                     # Access point name
    bridge:                       # Protocol conversion configuration
      no_players_timeout_ms: 10s  # Time without players before ending protocol conversion
      rtmp:
        to_flv: on                # Enable RTMP to FLV conversion

Note

  • Protocol conversion currently only supports on-demand conversion (configuration for continuous conversion is not yet supported). This means conversion only starts when there are players, reducing server consumption.
  • In addition, conversions such as RTMP to RTSP and RTMP to WebRTC are also supported.

Playback

You can use ffplay to play the stream:

shell
ffplay http://test.play.com/app/test/.flv

Released under the MIT License.