Concatenating MP3 files

强颜欢笑 提交于 2019-12-12 04:09:04

问题


Seeing as how MP3 frames are (mostly) independent units, I thought it would work well to simply concatenate several tagless MP3 files together in order to merge them losslessly.

However, as it seems, many player programs (including mplayer and mpd) seem to be detecting the file length in some way that I cannot find documentation for, and only see and play the part corresponding to the first of the files I concatenated.

Whatever this information is, I'm sure it can't be too hard to write a program to remove and then rebuild it, but I have no clue what it is. Does anyone know?

Just to make sure: Yes, I removed the ID3 tags of all the files.


回答1:


Ah. I found the mp3val program, which I tried running at the resultant file after concatenation, and it told me that the file contains a "Xing header" which, while masquerading as an empty data chunk, apparently contains redundant information about the number of frames and length of the file.

It seems to be made for VBR files, but these CBR files contain it nonetheless. Either way, Google does point to a lot of information about the Xing header, which appears to be what I need.



来源:https://stackoverflow.com/questions/11597573/concatenating-mp3-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!