在windows phone中使用FFMPEG将.ts文件转换为.mp3

本文关键字:文件 ts 转换 mp3 FFMPEG phone windows | 更新日期: 2023-09-27 18:16:39

嗨,我正在使用ffmpeg的windows手机,这是在这里发现的。我试图将.ts文件转换为.mp3文件,但我使用的命令不适用于这种类型的转换,我还注意到它适用于某些其他格式转换,如tswma, tsogg等。我尝试过的命令是

 -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

大多数在调用ffmpeg.Run()时会给我一个AccessViolationException任何帮助都是感激的。

在windows phone中使用FFMPEG将.ts文件转换为.mp3

我认为Mulvya是正确的MP3编码不包括在这个FFMPEG构建中,但我找到了另一种不满足确切需要的方法,仍然是一个很好的选择

-i sourcewithfullpath.ts 
-f destinationwithfullpath.mp2

FFMPEG不支持mp2格式,文件被转换为mp2音频和重命名为mp3,它是可在windows手机播放。请注意,mp2格式的压缩比与mp3格式相比不是那么好,这意味着输出文件的大小要大得多,几乎是两倍。