mrslacker
7th February 2005, 05:40
I have an mp3 track from an avi that has many errors. I can fix the mp3 with Besplit, but the resulting track length is 15 seconds shorter. As a result, there is poor sync with the video. Here is a sample of BeSplit's output near the problem area:
[01:17:27:066] Stream error : Sync found after 137 bytes
[01:17:27:154] Stream error : Sync found after 14098 bytes
[01:17:27:240] Stream error : Sync found after 25652 bytes
[01:17:27:369] Stream error : Sync found after 21029 bytes
[01:17:27:419] Stream error : Sync found after 5714 bytes
[01:17:27:531] Stream error : Sync found after 37962 bytes
[01:17:27:583] Stream error : Sync found after 14507 bytes
[01:17:34:632] Stream error : Sync found after 27460 bytes
[01:17:34:656] Stream error : Sync found after 2852 bytes
Needless to say, it's a pretty messed up source. AVIMux GUI stopped extracting at 1:17 of 1:33, and I had to use VirtualDub to demux the full track. How can I fix an mp3 in such a way that the bad frames are replaced with silence, so as to keep the original track length? Is this not a simple task, as it is with AC3 and mp2?
I can decode the original mp3 with lame.exe --decode or madplay, but the wav is still short, but only by a few seconds. Running the mp3 straight into BeSweet or ffmpeg (on the way to AC3) produces similarly shortened tracks. Note: BeSweet's "Transcoding..." time counter goes way past the actual duration to nearly 3 hours.
I think the solution is to somehow fix the mp3 by inserting silence, but I don't know how. Any suggestions?
[01:17:27:066] Stream error : Sync found after 137 bytes
[01:17:27:154] Stream error : Sync found after 14098 bytes
[01:17:27:240] Stream error : Sync found after 25652 bytes
[01:17:27:369] Stream error : Sync found after 21029 bytes
[01:17:27:419] Stream error : Sync found after 5714 bytes
[01:17:27:531] Stream error : Sync found after 37962 bytes
[01:17:27:583] Stream error : Sync found after 14507 bytes
[01:17:34:632] Stream error : Sync found after 27460 bytes
[01:17:34:656] Stream error : Sync found after 2852 bytes
Needless to say, it's a pretty messed up source. AVIMux GUI stopped extracting at 1:17 of 1:33, and I had to use VirtualDub to demux the full track. How can I fix an mp3 in such a way that the bad frames are replaced with silence, so as to keep the original track length? Is this not a simple task, as it is with AC3 and mp2?
I can decode the original mp3 with lame.exe --decode or madplay, but the wav is still short, but only by a few seconds. Running the mp3 straight into BeSweet or ffmpeg (on the way to AC3) produces similarly shortened tracks. Note: BeSweet's "Transcoding..." time counter goes way past the actual duration to nearly 3 hours.
I think the solution is to somehow fix the mp3 by inserting silence, but I don't know how. Any suggestions?