VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    I'm new to AVIsynth, so forgive me if this is an idiot question but when you have an AVS with commands for adjusting both the video and audio, how do you pass those to TMPGEnc?

    I can get TMPGEnc to accept the AVS file as the video input no worries but it always baulks at taking the AVS file as the audio input. I just get an error dialog that says it can't accept the AVS file as audio input. What am I doing wrong?

    Is it not possible to do a simultaneous encode of both streams (System (Video+Audio)) in TMPGEnc when using AVIsynth or something?
    Quote Quote  
  2. Member
    Join Date
    Sep 2002
    Location
    Australia
    Search Comp PM
    TMPGenc doesn't normally have a problem with taking the audio via the AVS file.

    I can only suggest that it doesn't like the format of the audio after it leaves Avisynth - what are the video & audio settings, and what is the avs script doing?
    Quote Quote  
  3. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    Originally Posted by bunyip
    TMPGenc doesn't normally have a problem with taking the audio via the AVS file.

    I can only suggest that it doesn't like the format of the audio after it leaves Avisynth - what are the video & audio settings, and what is the avs script doing?
    This is my script...

    Code:
    AVISource("D:\The O.C.\The O.C. S1E06 The Girlfriend.avi")
    ConvertToYUY2()
    ConvertFPS(25)
    EnsureVBRMP3Sync()
    ResampleAudio(44100)
    Normalize()
    ConvertToRGB24()
    This is what VDub has to say about the source file



    This is what AVIcodec has to say about the source file

    Quote Quote  
  4. Member
    Join Date
    Sep 2002
    Location
    Australia
    Search Comp PM
    The Normalize() command can be a problem with TMPGenc - try it without this first, if the problem still exists then remove the VBRMP3Sync command.
    Quote Quote  
  5. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    Originally Posted by bunyip
    The Normalize() command can be a problem with TMPGenc - try it without this first, if the problem still exists then remove the VBRMP3Sync command.
    Okay I'll try it without the Normalize but I can't get rid of the VBRMP3Sync. That's the only thing that is able to keep the audio in sync with the video on this particular AVI file.
    Quote Quote  
  6. It seems that there does appear to be a problem here.

    Tmpgenc (nor Main Concept) seem to want to take Avisource files with MP3 audio. VirtualDub and WMP an the other hand open them OK. It's nothing to do with the audio parameters either because it won't work even if they are all deleted.

    I've no idea if this is meant to be the case or just an incompatability with some encoders.

    There are two ways round it that I have found.

    1. Open the avs in Vdub and framserve to TmpgEnc

    2. Open the avi in VDub and save wave, then rename to mp3.
    You can then use the principals of the following script (and it does open the audio in Tmpgenc)

    LoadPlugin("c:\program files\avisynth 2.5.0\plugins\mpasource.dll")
    vid = avisource("D:\Capture 1\cap.avi",false)
    aud = mpasource("D:\Capture 1\cap.mp3",true).EnsureVBRMP3Sync.ResampleAudio(44 100)
    audiodub(vid,aud)

    I only tried a small file to get it to work but it should be OK on a full file.

    Maybe someone else can come up with a better way or maybe even know why it's not working in the first place?
    Quote Quote  
  7. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    Originally Posted by feenix
    It seems that there does appear to be a problem here.

    Tmpgenc (nor Main Concept) seem to want to take Avisource files with MP3 audio.
    No that's not true. I can open the AVI source file directly as the audio source into TMPGEnc, it's just that I can't open it via the AVS script file. I had wanted to open it via the script file to take advantage of the superior quality 48->44.1 resampling of AVS over getting TMPGEnc to do it.

    I've no idea if this is meant to be the case or just an incompatability with some encoders.

    There are two ways round it that I have found.

    1. Open the avs in Vdub and framserve to TmpgEnc
    Can't do that. It doesn't work as per this thread here: https://www.videohelp.com/forum/viewtopic.php?t=201413

    2. Open the avi in VDub and save wave, then rename to mp3.
    You can then use the principals of the following script (and it does open the audio in Tmpgenc)

    LoadPlugin("c:\program files\avisynth 2.5.0\plugins\mpasource.dll")
    vid = avisource("D:\Capture 1\cap.avi",false)
    aud = mpasource("D:\Capture 1\cap.mp3",true).EnsureVBRMP3Sync.ResampleAudio(44 100)
    audiodub(vid,aud)
    Whoa. Waaay too complicated I'm afraid.
    Quote Quote  
  8. DRP,

    When I said 'Avisource' I meant the avs script file NOT the avi file. I know TmpgEnc will open the avi file directly.

    Tmpgenc sample rate change works OK! Have you tried it yourself and found it to be lacking in quality or it's just what you've read? You can use the external SSRC program (which I think later versions of AviSynth can use it as well) so there should be no difference. Probably wouldn't solve your sync problem though

    As for the script being complicated! If you look closely it's very similar to yours really. Just added the mpasource.dll (which is easily downloadable)and parameter to handle the audio seperately. If you're going to use Avisynth a lot you probably will have to use different sorts of scripts eventually.

    The real answer is probably something we're both missing in as to why the avs won't load in TmpgEnc in the first place!

    Anyway Good luck in however you do it.
    Quote Quote  
  9. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    Originally Posted by feenix
    DRP,

    When I said 'Avisource' I meant the avs script file NOT the avi file. I know TmpgEnc will open the avi file directly.

    Tmpgenc sample rate change works OK! Have you tried it yourself and found it to be lacking in quality or it's just what you've read?
    No it's just what I've read. I watched something I converted with TMPGEnc last night and I couldn't hear anything lacking in the audio department at all. It sounded fine to me. I have the conversion set to High Quality in TMPGEnc and as you say it seems okay to me.
    Quote Quote  



Similar Threads

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