Sox stopped working

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











up vote
0
down vote

favorite












I'm using sox in this setup: sudo timeout 20 rtl_fm -f 115.5M -s 60k -g 45 -p 55 -E wav -E deemp -F 9 - | sox -t wav - test.wav rate 11025, it worked for quite a while but since last week it stopped working and prints this error message:



sox FAIL formats: can't open input `-': WAVE: RIFF header not found


The error message is not really useful though because I specifies the header already with -t wav...What do I need to change to get it to work?










share|improve this question









New contributor




MrGrimod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    I'm using sox in this setup: sudo timeout 20 rtl_fm -f 115.5M -s 60k -g 45 -p 55 -E wav -E deemp -F 9 - | sox -t wav - test.wav rate 11025, it worked for quite a while but since last week it stopped working and prints this error message:



    sox FAIL formats: can't open input `-': WAVE: RIFF header not found


    The error message is not really useful though because I specifies the header already with -t wav...What do I need to change to get it to work?










    share|improve this question









    New contributor




    MrGrimod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm using sox in this setup: sudo timeout 20 rtl_fm -f 115.5M -s 60k -g 45 -p 55 -E wav -E deemp -F 9 - | sox -t wav - test.wav rate 11025, it worked for quite a while but since last week it stopped working and prints this error message:



      sox FAIL formats: can't open input `-': WAVE: RIFF header not found


      The error message is not really useful though because I specifies the header already with -t wav...What do I need to change to get it to work?










      share|improve this question









      New contributor




      MrGrimod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I'm using sox in this setup: sudo timeout 20 rtl_fm -f 115.5M -s 60k -g 45 -p 55 -E wav -E deemp -F 9 - | sox -t wav - test.wav rate 11025, it worked for quite a while but since last week it stopped working and prints this error message:



      sox FAIL formats: can't open input `-': WAVE: RIFF header not found


      The error message is not really useful though because I specifies the header already with -t wav...What do I need to change to get it to work?







      sox






      share|improve this question









      New contributor




      MrGrimod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      MrGrimod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Nov 21 at 13:54









      Rui F Ribeiro

      38.3k1475126




      38.3k1475126






      New contributor




      MrGrimod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 21 at 10:52









      MrGrimod

      33




      33




      New contributor




      MrGrimod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      MrGrimod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      MrGrimod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          You don't "specify the header" with -t wav, you tell sox that it should expect a file in WAV format on stdin. So sox dutifully starts to parse stdin, and expects a RIFF header as part of the WAV format, but doesn't get it.



          So it's not "sox stopped working", it's rtl_fm which is for some reason not producing a valid WAV format. Checking the man page, at least for the version of rtl_fm on the man page, the file type is given by -t wav, and not by -E wav. So check the options to rtl_fm.



          Did you introduce a typo last week in the command line?






          share|improve this answer




















          • I found the problem. It was not that rtl_fm send the wrong header but that it sent no header at all because there was no data. After a quick reboot it worked again as usual ;D. Thx for the quick help!
            – MrGrimod
            Nov 21 at 16:22










          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',
          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
          );



          );






          MrGrimod is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483179%2fsox-stopped-working%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








          up vote
          0
          down vote



          accepted










          You don't "specify the header" with -t wav, you tell sox that it should expect a file in WAV format on stdin. So sox dutifully starts to parse stdin, and expects a RIFF header as part of the WAV format, but doesn't get it.



          So it's not "sox stopped working", it's rtl_fm which is for some reason not producing a valid WAV format. Checking the man page, at least for the version of rtl_fm on the man page, the file type is given by -t wav, and not by -E wav. So check the options to rtl_fm.



          Did you introduce a typo last week in the command line?






          share|improve this answer




















          • I found the problem. It was not that rtl_fm send the wrong header but that it sent no header at all because there was no data. After a quick reboot it worked again as usual ;D. Thx for the quick help!
            – MrGrimod
            Nov 21 at 16:22














          up vote
          0
          down vote



          accepted










          You don't "specify the header" with -t wav, you tell sox that it should expect a file in WAV format on stdin. So sox dutifully starts to parse stdin, and expects a RIFF header as part of the WAV format, but doesn't get it.



          So it's not "sox stopped working", it's rtl_fm which is for some reason not producing a valid WAV format. Checking the man page, at least for the version of rtl_fm on the man page, the file type is given by -t wav, and not by -E wav. So check the options to rtl_fm.



          Did you introduce a typo last week in the command line?






          share|improve this answer




















          • I found the problem. It was not that rtl_fm send the wrong header but that it sent no header at all because there was no data. After a quick reboot it worked again as usual ;D. Thx for the quick help!
            – MrGrimod
            Nov 21 at 16:22












          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          You don't "specify the header" with -t wav, you tell sox that it should expect a file in WAV format on stdin. So sox dutifully starts to parse stdin, and expects a RIFF header as part of the WAV format, but doesn't get it.



          So it's not "sox stopped working", it's rtl_fm which is for some reason not producing a valid WAV format. Checking the man page, at least for the version of rtl_fm on the man page, the file type is given by -t wav, and not by -E wav. So check the options to rtl_fm.



          Did you introduce a typo last week in the command line?






          share|improve this answer












          You don't "specify the header" with -t wav, you tell sox that it should expect a file in WAV format on stdin. So sox dutifully starts to parse stdin, and expects a RIFF header as part of the WAV format, but doesn't get it.



          So it's not "sox stopped working", it's rtl_fm which is for some reason not producing a valid WAV format. Checking the man page, at least for the version of rtl_fm on the man page, the file type is given by -t wav, and not by -E wav. So check the options to rtl_fm.



          Did you introduce a typo last week in the command line?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 at 11:12









          dirkt

          16.2k21234




          16.2k21234











          • I found the problem. It was not that rtl_fm send the wrong header but that it sent no header at all because there was no data. After a quick reboot it worked again as usual ;D. Thx for the quick help!
            – MrGrimod
            Nov 21 at 16:22
















          • I found the problem. It was not that rtl_fm send the wrong header but that it sent no header at all because there was no data. After a quick reboot it worked again as usual ;D. Thx for the quick help!
            – MrGrimod
            Nov 21 at 16:22















          I found the problem. It was not that rtl_fm send the wrong header but that it sent no header at all because there was no data. After a quick reboot it worked again as usual ;D. Thx for the quick help!
          – MrGrimod
          Nov 21 at 16:22




          I found the problem. It was not that rtl_fm send the wrong header but that it sent no header at all because there was no data. After a quick reboot it worked again as usual ;D. Thx for the quick help!
          – MrGrimod
          Nov 21 at 16:22










          MrGrimod is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          MrGrimod is a new contributor. Be nice, and check out our Code of Conduct.












          MrGrimod is a new contributor. Be nice, and check out our Code of Conduct.











          MrGrimod is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483179%2fsox-stopped-working%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

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)