VideoHelp Forum




+ Reply to Thread
Results 1 to 22 of 22
  1. Member
    Join Date
    Dec 2003
    Location
    Norway
    Search Comp PM
    ok, up until now, I've been using vfapi reader to frameserve. but I've seen people say that it's bad, and that avisynth is to prefer. I think had something to do with bad conversion of some sort. so I was wondering if anyone could tell me how to do write a an aviscript for this purpose? I do the resizing and such within virtualdubmod and take care of the audio by itself.
    Quote Quote  
  2. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    What exactly are you doing ?

    I ask this because avisynth can do all that virtualdub does and more. If you are doing a resize and maybe a couple of filters, avisynth with do this faster than vdub can (up to 2 or 3 times faster). There seems little point using avisynth simply to frameserve to virtualdub. Do you then frameserve to anything else ?
    Read my blog here.
    Quote Quote  
  3. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    I'm assuming DVD to AVI given the forum and context of usage - my guess is using VFAPI on a .D2V file.

    If this is in fact the case, one then must say, why not rip to one big VOB and open that in virtualdub-MPEG2 or virtualdubmod directly ? No need to frameserve anything then
    If in doubt, Google it.
    Quote Quote  
  4. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    As said if you use any VDub filters, then there is no point in AVISynth. The reason for using AVISynth is to avoid a RGB24 colourspace conversion (costs encoding time and quality). Since VDub filters require converting to RGB24, there is no point. You just get DVD(YV12)-->AVISynth(YV12)-->VDub(RGB24)-->AVI(YV12) instead of
    DVD(YV12)-->VFAPI(RGB24)-->VDub(RGB24)-->AVI(YV12)

    No real difference. If instead you filter in AVISynth then the entire chain is kept in YV12 colourspace, decreasing encoding time and increasing quality.
    Quote Quote  
  5. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Chances are there's already an AVISynth filter that does what VDub filters do, just without the UI.
    Quote Quote  
  6. Member
    Join Date
    Dec 2003
    Location
    Norway
    Search Comp PM
    I do mainly two filters, null transform to crop, and resize to u guessed it resize. not sure if I could crop without a GUI.
    Quote Quote  
  7. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    If you know the exact dimensions you want to, absolutely you can without a GUI. In fact, AVISynth's resize is FASTER than VDub's.
    Quote Quote  
  8. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    Use Vdub to determine the exact dimensions, then use AviSynth to crop/resize.
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  
  9. Member
    Join Date
    Dec 2003
    Location
    Norway
    Search Comp PM
    k, thanks. I found a good guide for setting up a script and I should be able to get it working.
    Quote Quote  
  10. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Actually, FitCD's AVISynth script generator works extremely well for our purposes.
    Quote Quote  
  11. Member
    Join Date
    Dec 2003
    Location
    Norway
    Search Comp PM
    k, I messed around a bit with it, and I got a nice little script with crop and resize. but this is an almost 4 hour long movie that I want to cut to 3cd's. is there any way I can frameserve only selected frames of the movie from within the script or do I need to cut with virtualdubmod? I find the latter a bit akward as there is no real cuts in the movie, just blends.

    it would be nice to have 3 separate scripts only serving parts I want it to. any help is appreciated.
    Quote Quote  
  12. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Trim(startframenumber,endframenumber) should do the job.
    If in doubt, Google it.
    Quote Quote  
  13. Member
    Join Date
    Dec 2003
    Location
    Norway
    Search Comp PM
    wow, u're quick.
    can I use it twice(for the 2nd cd)?
    Quote Quote  
  14. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Make three scripts. Identical, bar this Trim() command.
    If in doubt, Google it.
    Quote Quote  
  15. Member
    Join Date
    Dec 2003
    Location
    Norway
    Search Comp PM
    k, I don't know what it means to bar this Trim() command.
    isnt the trimming command for cutting away stuff?
    then I need to trim twice for the 2nd cd. will the script allow for that?
    or did I misunderstand, that the trim command is for selecting the part u encode?

    sorry, I'm a bit tired now, maybe I'm missing the obvious.
    Quote Quote  
  16. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    The trim command is for stuff you want included. So for a 90,000 frame video cut into 3 your first script would have Trim(1,30000), your second script would have Trim(30001,60000) and your third script would have Trim(60001,90000) for example.
    If in doubt, Google it.
    Quote Quote  
  17. Member
    Join Date
    Dec 2003
    Location
    Norway
    Search Comp PM
    k, then we're on the same page. thanks buddy

    edit:

    just got to add that 0 is a frame too, in case someone else reads this. so it should be trim(0,30000)
    for audio's sake :P
    Quote Quote  
  18. Member
    Join Date
    Dec 2003
    Location
    Norway
    Search Comp PM
    ok, back again. having a slight problem with a script for a different movie. here's the script:

    LoadPlugin("g:\stuff\progs\dgindex\dgdecode.dll")
    mpeg2source("D:\taxi\taxi.d2v")
    Crop(2,128,-2,-126)
    LanczosResize(640,272)
    Trim(0,128255)

    I encoded this last night, but the final file still had black bars at the top and bottom of the movie. I used the numbers I got from looking at the movie in virtualdubmod's null transform filter crop options.

    what did I do wrong? the black bars dont show when I open it in virtualdubmod after applying the crop to the script, only on finished avi.
    Quote Quote  
  19. what did I do wrong? the black bars dont show when I open it in virtualdubmod after applying the crop to the script, only on finished avi.

    So open the finished AVI in VDubMod. If you don't see any black bars, then they're being added by your player on playback. If you see them in VDubMod, then you didn't crop properly. With that script, I'd guess all the black is gone.
    Quote Quote  
  20. Member
    Join Date
    Dec 2003
    Location
    Norway
    Search Comp PM
    it was the player, it normally doesnt do that. but I guess the included subs forced it to. thanks.
    Quote Quote  
  21. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    That aspect ratio is 2.35:1. Even on a widescreen TV the player has to add black bars to fill out the frame. I suspect is has little to do with the subs.
    Read my blog here.
    Quote Quote  
  22. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    Well if you have subs then the sub filter could be expanding to 16:9 or 4:3 by adding black bars. The idea is that it is better to expand and have the subs on the black instead of over the picture since you have the room.
    Quote Quote  



Similar Threads

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