Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP-TS: Support mp3 audio codec. #83

Closed
Tracked by #296
winlinvip opened this issue Dec 24, 2022 · 2 comments
Closed
Tracked by #296

HTTP-TS: Support mp3 audio codec. #83

winlinvip opened this issue Dec 24, 2022 · 2 comments

Comments

@winlinvip
Copy link

If audio is mp3 codec, play is ok but no audio. Replay steps is bellow.

  1. Start SRS v4.0.269+ server:
./objs/srs -c conf/mp3.ts.conf
  1. Publish RTMP stream with mp3 audio:
ffmpeg -stream_loop -1  -re -i doc/source.flv -vcodec copy -acodec libmp3lame \
    -f flv rtmp://localhost/live/livestream
  1. Play HTTP-TS stream:
  • URL is http://localhost:8080/live/livestream.ts
  • VLC and ffplay is OK.
  • The srs-player fail, which use mpegts.js

PS: If use HLS with mp3 audio, hls.js is ok to play.

@winlinvip winlinvip changed the title TS: Support mp3 codec. TS: Support mp3 audio codec. Dec 24, 2022
@winlinvip winlinvip changed the title TS: Support mp3 audio codec. HTTP-TS: Support mp3 audio codec. Dec 24, 2022
@xqq
Copy link
Owner

xqq commented Dec 31, 2022

Implemented in #86 by @monyone

@winlinvip
Copy link
Author

It works! Thanks a lot 👍

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants