I have some WMA files from a live album (where lack of gapless is noticable and annoying). Somehow (I don't know how) the information necessary for gapless playback was damaged or never recorded properly, so these files play back with a small gap. I assume that gapless on WMA works roughly the same way as it does on MP3, i.e. a tag tells the decoder how many padding samples to ignore in the last frame. Is there any utility that can reconstruct this information by assuming any continuous run of zeros at the end of the last frame is padding?
I'm not aware that a gapless-info system exists for WMA. Although I may be wrong, as WMA is not something I follow very closely.
If you want to make it into a gapless CD, you can convert the WMA files to wav, trim leading and ending silence (and it won't be all actual zero-sample silence, so you'll need to look at the wavform), and then burn to an audio CD.
I'm not aware that a gapless-info system exists for WMA. Although I may be wrong, as WMA is not something I follow very closely.
If you want to make it into a gapless CD, you can convert the WMA files to wav, trim leading and ending silence (and it won't be all actual zero-sample silence, so you'll need to look at the wavform), and then burn to an audio CD.
On second thought I guess that compression artifacts would prevent the padding from being all zeros. I would be willing to do this manually, since we're only talking about ~20-30 files. I just need a way that doesn't involve transcoding.
On second thought I guess that compression artifacts would prevent the padding from being all zeros. I would be willing to do this manually, since we're only talking about ~20-30 files. I just need a way that doesn't involve transcoding.
Again, I think the only way to do this that "doesn't involve transcoding" (at least not to another lossy source) is to decode, clean the beginning and end "silence" from the wav file, and keep it as wav or FLAC.
Or just spring for the CD or Lame-encoded mp3's, as the monetary value on your time is probably worth more than what you'd pay for the CD or mp3's with gapless info.
gapless encoding is built into the WMA format. I'm not sure if ffmpeg-based players read the data or not. I *believe* it's stored at the end of the file because that's where other codec-related config data is stored.
gapless encoding is built into the WMA format. I'm not sure if ffmpeg-based players read the data or not. I *believe* it's stored at the end of the file because that's where other codec-related config data is stored.
I actually found out that the problem was foobar2000, not the files. Gapless works in Windows Media Player.