2017-08-02 4 views
0

を失敗した私はffmpegので音楽を展開したいのC#でのC#のavformat_openとffmpegの実行

私のC#コード、

proc2.StartInfo.FileName = "H:\\bin\\ffmpeg.exe"; 

      proc2.StartInfo.Arguments = "-lavfi amovie=input.mp3:loop=9 C:\\Users\\serhat-pc\\Desktop\\newinput.mp3"; 



      proc2.StartInfo.RedirectStandardError = true; 
      proc2.StartInfo.UseShellExecute = false; 
      if (!proc2.Start()) 
      { 
       Console.WriteLine("Error starting"); 
       return; 
      } 
      StreamReader reader = proc2.StandardError; 
      string line; 
      while ((line = reader.ReadLine()) != null) 
      { 
       Console.WriteLine(line); 
      } 

      proc2.Close(); 

しかし、私はこの問題を受けています:

ffmpeg problem

私はお友達を助けてください、ありがとう。

答えて

0

これは、同じファイルを連結することで実現できます。

コンテンツ(concat.txt)でテキストファイルを作成します。

ffmpeg -f concat -i concat.txt -c copy output.mp3 

file '/path/to/input.mp3' 
file '/path/to/input.mp3' 
file '/path/to/input.mp3' 
file '/path/to/input.mp3' 
file '/path/to/input.mp3'  
file '/path/to/input.mp3' 
file '/path/to/input.mp3' 
file '/path/to/input.mp3' 
file '/path/to/input.mp3' 

は、次のコマンドを使用します。

関連する問題