c# - 在 windows phone 中使用 FFMPEG 将 .TS 文件转换为 .mp3

标签 c# silverlight windows-phone-8 ffmpeg

嗨,我正在使用 ffmpeg适用于已找到的 windows phone here .有了这个,我正在尝试转换 .ts文件到 .mp3文件,但我使用的命令不适用于这种类型的转换,我还注意到它适用于某些其他格式转换,例如 tswma , tsogg 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/

相关文章:

c# - DesignerProperties.IsInDesignMode 和 DesignerProperties.IsInDesignTool 之间有什么区别?

silverlight - 使用 WebClient() 从 Silverlight 访问 RSS 提要时出错

c# - pushChannel 在 Windows Phone 8.1 设备中始终为空(推送通知)

c# - 如何在 WPF 应用程序中动态生成标签、按钮、复选框和文本框

c# - LINQ to SQL context.GetChanges

java - C# 中关于 => 的不熟悉且奇怪的语法

c# - 如何从 WPF 中的数据网格中的组合框获取数据?

wcf - Silverlight 404 在启用 SSL 的服务上

windows - 启动 Windows Phone 模拟器时出现问题

c# - 播放SpeechSynthesizer时如何播放IMFMediaEngine背景音频