Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The SEA(Stream Encoder for Android) publish live stream to SRS over HTTP-FLV.

License

NotificationsYou must be signed in to change notification settings

ossrs/srs-sea

 
 

Repository files navigation

The SEA(Stream Encoder for Android) publish live stream to SRS over HTTP-FLV.

Remark: Please useYASEA instead.

Download

The latest dev apkhttp://ossrs.net/dl/apks/sea.latest.apk

Usage

The step to use the SEA:

  1. [Optional] Make sure your android is 4.1+, seeRequirements
  2. [Optional] Check your MediaCodec info, seeMediaCodec
  3. [Required] Download theSEA apk.
  4. [Required] Push to ossrs.nethttp://ossrs.net:8936/live/sea.flv, or readStream Caster.
  5. [Required] Play theRTMP stream
  6. [Required] Play theFLV stream
  7. [Required] Play theHLS stream, or scan the below code:
    SEA HLS stream

Remark: Change the url if use your server, for instance:

Publish: http://yourserver:8936/live/sea.flvRTMP URL: rtmp://yourserver:1935/live/seaFLV URL: http://yourserver:8080/live/sea.flvHLS URL: http://yourserver:8080/live/sea.m3u8

For more information about config of SRS, readStreamCaster.

Features

  • Only java files, without any native code.
  • Realtime live streaming, similar to RTMP.
  • Stable for POST HTTP FLV stream toSRS.
  • Hardware encoding with low cpu usage.

Requirements

Android SDK level 16+, Android 4.1, the JELLY_BEAN

Supported Devices

The following android device is test ok, others should be ok.

CompanyBandAndroidCodec
HuaweiAscendG74.4qcom
HuaweiHonor64.4-
HuaweiMate74.4-
mi.comMI34.4nvidia
魅族mx4 pro4.4.4exynos(三星)
三星MediaGalaxy Tab S T7005.0.2exynos(三星)
酷派大神F2-82974.4.2MTK(联发科)
小米mi-4c5.1.1qcom

Pleasereport your device if srs-sea is ok for your phone.

MediaCodec

To show your android media codec info,download the app, or scan the below code:
MEDIACODEC APK

About more information please readmore.

WorkFlow

The workflow of the android publisher is:

  1. Setup the Camera preview, callback with the YUV(YV12) image frame.
  2. Setup the MediaCodec and MediaFormat, encode the YUV to h.264/avc in annexb.
  3. Remux the annexb to flv stream.
  4. HTTP POST the flv stream to SRS.

For more information, read theblog.

Low Latency

The latency is same to RTMP, 0.8s in lan and 3-5s in wan.

0.8s latency

Lightweight

800kbps

CPU 13% for publishing live to SRS over HTTP FLV, bitrate is 800kbps, fps is 25 and gop is 10s.

125kbps

CPU 6% for publishing live to SRS over HTTP FLV, bitrate is 125kbps, fps is 15 and gop is 5s.

Links

Projects from SRS-ORG:

Others:

Winlin 2015.5

About

The SEA(Stream Encoder for Android) publish live stream to SRS over HTTP-FLV.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp