VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    Sep 2005
    Location
    Norway
    Search Comp PM
    Hi,

    I've got 2 avi files with the same resolution and both of them have 2 Ch VBR MP3 audio but the first file reports that it has 112kb/s bitrate and the other reports that it has 111kb/s bitrate. They were originally one file and now I need to put them back together so I can turn them into a dvd. I tried loading them up in VirtualDubMod and it gives me the VBR error where it tells me to rewrite the header or something. I click no on this message as proposed by the guide I'm following.

    Code:
    https://www.videohelp.com/forum/viewtopic.php?t=222898
    But then I can't append the other segment as it has a different average bitrate. So basically I don't know how to join them and make dvd compliant audio.

    thx in advance.

    -Fr33m4n
    Quote Quote  
  2. I suggest joining them in AviSynth.


    Darryl
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    or just encode both to two mpgs and join when you author to a dvd with for example tmpgenc dvd author.
    Quote Quote  
  4. Here's a sample script. Ignore the PAL to NTSC part unless you need that. Otherwise, write your own function that converts the framerate and size to your own liking.
    Code:
    # bitrate: 30 mins 9406 CBR/audio 384, 60 mins 9406 CBR/audio 384
    
    v1=DirectShowSource("c:\video\work\myvideo1.avi", 25)# 576x320/25 FPS
    v2=DirectShowSource("c:\video\work\myvideo2.avi", 25)# 576x320/25 FPS
    
    a1=WAVSource("c:\video\work\myvideo1.wav")
    a2=WAVSource("c:\video\work\myvideo2.wav")
    
    v=v1+v2
    a=a1+a2
    
    #v=AudioDub(v,a)
    #return v
    
    return vPALtoNTSC720x480i(v)
    
    # Converts PAL widescreen to NTSC 720x480i 
    function vPALtoNTSC720x480i(clip v)
    {
    	#v=v.addborders(0,60,0,60)# (non-anamorphic)
    	#v=v.addborders(0,4,0,4)# (anamorphic)
    	#return v
    
    	#input TFF or BFF
    	v=assumeTFF(v)
    	#v=assumeBFF(v)
    
    	v=converttoyuy2(v)# corrects interlacing artifacts
    	v=bob(v)
    
    	# resize and reinterlace
    	v=v.BilinearResize(720,480)# Size for DVD resoution
    	#v=v.ChangeFPS(59.94)# crisp but slightly jerky
    	v=v.ConvertFPS(59.94)# smoother but slightly blurry
    
    	#v=v.SeparateFields.SelectEvery(4,0,3)# Undo bob (BFF)
    	v=v.SeparateFields.SelectEvery(4,1,2)# Undo bob (TFF)
    
    	v=weave(v)
    
    	return v
    }
    Notice two commented lines (Audiodub and return). Uncomment those so you can load it into Virtual Dub and save the audio. Then comment them before sending to your encoder. Hope this help.


    Darryl
    Quote Quote  
  5. Member
    Join Date
    Sep 2005
    Location
    Norway
    Search Comp PM
    thx for the advice. I assume this is an avisynth script? I have never seen anything that advanced before so I'm just gonna assume it is correct. My source is PAL which is what I need so no framerateconversion is needed. Since that is the case is this the part that I need?
    Code:
    # bitrate: 30 mins 9406 CBR/audio 384, 60 mins 9406 CBR/audio 384
    
    v1=DirectShowSource("c:\video\work\myvideo1.avi", 25)# 576x320/25 FPS
    v2=DirectShowSource("c:\video\work\myvideo2.avi", 25)# 576x320/25 FPS
    
    a1=WAVSource("c:\video\work\myvideo1.wav")
    a2=WAVSource("c:\video\work\myvideo2.wav")
    
    v=v1+v2
    a=a1+a2
    
    v=AudioDub(v,a)
    return v
    And also since my source video is 608x272 what would I put in the area that is now 576x320? Furthermore I don't get the purpose of the first line of the code. It seems to have something to do with the audio but since it is commented out I assume it is not important or that it does not have an impact.
    Quote Quote  
  6. Actually you script should be:
    Code:
    v1=AviSource("c:\video\work\myvideo1.avi",false)
    v2=AviSource("c:\video\work\myvideo2.avi",false)
    v=v1+v2
    v=LanczosResize(v,704,448,0,0,608,272)
    v=AddBorders(v,8,64,8,64)
    
    a1=WAVSource("c:\video\work\myvideo1.wav")
    a2=WAVSource("c:\video\work\myvideo2.wav")
    
    a=a1+a2
    
    AudioDub(v,a)
    Hopefuly I don't made some errors. You must test the script opening it in VDubMod. If there are some scripting errors VDM would report them.
    And the resizing is for anamorphic video - you must set the encoder to encode 16:9.
    Quote Quote  
  7. Member
    Join Date
    Jan 2004
    Location
    United Kingdom
    Search Comp PM
    Your end result is a DVD so I suggest you go with Baldricks suggestion-I second it. This will help avoid possible sync issues with joined avi also.
    Quote Quote  
  8. Member
    Join Date
    Sep 2005
    Location
    Norway
    Search Comp PM
    Yeah, that kinda sounds simpler only think is I author in DVD-Lab pro and I'm not sure how to join them with that app or if it even can. What I would do is extract the wav from each file and then encode the video with CCE SP and the audio with AC3Machine but then I would have two mpv files and two ac3 files, so how do I go about joining those?
    Quote Quote  
  9. Member
    Join Date
    Jan 2004
    Location
    United Kingdom
    Search Comp PM
    Try this

    http://www.mediachance.com/dvdlab/Help/index.htm

    I'm no DLP expert. I have read in this forum before about this topic; not exactly sure where though. Try doing a search.

    I do recall that DLP sometimes gives a slight pause between clips. If you were using TDA (trialware) then i can help no problem-in fact most people here can because its a very straightforward authoring app and well worth keeping in your 'toolkit'.

    If you cannot find then try reposting with subject header something like "joining files in DVD Lab Pro"; that may bring out the DLP experts and there are a few here.
    Quote Quote  
  10. Hi-

    Much simpler would be the freeware Muxman. Add the first video, a new screen opens up allowing you to add the second video to create one complete video. Same with the audio. No pauses at the join spot.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!