VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. I have been using vfapi to make an avi from a d2v file to go through cce, but I'm getting distortion and now I think vfapi is causing it. I am trying to use avisynth under win 2000(I have only had this distortion since upgrading to win 2000 about a week ago!). I keep getting an error when I play the avs file in media player. It says "the scripts return value was not a video clip". My script looks like this:

    loadplugin("c:\avisynth\mpeg2dec.dll")
    v=mpeg2source("c:\dvdfiles\movie\movie.d2v")

    I have double checked that the script is referencing the right file. CCE will not load it either. I am doing dvd to dvd, so these are all the lines I need. Do I have to include audio and dub parts, because my aduio is not a wav, and I don't want it in the file. Is there anything I am doing wrong? Also if the filename has a space can i use a space when referencing a file, and is this process case sensitive? Hey, I'm a newbie to avisynth !
    Quote Quote  
  2. take out the v= part in your script. Im not sure why you have that in there anyways.. heres a sample:

    LoadPlugin("F:\mpeg2dec.dll")
    Mpeg2source("G:\Sample Part 1.d2v")
    Crop(0,56,720,360)
    BilinearResize(480,296)
    AddBorders(0,92,0,92)
    ResampleAudio(44100)
    Quote Quote  
  3. Thanks man. I'm an idiot. It said that in the avisynth guide on the site, and I just put it in. Got it going now.
    Quote Quote  
  4. Originally Posted by Kdiddy
    take out the v= part in your script. Im not sure why you have that in there anyways.. heres a sample:
    I think it's worth noting that both methods are syntactically correct, it's just that one associates the video source with a user specified variable rather than an invisible default variable. In other words, if you leave the "v" in, you will have to modify all subsequent statements to apply to the variable "v", as in:

    v.Crop(0,56,720,360)
    v.BilinearResize(480,296)
    v.AddBorders(0,92,0,92)
    ResampleAudio(44100)

    In fact, it is necessary to do so if you want Avisynth to serve a complete stream (audio included), since you have to use the audiodub command.
    Quote Quote  
  5. Member
    Join Date
    May 2001
    Location
    Ramstein, Germany
    Search Comp PM
    Originally Posted by Kdiddy
    take out the v= part in your script. Im not sure why you have that in there anyways.. heres a sample:

    LoadPlugin("F:\mpeg2dec.dll")
    Mpeg2source("G:\Sample Part 1.d2v")
    Crop(0,56,720,360)
    BilinearResize(480,296)
    AddBorders(0,92,0,92)
    ResampleAudio(44100)
    The reason why that is there is to mux the audio and video that dvd2avi makes.

    your way is fine also but I prefer to encode half of a movie then the second half, instead of cutting it in the middle of the scene after encoding the whole thing. That way I can split it at a scene change say 40 min and encode that 40 min to fit a whole cd. then encode the other 42 min or so to fit the other cd perfectly.

    the useage of the v= argument is.

    v=mpeg2source("c:\movie.d2v")
    a=wavsource("c:\movie.wav")
    audiodub(v,a)

    The audio dub will mux the video (v) and the audio(a) together in one stream. because of the way that i do it it saves time for me on writing scripts and makes it a little easier for others to understand.

    if I were to do write scripts your way but still doing it my way it would be like this.

    for the video

    LoadPlugin("F:\mpeg2dec.dll")
    Mpeg2source("G:\Sample Part 1.d2v")
    Crop(0,56,720,360)
    BilinearResize(480,296)
    AddBorders(0,92,0,92)
    trim(0,65000)
    ResampleAudio(44100)

    wavsource("G:\Sample Part 1.wav")
    trim(0,65000)
    ResampleAudio(44100)

    It just makes sense for my needs to do it may way and not use 4 files for 2 halves of a movie.

    just to mention kdiddy's way does not handle audio you have to encode the whole movie then the audio then merge them, then cut them( not knowing the output size if the slice you are making. then doing it again for the other half also wasting megs of space that could have incresed your bitrate.

    his method is not bad its just that mine is more efficent and you can use a bitrate calc to find out the exact bitrate to fit your slice onto an 80 min cd.
    Quote Quote  
  6. @Shochan: Why create a script for each disc using trim commands when TMPGEnc and CCE will both let you specify source frame ranges and batch encode? Seems like the hard way to do cutting.
    Quote Quote  
  7. O, well I dont mux with avisynth, I do my audio lady, I have to have the resampleaudio command in there so that CCE works right with my AMD
    Quote Quote  



Similar Threads

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