Quantcast VirtualDub: Bad Frames How to Cut Out and Keep Audio in Sync - digitalFAQ.com Forums [Archives]
  #1  
12-10-2002, 04:48 PM
reman reman is offline
Free Member
 
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
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.

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?
__________________
Thanks!
reman
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
12-10-2002, 04:54 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3  
12-10-2002, 05:03 PM
reman reman is offline
Free Member
 
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
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.

Strange thing is that avi2mpg2_vfw will convert it and does not see the error. It loaded only the Video portion.
__________________
Thanks!
reman
Reply With Quote
  #4  
12-10-2002, 09:01 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #5  
12-10-2002, 09:35 PM
reman reman is offline
Free Member
 
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
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?
__________________
Thanks!
reman
Reply With Quote
  #6  
12-10-2002, 10:48 PM
reman reman is offline
Free Member
 
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
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 ?
__________________
Thanks!
reman
Reply With Quote
  #7  
12-11-2002, 12:22 AM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hi reman,

Try this link:

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

-black prince
Reply With Quote
  #8  
12-11-2002, 12:24 AM
urban tec urban tec is offline
Free Member
 
Join Date: Nov 2002
Location: West Australia
Posts: 272
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #9  
12-11-2002, 04:07 PM
reman reman is offline
Free Member
 
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you to everyone for their input!

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!

SIDE NOTE: the finished output file is the whole video BUT NO audio.
__________________
Thanks!
reman
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Recording Video: Dropped Frames and Audio sync errors! the viking Video Capturing / Recording 19 01-06-2005 10:42 AM
VirtualDub: AVI audio sync problems christian000 Video Encoding and Conversion 5 07-21-2003 06:22 PM
Audio sync problem, but no bad frames in xvid? pixeldotz Video Encoding and Conversion 3 05-16-2003 11:12 AM
VirtualDub: Audio sync and bad frames in DivX J-Wo Video Encoding and Conversion 3 03-11-2003 07:31 PM
VirtualDub: Audio sync problems andybno1 Video Encoding and Conversion 3 07-30-2002 07:15 PM

Thread Tools



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