VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hi. I'm trying to setup an avisynth script to convert .h264 to dvd that will open up in virtualdub But I keep getting "bela.avs does not have a video stream"

    I know it's probably simple but I keep banging my head to the wall...also, I'm wondering if I've loaded all required filters and plugins...here it is:

    # Created by AVSEdit
    # zerobyte01 1/14/2014

    loadplugin("c:\program files (x86)\avisynth 2.5\plugins\dgavcdecode.dll")
    loadplugin("c:\program files (x86)\avisynth 2.5\plugins\nicaudio.dll")
    loadplugin("c:\program files (x86)\avisynth 2.5\plugins\dgdecode.dll")
    #LoadVirtualDubPlugin("c:\program files (x86)\avisynth 2.5\vdubplugins\DShowInputDriver.vdplugin")
    #LoadVirtualDubPlugin("c:\program files (x86)\avisynth 2.5\vdubplugins\Matroska.vdplugin")
    avcSource("x:\DMXDFILES\Bella\bela.dga")
    Colormatrix(mode="rec.709->rec.601",clamp=0)
    Spline36Resize(704,480).AddBorders(8,0,8,0)

    NicAc3Source("X:\DMXDFILES\Bella\12audio.ac3")

    ######################################
    # [DSP: Amplify by 3 Db]
    ########################################
    AmplifyDb(3)

    ########################################
    # [DSP: Resample SSRC - SpeedUp 23.976->25]
    ########################################
    AssumeSampleRate(last, (AudioRate()*1001+480)/960).SSRC(AudioRate(last))

    ########################################
    # [DSP: Downmix - Stereo]
    ########################################
    # Store clip in variable
    c050cbf5802a84e2abeb8562ab5152f14=ConvertAudioToFl oat(last)
    # Define transformation function
    # Simple Stereo
    function f050cbf5802a84e2abeb8562ab5152f14(clip a) {
    flr = GetChannel(a, 1, 2)
    fcc = GetChannel(a, 3)
    lfe = GetChannel(a, 4)
    lfc = MixAudio(fcc, lfe, 0.2071, 0.2071)
    mix = MergeChannels(lfc, lfc)
    lrc = MixAudio(flr, mix, 0.2929, 1.0)
    blr = GetChannel(a, 5, 6)
    return MixAudio(lrc, blr, 1.0, 0.2929)
    }# Call function
    f050cbf5802a84e2abeb8562ab5152f14(c050cbf5802a84e2 abeb8562ab5152f14)


    ########################################
    # [Encoder: ffmpeg AC3 @ 384 kbps]
    ########################################
    6==Audiochannels(last)?GetChannel(last,1,3,2,5,6,4 ):last
    32==Audiobits(last)?ConvertAudioTo32bit(last):last
    Quote Quote  
  2. This is me again...Is it true that virtualdub only handles RGB or can it work with YUV files also?
    Quote Quote  
  3. Member DB83's Avatar
    Join Date: Jul 2007
    Location: United Kingdom
    Search Comp PM
    I can not help you with the script by why are you using virtualdub to process the script ?

    Vdub will output an avi file so you will still have to process that again for dvd.

    Why not load the original .h264 video (not the demuxed one) into avstodvd. That program will create a dvd for you. And you can edit the avisynth script within that program as neccessary.

    Others may have different suggestions.
    Quote Quote  
  4. VirtualDub can handle YUV input. If you use it for processing it will convert incoming YUV to RGB. I only use VirtualDub to test scripts before rendering with x264 CLI or HcGUI.
    Quote Quote  
  5. Originally Posted by phuture01 View Post
    "bela.avs does not have a video stream"
    .
    .
    return MixAudio(lrc, blr, 1.0, 0.2929)
    Where's the video in that return statement? Maybe that's not it (can't really understand what you're doing or why you're doing it), but if you want audio and video together you need an AudioDub line somewhere.

    When I convert these things for DVD I extract the audio, maybe converting it to something DVD compliant, and only add it back in when authoring. I'm assuming it's from a retail Blu-Ray and probably doesn't need any amplifying to begin with. Something like MKV2AC3 can normalize the volume, if necessary.

    And as DB83 asked, what are you doing in VDub anyway, if the goal is a DVD? Do you want to open the script and then save out the audio?
    Last edited by manono; 20th Jan 2014 at 22:13.
    Quote Quote  



Similar Threads