How can I check from the command line to see if FFMpeg is actively playing audio?Can I get the ffmpeg...

Group riding etiquette

IList<T> implementation

What's the difference between a variable and a memory location?

Why don't 3D printer heads use ceramic inner walls?

Why does the U.S. military maintain their own weather satellites?

How to differentiate between two people with the same name in a story?

Do universities maintain secret textbooks?

Can copper pour be used as an alternative to large traces?

Magnetic thread storage?

Properly unlinking hard links

German equivalent to "going down the rabbit hole"

Was it illegal to blaspheme God in Antioch in 360.-410.?

Sum and average calculator

Resources to learn about firearms?

Am I required to correct my opponent's assumptions about my morph creatures?

Was a six-engine 747 ever seriously considered by Boeing?

Can I lend a small amount of my own money to a bank at the federal funds rate?

What is the following VRP?

What was Captain Marvel supposed to do once she reached her destination?

How did medieval manors handle population growth? Was there room for more fields to be ploughed?

What's the origin of the concept of alternate dimensions/realities?

Rapid change in character

'spazieren' - walking in a silly and affected manner?

Where should I draw the line on follow up questions from previous employer



How can I check from the command line to see if FFMpeg is actively playing audio?


Can I get the ffmpeg command-line from an existing video?How to transcode audio of video with ffmpeg?Lossless audio conversion from FLAC to ALAC using ffmpegSplit audio into several pieces based on timestamps from a text file with sox or ffmpegCan I stream from multicast to one client with ffmpeg?How I can to cut line segment video with ffmpeg?How can I stop ffmpeg from quitting when it reaches the end of a named pipe?Using Alsa, How can I get the current levels of audio playing through ffmpeg or mpg123 to display on a web dashboard?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















Ffmpeg is showing its playing an icecast stream but there is no audio coming out. Restarting the program produces audio again. If an icecast feed goes away, ffmpeg keeps running even though theres no audio for some reason.



I need to detect this and restart it if theres an issue.










share|improve this question































    1















    Ffmpeg is showing its playing an icecast stream but there is no audio coming out. Restarting the program produces audio again. If an icecast feed goes away, ffmpeg keeps running even though theres no audio for some reason.



    I need to detect this and restart it if theres an issue.










    share|improve this question



























      1












      1








      1








      Ffmpeg is showing its playing an icecast stream but there is no audio coming out. Restarting the program produces audio again. If an icecast feed goes away, ffmpeg keeps running even though theres no audio for some reason.



      I need to detect this and restart it if theres an issue.










      share|improve this question














      Ffmpeg is showing its playing an icecast stream but there is no audio coming out. Restarting the program produces audio again. If an icecast feed goes away, ffmpeg keeps running even though theres no audio for some reason.



      I need to detect this and restart it if theres an issue.







      ffmpeg






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 5 hours ago









      ahackneyahackney

      1204 bronze badges




      1204 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0















          Set stimeout to e.g. 1000000 (10 seconds) - then ffmpeg will quit if it doesn't get any further data in 10 seconds. Then you can e.g. run ffmpeg into a loop.






          share|improve this answer




























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f538343%2fhow-can-i-check-from-the-command-line-to-see-if-ffmpeg-is-actively-playing-audio%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















            Set stimeout to e.g. 1000000 (10 seconds) - then ffmpeg will quit if it doesn't get any further data in 10 seconds. Then you can e.g. run ffmpeg into a loop.






            share|improve this answer






























              0















              Set stimeout to e.g. 1000000 (10 seconds) - then ffmpeg will quit if it doesn't get any further data in 10 seconds. Then you can e.g. run ffmpeg into a loop.






              share|improve this answer




























                0














                0










                0









                Set stimeout to e.g. 1000000 (10 seconds) - then ffmpeg will quit if it doesn't get any further data in 10 seconds. Then you can e.g. run ffmpeg into a loop.






                share|improve this answer













                Set stimeout to e.g. 1000000 (10 seconds) - then ffmpeg will quit if it doesn't get any further data in 10 seconds. Then you can e.g. run ffmpeg into a loop.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 3 hours ago









                mifritschermifritscher

                1868 bronze badges




                1868 bronze badges

































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f538343%2fhow-can-i-check-from-the-command-line-to-see-if-ffmpeg-is-actively-playing-audio%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

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...