gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 23:27:12 25 4
gpt4 key购买 nike

嗨,我正在使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com