FFmpeg streaming multiple audio tracks to icecast












1















I want to stream multiple audio tracks to Icecast. Input is FLAC stream from the same server and outputs have different bitrates. The problem is that the first streams work if I remove 3 last streams. If not, I get error 403 for the second and probably for next streams.



Scheme: 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)









share|improve this question



























    1















    I want to stream multiple audio tracks to Icecast. Input is FLAC stream from the same server and outputs have different bitrates. The problem is that the first streams work if I remove 3 last streams. If not, I get error 403 for the second and probably for next streams.



    Scheme: 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)









    share|improve this question

























      1












      1








      1








      I want to stream multiple audio tracks to Icecast. Input is FLAC stream from the same server and outputs have different bitrates. The problem is that the first streams work if I remove 3 last streams. If not, I get error 403 for the second and probably for next streams.



      Scheme: 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)









      share|improve this question














      I want to stream multiple audio tracks to Icecast. Input is FLAC stream from the same server and outputs have different bitrates. The problem is that the first streams work if I remove 3 last streams. If not, I get error 403 for the second and probably for next streams.



      Scheme: 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)






      audio ffmpeg streaming






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 16 at 21:09









      popek069popek069

      103




      103






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Is Icecast in its default configuration?



          By default Icecast is set up to allow 2 source connections concurrently.
          https://icecast.org/docs/icecast-2.4.1/config-file.html#limits



          <limits>

          <sources>2</sources>

          </limits>


          After editing the Icecast configuration you must either restart it or send a SIGHUP to it.



          You can also see details in the error.log for Icecast.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1395124%2fffmpeg-streaming-multiple-audio-tracks-to-icecast%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Is Icecast in its default configuration?



            By default Icecast is set up to allow 2 source connections concurrently.
            https://icecast.org/docs/icecast-2.4.1/config-file.html#limits



            <limits>

            <sources>2</sources>

            </limits>


            After editing the Icecast configuration you must either restart it or send a SIGHUP to it.



            You can also see details in the error.log for Icecast.






            share|improve this answer




























              0














              Is Icecast in its default configuration?



              By default Icecast is set up to allow 2 source connections concurrently.
              https://icecast.org/docs/icecast-2.4.1/config-file.html#limits



              <limits>

              <sources>2</sources>

              </limits>


              After editing the Icecast configuration you must either restart it or send a SIGHUP to it.



              You can also see details in the error.log for Icecast.






              share|improve this answer


























                0












                0








                0







                Is Icecast in its default configuration?



                By default Icecast is set up to allow 2 source connections concurrently.
                https://icecast.org/docs/icecast-2.4.1/config-file.html#limits



                <limits>

                <sources>2</sources>

                </limits>


                After editing the Icecast configuration you must either restart it or send a SIGHUP to it.



                You can also see details in the error.log for Icecast.






                share|improve this answer













                Is Icecast in its default configuration?



                By default Icecast is set up to allow 2 source connections concurrently.
                https://icecast.org/docs/icecast-2.4.1/config-file.html#limits



                <limits>

                <sources>2</sources>

                </limits>


                After editing the Icecast configuration you must either restart it or send a SIGHUP to it.



                You can also see details in the error.log for Icecast.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 18 at 15:37









                TBRTBR

                25315




                25315






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1395124%2fffmpeg-streaming-multiple-audio-tracks-to-icecast%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Probability when a professor distributes a quiz and homework assignment to a class of n students.

                    Aardman Animations

                    Are they similar matrix