PDA

View Full Version : Bad block (?) in MPA stream


DarkFoon
13th August 2005, 01:35
There is a bad block (that makes itself known by a loud "screech") in the middle of my audio, and whenever I try to re-multiplex the audio and video streams, all multiplexing programs I have tried stop the audio at the bad block, so half of the project is silent.

Is there a program I can use to fix the bad block? I don't have the original version of the file anymore. (I used a lossless editor to trim out part of the file, which I believe is the cause of this audio glitch[Nanocosmos MPEG editor Hauppauge edition])
I don't want to re-encode my audio because the quality degradation would ruin the project.

file stats:
mpeg1 layer 2
384 kbps
joint-stereo

thanks!

mic
13th August 2005, 21:32
Personally I usually take the quality hit, editing the mpa in Soundforge, but that's me. FWIW, I don't think all that much additional data will be lost, because the stuff that can go, already has.

Only way I can think of to eliminate a re-encode would be if you're doing to DVD, split the video and audio when cutting the bad section, then have the videos play in sequence. In theory you might be able to splice in a patch (either repair or silence), but I think the timing might be difficult.

DarkFoon
14th August 2005, 15:35
well, I did just re-encode the file. After trying a bunch of different apps (one of which actually proved useful in a completely different context) I decided that the loss of quality would be worth less than the hassle of trying to fix it without re-encoding.

I don't think all that much additional data will be lost, because the stuff that can go, already has.

Actually, this is exactly what I was worried about: see, if the encoder already removed the unnoticeable data, then re-encoding it would force the encoder to remove noticeable data. See what I'm saying?
Because the encoder isn't smart, it only sees the input audio as uncompressed waveform, including the artifacts introduced by the first encoding, so when it encodes the file, it also codes into the distortion from the first, and adds its own, thus amplifying the distortion and lowering the quality of the file (actually what it's doing is adding quantization noise).
Just for fun, I took a commercially purchased CD, and ripped one of the tracks to mp3 320kbps. Then I re-encoded the file multiple times to 320kbps, and I listened to the degradation at each level. It's quite suprising!

anyways, sorry for the novella-post. I've been rather chatty as of late when posting.