PDA

View Full Version : Blanking 10 frames audio


nnever2000
19th July 2008, 13:19
Ok people, I need help with this problem:
I have a video (XVid, MP3 ABR) with garbage in audio of the very first 10 frames. I want blank audio in that 10 frames without reencoding.

I tryed to cut completely these 10 frames (with AviDemux, copy audio and copy video) but after that audio goes out of synch.

Any ideas?

LoRd_MuldeR
19th July 2008, 15:11
Maybe you just make those frames "black" instead of cutting them out?

In Avidemux add the "MPlayer EQ2" filter, set brightness to "-1.00" and set saturation to "0.00".
Then make this filter partial, so only the frames 0 to 9 are effected...

BTW: Cutting frames should keep the audio in sync...

nnever2000
19th July 2008, 15:48
Maybe you just make those frames "black" instead of cutting them out?

In Avidemux add the "MPlayer EQ2" filter, set brightness to "-1.00" and set saturation to "0.00".
Then make this filter partial, so only the frames 0 to 9 are effected...

BTW: Cutting frames should keep the audio in sync...

It work! But I have to reencode all file video.

StickHorsie
22nd July 2008, 17:59
1. Get MP3 Direct Cut here (http://mpesch3.de1.cc/mp3dc.html#dwn). It's not very good looking, and sometimes a bit frustrating to work with, but it *does* do lossless simple MP3 editing.

2. Demux the MP3 audio, for instance with VirtualDubMod: Streams > Stream List > (select audio track) > Save WAV. Actually, the MP3 doesn't get saved as a WAV but as the original un-reencoded MP3, so just name the file "audio0.mp3" or anything like that. (Ignore the file header error message.)

3. Run MP3 Direct Cut and load the file. You can probably see the "garbage" rightaway. :D

4. Select the garbage part with your mouse, click Edit > Gain > Silence > OK.

5. Click Rew and Play to see if the garbage part is silenced correctly. If not, click Edit > Undo and go back to step 4.

6. Click File > Save all, and name the new file "audio1.mp3" or something like that.

7. Go back to VirtualDubMod, Streams > Stream List, select the audio track, click Disable, click Add, add the edited MP3 and click OK. Ignore the "file header" error message again.

8. Go to File > Save As, choose Direct Stream Copy in the pulldown menu (otherwise the whole video part will be reencoded), give your new video a file name and click Save.

9. That's it! :D

10. If the audio is out of sync, it's possible that the original audio had a fixed delay.This can be checked and restored with Yet Another AVI Info (available here (http://yaai.sourceforge.net/)).

Looks like a lot of work, but if you've done it a few times, you can easliy manage all this in 5 minutes or so. You can also use AviDemux (which I use a lot for video editing) for demuxing/remuxing of the audio, but if the MP3 file has audio with sharp, high-amplitude sounds (drum beats, gunshots, etc), these sounds sometimes get muffled when I use AviDemux for remuxing... no idea why.

nnever2000
25th July 2008, 13:16
1. Get MP3 Direct Cut here (http://mpesch3.de1.cc/mp3dc.html#dwn). It's not very good looking, and sometimes a bit frustrating to work with, but it *does* do lossless simple MP3 editing.

2. Demux the MP3 audio, for instance with VirtualDubMod: Streams > Stream List > (select audio track) > Save WAV. Actually, the MP3 doesn't get saved as a WAV but as the original un-reencoded MP3, so just name the file "audio0.mp3" or anything like that. (Ignore the file header error message.)

3. Run MP3 Direct Cut and load the file. You can probably see the "garbage" rightaway. :D

4. Select the garbage part with your mouse, click Edit > Gain > Silence > OK.

5. Click Rew and Play to see if the garbage part is silenced correctly. If not, click Edit > Undo and go back to step 4.

6. Click File > Save all, and name the new file "audio1.mp3" or something like that.

7. Go back to VirtualDubMod, Streams > Stream List, select the audio track, click Disable, click Add, add the edited MP3 and click OK. Ignore the "file header" error message again.

8. Go to File > Save As, choose Direct Stream Copy in the pulldown menu (otherwise the whole video part will be reencoded), give your new video a file name and click Save.

9. That's it! :D

10. If the audio is out of sync, it's possible that the original audio had a fixed delay.This can be checked and restored with Yet Another AVI Info (available here (http://yaai.sourceforge.net/)).

Looks like a lot of work, but if you've done it a few times, you can easliy manage all this in 5 minutes or so. You can also use AviDemux (which I use a lot for video editing) for demuxing/remuxing of the audio, but if the MP3 file has audio with sharp, high-amplitude sounds (drum beats, gunshots, etc), these sounds sometimes get muffled when I use AviDemux for remuxing... no idea why.

Uhm....... Anyway I have to reencode.

Thanks anyway

StickHorsie
26th July 2008, 23:45
Uhm....... Anyway I have to reencode.
I don't see why... the video was OK and the audio doesn't need reencoding if you remove the garbage with MP3 Direct Cut.

The only thing you have to do is split the audio and video (demuxing) and join them again (remuxing) after the audio has been edited... no reencoding necessary!