音频文件准确地寻求 [英] Audio Files accurate seek to

查看:83
本文介绍了音频文件准确地寻求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该使用哪种音频格式以获得最佳的精确定位? (从偏移处播放歌曲) 我希望这可以精确到毫秒.

那可能吗?

解决方案

我可以说音频文件的格式很重要.我的长mp3文件有此问题.由于mp3文件不是为如此精确的搜索而设计的,因此您可以在更多详细信息

中查看此答案.

在我的情况下,mp3文件的比特率很低,为96Kps.并且VBR数据不正确,导致mp3文件在android上错误查找.

我的意图是制作可通过此文件精确搜索的android和IOS应用,但我找不到适合两者的正确格式.

对于IOS ,我使用了 MP3 Dias 并应用了自定义转换以删除和重建VBR

对于Android ,我将文件转换为m4a格式,并且运行良好.我使用了 Audacity 并安装了包含我提到的问题的文件示例

Which Audio format should I use to get the best accurate seek to? (play the song from an offset) I whant this to be accurate on the millisecond.

is that Possible?

解决方案

I can say that the format of the audio file matters. I had this problem with long mp3 file. As the mp3 files aren't designed for such accurate seeking you can check this answer for more details

In my case the bitrate of the mp3 file was low, It was 96Kps. and the VBR data wasn't correct which caused the mp3 file to seek wrongly on android.

My intent was to make android and IOS app that seeks accurately through this file but I failed to find the correct format that is suitable for both.

For the IOS, I used MP3 Diags and applied custom transformations to remove and rebuild the VBR

For Android, I converted the file to m4a format and it worked perfectly. I used Audacity and installed the FFmpeg package to be able to export to m4a format.

This is the file sample that contains the problem I mentioned

这篇关于音频文件准确地寻求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆