여러 오디오 트랙을 Icecast로 스트리밍하고 싶습니다. 입력은 동일한 서버의 FLAC 스트림이며 출력의 비트 전송률이 다릅니다. 문제는 마지막 스트림 3 개를 제거하면 첫 번째 스트림이 작동한다는 것입니다. 그렇지 않은 경우 두 번째 및 다음 스트림에 대해 오류 403이 발생합니다.
구성표 : https://i.imgur.com/OaaPNJR.png
ffmpeg -i http://localhost:8000/stream
-c:a libopus -b:a 128k -f ogg -content_type application/ogg icecast://source:test@localhost:8000/opus
-c:a libopus -b:a 96k -f ogg -content_type application/ogg icecast://source:test@localhost:8000/opus96
-c:a libopus -b:a 64k -f ogg -content_type application/ogg icecast://source:test@localhost:8000/opus64
-c:a libopus -b:a 48k -f ogg -content_type application/ogg icecast://source:test@localhost:8000/opus48
ffmpeg version N-92418-gee47ac97d7 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181017
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 23.101 / 56. 23.101
libavcodec 58. 39.100 / 58. 39.100
libavformat 58. 22.100 / 58. 22.100
libavdevice 58. 6.100 / 58. 6.100
libavfilter 7. 43.100 / 7. 43.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, ogg, from 'http://localhost:8000/stream':
Metadata:
icy-br : 160
icy-name : no name
icy-pub : 0
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: flac, 48000 Hz, stereo, s16
[http @ 00000216144d7f80] HTTP error 403 Forbidden
icecast://source:test@localhost:8000/opus96: Server returned 403 Forbidden (access denied)
Icecast는 기본 구성에 있습니까?
기본적으로 Icecast는 2 개의 소스 연결을 동시에 허용하도록 설정되어 있습니다.
https://icecast.org/docs/icecast-2.4.1/config-file.html#limits
<limits>
…
<sources>2</sources>
…
</limits>
Icecast 구성을 편집 한 후에는 다시 시작하거나 SIGHUP를 보내야합니다.
error.log
Icecast 에 대한 자세한 내용을 볼 수도 있습니다 .
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다