You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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".
SRS version: 4.0release
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
The text was updated successfully, but these errors were encountered:
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
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".
4.0release
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, theavcodec_find_encoder_by_name
function cannot findlibopus
.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
The text was updated successfully, but these errors were encountered: