How can I show a timecode while playing audio in FFPlay?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I'm wanting to play strictly audio files with FFplay.
Already when opening files it displays a window with a rolling spectogram.



I'd like to have the same spectogram with an overlay of a timecode in hh:mm:ss.



There is nothing on the man page whatsoever of this.



How can I achieve this?










share|improve this question



























    up vote
    1
    down vote

    favorite












    I'm wanting to play strictly audio files with FFplay.
    Already when opening files it displays a window with a rolling spectogram.



    I'd like to have the same spectogram with an overlay of a timecode in hh:mm:ss.



    There is nothing on the man page whatsoever of this.



    How can I achieve this?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm wanting to play strictly audio files with FFplay.
      Already when opening files it displays a window with a rolling spectogram.



      I'd like to have the same spectogram with an overlay of a timecode in hh:mm:ss.



      There is nothing on the man page whatsoever of this.



      How can I achieve this?










      share|improve this question















      I'm wanting to play strictly audio files with FFplay.
      Already when opening files it displays a window with a rolling spectogram.



      I'd like to have the same spectogram with an overlay of a timecode in hh:mm:ss.



      There is nothing on the man page whatsoever of this.



      How can I achieve this?







      command-line sound xorg ffmpeg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 11 at 0:47









      muru

      130k19273463




      130k19273463










      asked Apr 10 at 17:59









      Nectar

      7543617




      7543617




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          This can be done with the showspectrum and drawtext filters.



          enter image description here



          ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"


          • Seeking during playback will not be possible.

          • Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option font=Mono allows you to set the font family, but this requires your ffmpeg to be compiled with --enable-libfribidi. Otherwise, use the fontfile option and provide the full path to the font file.





          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023749%2fhow-can-i-show-a-timecode-while-playing-audio-in-ffplay%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            This can be done with the showspectrum and drawtext filters.



            enter image description here



            ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"


            • Seeking during playback will not be possible.

            • Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option font=Mono allows you to set the font family, but this requires your ffmpeg to be compiled with --enable-libfribidi. Otherwise, use the fontfile option and provide the full path to the font file.





            share|improve this answer


























              up vote
              0
              down vote













              This can be done with the showspectrum and drawtext filters.



              enter image description here



              ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"


              • Seeking during playback will not be possible.

              • Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option font=Mono allows you to set the font family, but this requires your ffmpeg to be compiled with --enable-libfribidi. Otherwise, use the fontfile option and provide the full path to the font file.





              share|improve this answer
























                up vote
                0
                down vote










                up vote
                0
                down vote









                This can be done with the showspectrum and drawtext filters.



                enter image description here



                ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"


                • Seeking during playback will not be possible.

                • Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option font=Mono allows you to set the font family, but this requires your ffmpeg to be compiled with --enable-libfribidi. Otherwise, use the fontfile option and provide the full path to the font file.





                share|improve this answer














                This can be done with the showspectrum and drawtext filters.



                enter image description here



                ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"


                • Seeking during playback will not be possible.

                • Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option font=Mono allows you to set the font family, but this requires your ffmpeg to be compiled with --enable-libfribidi. Otherwise, use the fontfile option and provide the full path to the font file.






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 12 at 18:34

























                answered Apr 11 at 0:47









                LordNeckbeard

                4,6451334




                4,6451334



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023749%2fhow-can-i-show-a-timecode-while-playing-audio-in-ffplay%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Which professions warranted travel in Medieval times?

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error