嗨,我正在使用 ffmpeg
适用于已找到的 windows phone here .有了这个,我正在尝试转换 .ts
文件到 .mp3
文件,但我使用的命令不适用于这种类型的转换,我还注意到它适用于某些其他格式转换,例如 ts
至wma
, ts
至ogg
ETC 。我尝试过的命令是
-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()
任何帮助表示赞赏。
最佳答案
我认为 Mulvya 是对的 MP3 编码不包含在此 FFMPEG
中构建但我想出了另一种不能满足确切需求的方法仍然是一个不错的选择
-i sourcewithfullpath.ts
-f destinationwithfullpath.mp2
FFMPEG
支持mp2
格式,文件被转换为mp2
音频并重命名为 mp3
,可以在windows phone 上播放。请注意 mp2
的压缩比格式不如mp3
格式,这意味着输出文件的大小要大得多,几乎翻了一番。
关于c# - 在 windows phone 中使用 FFMPEG 将 .TS 文件转换为 .mp3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40418589/