digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   VirtualDub: Bad frames how to cut out and keep audio in sync (http://www.digitalfaq.com/archives/encode/1806-virtualdub-bad-frames.html)

reman 12-10-2002 04:48 PM

Bad frames how to cut out and keep audio in sync
 
Hello All!

I have a DivX that has 7 bad frames about 75% into the video. Frames 81452-81458. Normally, I would delete them and finish up. HOWEVER, this DivX has VBR audio. :evil:

I normally save the VBR audio out as a wav and then convert it to an MP2 with BeSweet.

How do I handle this? Is it possible to duplicate frames on either side and REPLACE the bad frames? IE take frames 81449-81451 and replace 81452/53/54 then take 81459-62 and replace 81455/56/57/58? 8O :? :( 8O

kwag 12-10-2002 04:54 PM

There is a program called "AntiFreeze" that helps when there are bad frames on a AVI. Don't know if that would help. Here's the link: http://www.tac.ee/~prr/videoutils/

-kwag

reman 12-10-2002 05:03 PM

I will try that out. I did try AVIDeFreeze and I must say I do not understand how it works.

FOLLOWUP: I tried the DivX thing and it did nothing for VDub... still have that -100 bad frame(s) error. :cry:

Strange thing is that avi2mpg2_vfw will convert it and does not see the error. It loaded only the Video portion. :cry:

black prince 12-10-2002 09:01 PM

Hi Reman,

Here's an avs script that may help you:

LoadPlugin("E:\DVD Backup\MPEG2DEC2.dll")
#
video=avi2source("D:\Temp\avseq01.avi")
audio=WAVSource("D:\Temp\avseq01.wav")
#
part1=trim(AudioDub(video,audio),0,81452)
part2=trim(AudioDub(video,audio),81458,0)
#
clip1=part1+part2
#
# ------ Resize ------
BilinearResize(528,480)
TemporalSmoother(1,2)
AddBorders(0,0,0,0)


Extract the wav file with VirtualDub using uncompressed option. This
script should remove the bad frames and keep the audio in sync with
video. With Tmpgenc check advanced --> source range to see if the
frames have been removed. :)

-black prince

reman 12-10-2002 09:35 PM

First, THANKS! I will give that a try! BTW is there a AVS script glossary around?

Quote:

Originally Posted by black prince
# ------ Resize ------
BilinearResize(528,480)
TemporalSmoother(1,2)
AddBorders(0,0,0,0)-black prince

I have the following and was wondering if I still would use the TemporalSmoother line?
Quote:

BilinearResize(336,160,0,0,576,304)
#TemporalSmoother(2,2)
AddBorders(8,40,8,40)
Can the WAV file be an MP2 file?

reman 12-10-2002 10:48 PM

Okay, I found the following:

Quote:

FreezeFrame(clip, int first_frame, int last_frame, int source_frame)

The FreezeFrame filter replaces all the frames between first-frame and last-frame with a copy of source-frame. The sound track is not modified. This is useful for covering up glitches in a video in cases where you have a similar glitch-free frame available.
How do I use it to replace the 7 bad frames 8O 8O ?

black prince 12-11-2002 12:22 AM

Hi reman,

Try this link:

http://www.alamone.com/mizuiro/tools...reference.html

-black prince

urban tec 12-11-2002 12:24 AM

Hey Reman,
If I'm not mistaken "Nandub" handles vbr audio you can get it here it is a modifaction to Virtualdub so if you are familiar with vdub you wont have a problem with this.

reman 12-11-2002 04:07 PM

Thank you to everyone for their input! :D

I did solve the problem by getting AVIDefreezer to work. It "fixes" the bad frames by making them readable. However, the bad data problem is still in the frame as an area that has no detail. It can be 1 little block in the frame or large areas.

So, if you got a DivX that needs a few frames fixed...AVIDefreezer does work! :lol: 8) :lol:

SIDE NOTE: the finished output file is the whole video BUT NO audio.


All times are GMT -5. The time now is 06:15 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.