2016-11-04 64 views
0

您好,我使用ffmpeg爲windows phone找到了here。有了這個我試圖將.ts文件轉換爲.mp3文件,但我使用的命令不適用於此類轉換,我還注意到它適用於某些其他格式轉換,如tswma,tsogg等等。我曾嘗試的命令是.TS文件到.mp3在Windows Phone中使用FFMPEG

-i sourcewithfullpath.ts destinationwithfullpath.mp3 

-i sourcewithfullpath.ts 
-f destinationwithfullpath.mp3 

-i sourcewithfullpath.ts 
-c:a libmp3lame destinationwithfullpath.mp3 

-i sourcewithfullpath.ts 
-acodec mp3 destinationwithfullpath.mp3 

大多數這些給了我一個AccessViolationException同時呼籲ffmpeg.Run() 任何幫助表示讚賞。

+1

MP3編碼是通過外部庫,看起來不包含在你的ffmpeg版本。 – Mulvya

回答

0

我覺得Mulvya是正確的MP3編碼不包括在此FFMPEG構建但我想通了另一種方式不滿足確切的需要仍然是一個不錯的選擇

-i sourcewithfullpath.ts 
-f destinationwithfullpath.mp2 

FFMPEG不支持mp2格式,文件被轉換爲mp2音頻並更名爲mp3,它可以在windows phone中播放。請注意,mp2格式的壓縮比與mp3格式相比並不是那麼好,這意味着輸出文件的尺寸大大增加了將近一倍。

相關問題