-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
EnhancementImprovement or enhancement.Improvement or enhancement.FeatureIt's a new feature.It's a new feature.TransByAITranslated by AI/GPT.Translated by AI/GPT.
Milestone
Description
SRS 3/4 supports MP3 over RTMP/HTTP-FLV/HTTP-TS, however there is some bugs need to be fixed.
Usage
Start SRS server:
# For RTMP/HTTP-FLV/HLS
./objs/srs -c conf/mp3.conf
# For HTTP-TS
./objs/srs -c conf/mp3.ts.conf
# For HTTP-MP3
./objs/srs -c conf/mp3.http.conf
# For RTMP(MP3) to WebRTC
./objs/srs -c conf/mp3.rtc.confPublish RTMP stream with mp3 audio:
ffmpeg -stream_loop -1 -re -i doc/source.flv -vcodec copy -acodec libmp3lame \
-f flv rtmp://localhost/live/livestreamPlay live stream:
- RTMP by VLC or ffplay:
rtmp://localhost/live/livestream - HTTP-FLV by VLC, ffplay or H5(srs-player):
http://localhost:8080/live/livestream.flv - HTTP-MP3 by VLC, ffplay or H5(srs-player):
http://localhost:8080/live/livestream.mp3 - HTTP-TS by VLC, ffplay or H5(srs-player):
http://localhost:8080/live/livestream.ts - HLS by VLC, ffplay or H5(srs-player):
http://localhost:8080/live/livestream.m3u8 - Covert RTMP(MP3) to WebRTC, play by H5(srs-player):
webrtc://localhost/live/livestream
Status
I tested the ability for MP3 over serval protocols, found that some is ok but others fail, and listed the test result bellow.
- Push RTMP stream with mp3 audio. SRS 4.0+
- Play RTMP stream with mp3 audio by VLC/ffplay. SRS 4.0+
- Play HTTP-FLV stream with mp3 audio by VLC/ffplay/H5(srs-player). SRS 4.0+
- Play HTTP-MP3 stream with mp3 audio by VLC/ffplay/H5(srs-player). SRS 4.0+
- Play HTTP-TS stream with mp3 audio by VLC/ffplay/H5(srs-player). SRS 4.0.269+ #3334
- Play HLS stream with mp3 audio by VLC/ffplay/H5(srs-player). SRS 4.0.269+ #3337
- H5(srs-player) support play HTTP-MP3 stream. SRS 6.0.7+ #3338
- Show audio stream information about the codec and channels, etc. SRS 5.0.117+ #3339
- Convert RTMP(MP3) to WebRTC(OPUS). SRS 5.0.118+ #3340
- DVR live stream to FLV file with MP3 audio. SRS4.0+
- DVR live stream to MP4 file with MP3 audio. SRS4.0+
- HTTP-TS: Support mp3 audio codec. xqq/mpegts.js#83
- Regresstion test for mp3 audio. SRS 5.0+ Test: Add blackbox for MP3 audio codec. #3358
- Play MPEG-DASH with MP3 audio. No plan.
Note: There is a bug for playing HTTP-TS with mp3 audio by H5, see mpegts.js #83
Metadata
Metadata
Assignees
Labels
EnhancementImprovement or enhancement.Improvement or enhancement.FeatureIt's a new feature.It's a new feature.TransByAITranslated by AI/GPT.Translated by AI/GPT.