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

rtc Codec not found by name(13,libopus),depends.sh's bug?' Translation: The rtc Codec was not found by name (13, libopus). Is this a bug in depends.sh? #2431

Closed
chenminnj opened this issue Jun 23, 2021 · 2 comments
Assignees
Labels
Bug It might be a bug. PullRequest Has PR or solution in issue. TransByAI Translated by AI/GPT.
Milestone

Comments

@chenminnj
Copy link

chenminnj commented Jun 23, 2021

When using the SRS compiled from the 4.0 release branch source code and running "./objs/srs -c conf/rtc.conf" to receive an RTMP stream from ffmpeg, SRS throws an error:

"[2021-06-23 04:19:24.303][Error][1][2pr3fp6k][11] serve error code=5011 : service cycle : rtmp: stream service : bridger init : init codec : enc init codec:13, channels:2, samplerate:48000, bitrate:48000 : Codec not found by name(13,libopus)",

which causes the ffmpeg stream to fail:

"Error writing trailer of rtmp://xxx:1935/live/1: Broken pipe".

  1. SRS version: 4.0release
  2. Operating environment: Ubuntu 20.04.2 LTS

In the srs/trunk/auto/depends.sh script, when building ffmpeg, the parameters after $FFMPEG_CONFIGURE and before "--disable-everything" are causing the options in ${FFMPEG_OPTIONS} such as "--enable-decoder=libopus --enable-encoder=libopus --enable-libopus" to not take effect. As a result, the avcodec_find_encoder_by_name function cannot find libopus.

By moving ${FFMPEG_OPTIONS} after "--disable-everything", recompiling srs, the streaming works fine.

PS. Docker version: ossrs/srs:v4.0.123. The RTC receiving RTMP streams works fine. I wonder how this Docker image of SRS was compiled.

TRANS_BY_GPT3

@duiniuluantanqin duiniuluantanqin added Bug It might be a bug. Duplicated Duplicated bug. and removed Duplicated Duplicated bug. labels Jun 24, 2021
@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Jun 25, 2021

Indeed, let's have a PR (pull request), leave your name.

TRANS_BY_GPT3

@duiniuluantanqin duiniuluantanqin added the PullRequest Has PR or solution in issue. label Jun 25, 2021
@duiniuluantanqin duiniuluantanqin linked a pull request Jun 25, 2021 that will close this issue
@winlinvip
Copy link
Member

winlinvip commented Jun 27, 2021

The Docker version is the one before the modification. It has already been fixed, thanks to @chenminnj.

TRANS_BY_GPT3

@winlinvip winlinvip self-assigned this Aug 27, 2021
@winlinvip winlinvip added this to the 4.0 milestone Sep 4, 2021
@winlinvip winlinvip changed the title rtc Codec not found by name(13,libopus),depends.sh's bug? rtc Codec not found by name(13,libopus),depends.sh's bug?' Translation: The rtc Codec was not found by name (13, libopus). Is this a bug in depends.sh? Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It might be a bug. PullRequest Has PR or solution in issue. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants