如何在android中编写Mp3剪辑器或切割器?
我正在编写一个应用程序,它将剪切正在播放的 Mp3 歌曲的部分。用户可以从歌曲的中间选择到下一个选择。目前我正在使用 MediaPlayer 播放音频文件,在选择用户时我必须开始录制播放的歌曲。
有人可以帮我提供有关播放歌曲录制的任何信息吗?
它类似于 Mp3 Cutter。
如果有人知道如何从 mp3 文件中提取音频帧,请告诉我。
谢谢 &问候, 苏曼
I am writing an application which will cut the part of the Mp3 song which is being played. User may select from the mid of the song to the next selection. Currently i am playing the audio file using the MediaPlayer and on selecting the user i have to start recording the playing song.
Will anyone please help me with any information you got regarding the recording of the playback song.
Its similar to Mp3 Cutter.
If anyone knows how to extract the audio frames from an mp3 file, please let me know.
Thanks & Regards,
Suman
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过研发研发研发和谷歌搜索谷歌搜索......
我发现,Android 不支持提取音频帧......
我们需要编写自己的剪辑器......
用于实现剪辑器
1) 稳定编解码器
2)获取编解码器的同步代码并提取帧...
3)现在尝试获取标记,然后提取标记之间的帧
注意:帧标记应与播放同步。
示例代码
After an R&D R&D R&D and googling googling googling.....
I came to know that, there is no support from the android for extracting the frames of the audio.....
We need to write our own clipper.....
For implementing the clipper
1) Steady the codec
2) Take the sync code of the Codec and extract the frames...
3) Now to try to get the marks and then extract the frames between the marks
Note: Frames mark should be in sync with the playing.
Example Code