1. <legend id='PrCAk'><style id='PrCAk'><dir id='PrCAk'><q id='PrCAk'></q></dir></style></legend>

      <small id='PrCAk'></small><noframes id='PrCAk'>

    2. <tfoot id='PrCAk'></tfoot>
      <i id='PrCAk'><tr id='PrCAk'><dt id='PrCAk'><q id='PrCAk'><span id='PrCAk'><b id='PrCAk'><form id='PrCAk'><ins id='PrCAk'></ins><ul id='PrCAk'></ul><sub id='PrCAk'></sub></form><legend id='PrCAk'></legend><bdo id='PrCAk'><pre id='PrCAk'><center id='PrCAk'></center></pre></bdo></b><th id='PrCAk'></th></span></q></dt></tr></i><div id='PrCAk'><tfoot id='PrCAk'></tfoot><dl id='PrCAk'><fieldset id='PrCAk'></fieldset></dl></div>
        <bdo id='PrCAk'></bdo><ul id='PrCAk'></ul>

      1. 从 Java 的 processbuilder 执行的 ffmpeg 在 windows 7 下不返回

        时间:2024-08-25
        <legend id='4NW5u'><style id='4NW5u'><dir id='4NW5u'><q id='4NW5u'></q></dir></style></legend>

            <small id='4NW5u'></small><noframes id='4NW5u'>

            <tfoot id='4NW5u'></tfoot>
              <tbody id='4NW5u'></tbody>

              • <bdo id='4NW5u'></bdo><ul id='4NW5u'></ul>

                <i id='4NW5u'><tr id='4NW5u'><dt id='4NW5u'><q id='4NW5u'><span id='4NW5u'><b id='4NW5u'><form id='4NW5u'><ins id='4NW5u'></ins><ul id='4NW5u'></ul><sub id='4NW5u'></sub></form><legend id='4NW5u'></legend><bdo id='4NW5u'><pre id='4NW5u'><center id='4NW5u'></center></pre></bdo></b><th id='4NW5u'></th></span></q></dt></tr></i><div id='4NW5u'><tfoot id='4NW5u'></tfoot><dl id='4NW5u'><fieldset id='4NW5u'></fieldset></dl></div>

                1. 本文介绍了从 Java 的 processbuilder 执行的 ffmpeg 在 windows 7 下不返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我试图构建一个调用 ffmpeg 二进制文件的 ProcessBuilder.我的问题是调用它,它在 MacOs、Ubuntu 和 WindowsXp 下完美返回,但在 Windows7 下,waitFor() 永远不会返回.

                  I was trying to build up a ProcessBuilder calling the ffmpeg binary. My problem is that calling it, it returns perfectly under MacOs, Ubuntu and WindowsXp, but under Windows7 the waitFor() never returns.

                  有没有人在windows 7下有类似的经历?任何帮助将不胜感激!

                  Has anyone similar experience under windows 7? Any help would be appreciated!

                  我的命令:

                  ProcessBuilder pb = new ProcessBuilder( );
                  
                  pb.command( "C:\Windows\System32\cmd.exe", "/c", "c:\ffmpeg\bin\ffmpeg.exe", "-version" ); 
                  

                  也试过这些:

                  pb.command( "c:\ffmpeg\bin\ffmpeg.exe", "-version" ); 
                  pb.command( "C:\Windows\System32\cmd.exe", "/c", "start c:\ffmpeg\bin\ffmpeg.exe -version" ); 
                  

                  结果是一样的.:(

                  推荐答案

                  看起来您的进程在其输出和/或错误流中写入了一些内容.他们的缓冲区溢出和进程阻塞.您应该读出并错误处理您的流程以避免这种情况.

                  Looks like your process writes something in its out and/or err streams. Their buffer overflow and process blocks. You should read out and err streams of your process to avoid this.

                  请参阅当 Runtime.exec() 获胜时"t"了解更多信息

                  这篇关于从 Java 的 processbuilder 执行的 ffmpeg 在 windows 7 下不返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:JavaExe 和 Java 应用程序作为与桌面交互的 Windows 系统服务 下一篇:使用 Launch4j 将 Java 应用程序固定到 Windows 7 任务栏

                  相关文章

                  <small id='9OZbA'></small><noframes id='9OZbA'>

                2. <tfoot id='9OZbA'></tfoot>

                  <legend id='9OZbA'><style id='9OZbA'><dir id='9OZbA'><q id='9OZbA'></q></dir></style></legend>

                    1. <i id='9OZbA'><tr id='9OZbA'><dt id='9OZbA'><q id='9OZbA'><span id='9OZbA'><b id='9OZbA'><form id='9OZbA'><ins id='9OZbA'></ins><ul id='9OZbA'></ul><sub id='9OZbA'></sub></form><legend id='9OZbA'></legend><bdo id='9OZbA'><pre id='9OZbA'><center id='9OZbA'></center></pre></bdo></b><th id='9OZbA'></th></span></q></dt></tr></i><div id='9OZbA'><tfoot id='9OZbA'></tfoot><dl id='9OZbA'><fieldset id='9OZbA'></fieldset></dl></div>
                        <bdo id='9OZbA'></bdo><ul id='9OZbA'></ul>