VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 59
  1. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Hello,

    Question: I want to take some VOB files, cut out ranges of frames to make different videos, deinterlace using Gunnar Thallin's area based deinterlacer, then output to DivX using VirtualDubMod and avisynth without converting color spaces from the original. I've had read that usign DGIndex is the best way to get the avis from the VOB files, but does it keep them in the YV12 space? And is there an avisynth script I can use to do all of this easily? I actually haven't used AviSynth yet (I just downloaded it) but it seems to be the ultimate powerful video editing tool in conjunction with VirtualDubMod, but requires some significant practice. Thanks for any help.
    Quote Quote  
  2. If you do it all in avisynth, no internal vdub filters or plugins, you can keep the same colorspace. As soon as you use a vdub filter, you have to use "full processing mode" which causes a YV12=>RGB conversion from your VOB source. By using "fast recompress" and doing all your filtering with avs scripts, you avoid this extra colorspace conversion

    There's much better choices for deinterlacers, is there a reason why you wanted to use that one?

    A bit of a learning curve on avisynth, and I used to hate it, but it's great and well worth the time learning it.
    Quote Quote  
  3. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Thanks for the response, yeah actually this was sort of a continuation of the other thread where we were discussing deinterlacing of family guy episodes, before the topic started going in a different direction. Basically I wanted to use this filter because it seemed to work well with the mixed family guy footage. But after i typed this question, I realized that that filter in VDM will cause the color conversion. Honestly, I don't care that much about the color space conversions for these episodes, I was just sorta curious if it could be done without, in case I want to do it some time in the future with something else. Is there an equivalent filter to the area-based VDM filter in avisynth ? I'm still trying to wrap my head around all of the different programs and their uses, so avisynth basically uses it's own filters that are completely separate from VDM, right? Somehow that didn't compute about a hour ago.
    Quote Quote  
  4. if you were to do it without the colorspace conversion (ie. filtering with avs scripts), vdub/vdubmod in this scenario is just used as a gui for the encoder, that's it's only function

    Is there an equivalent filter to the area-based VDM filter in avisynth ?
    Yep, it's ported to avisynth based on the vdub filter, but is a very poor filter to use (even the author says so...). It has been replaced by "smoothdeinterlacer", which is still poor by today's standards
    http://www.guthspot.se/video/AVSPorts/SmoothDeinterlacer/

    There is no sane reason why you should be using these old filters, the quality is just that bad. Just search for comparisons of deinterlacers and you will see what I mean. These are at least 5-7 years old. There are some comparisons on videohelp, but other websites as well. (But then again , that source has a non standard pattern, so there might be a reason... I wouldn't know unless looking at it)

    so avisynth basically uses it's own filters that are completely separate from VDM, right?
    yes, they are usually much more powerful, many more choices, and much more configurable
    Quote Quote  
  5. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    I have read that deinterlacing site 100fps.com like 100 times, and I'm aware that it's not the best method in the world. I've also read the author's own review of it. However, I had mentioned in the other thread that this type of blending was how the directshow WinDVD MPEG2 decoder does it in WMP, and i actually like the way it looks for the animation used in family guy. As has been said over and over, different deinterlacing methods work well depending on the footage and the watcher's taste, and smooth deinterlace still shows somewhat jagged edges where there is motion in this case. I was just curious if this same filter existed in AviSynth.
    Quote Quote  
  6. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Ahhh, ok just found the dll. Will now have to figure out how to use it.
    Quote Quote  
  7. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Hmmm, looks like this filter only works in RGB space?

    Usage:

    loadplugin("area.dll")
    ConvertToRGB32()
    Area(deint=10,edge=20,blend=true,show=false)
    Quote Quote  
  8. http://forum.doom9.org/showthread.php?s=&threadid=46161

    I would try TDeint(mode=1) or Yadif(mode=1). Both of those are smart bobs (30i -> 60p). And, as mentioned before, TempGaussMC_beta1().

    thalin.avi
    tempgauss.avi
    Quote Quote  
  9. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    I am seriously impressed with TempGauss, I just don't know if my portable DVD player will play 60 fps DivX files. how much larger are they on average than their 30fps counterparts?

    Also, jagabo, I used the area based filter from the link you provided in AviSynth, and it's giving me that same chroma interlacing problem in the blend we were talking about before (the reason I switched to VirtualDubMod). What's up with that?
    Quote Quote  
  10. Originally Posted by jieve
    I am seriously impressed with TempGauss, I just don't know if my portable DVD player will play 60 fps DivX files.
    Then decimate them down to 30 or 24 fps.

    Originally Posted by jieve
    how much larger are they on average than their 30fps counterparts?
    Not so much larger. Duplicate frames require very little bitrate in Xvid.

    Originally Posted by jieve
    Also, jagabo, I used the area based filter from the link you provided in AviSynth, and it's giving me that same chroma interlacing problem in the blend we were talking about before (the reason I switched to VirtualDubMod). What's up with that?
    Add ConvertToYUY2(interlaced=true) to the end of your script.

    Can you provide a short representative sample of your source? You can use DgIndex to mark a short section and demux it.
    Quote Quote  
  11. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Added ConverttoYUY2 and it didn't change anything, here's a pic.

    [/img]

    Also, any quick and dirty tips on how to use the TempGaussMC_beta ? I downloaded it, along with the other requested plugins.

    Quote Quote  
  12. What is your script for handling the MPEG source? It shouldn't be doing that. It should look something like:

    Code:
    Load_Stdcall_plugin("C:\Program Files\AviSynth 2.5\plugins\yadif.dll")
    
    MPEG2Source("VTS_01_6.d2v")
    Yadif(mode=1, order=1) # mode=0 gives 30 fps, 1 give 60 fps, order=0 for BFF, 1 for TFF
    # at this point you will have progressive YV12 which isn't a problem for
    # VirtualDub or Mod so there's no need to convert to YUY2
    Code:
    import("C:\Program Files\AviSynth 2.5\plugins\TempGaussMC_beta1.avs")
    
    MPEG2Source("VTS_01_6.d2v")
    AssumeTFF() #or AssumeBFF()
    TempGaussMC_beta1()
    TDecimate(mode=7, rate=23.976) # or 29.97, if necessary
    # at this point you will have progressive YV12 which isn't a problem for
    # VirtualDub or Mod so there's no need to convert to YUY2
    Did you set DgIndex to honor pulldown flags?
    Quote Quote  
  13. If you recall from the original thread, https://forum.videohelp.com/post1993715.html
    Family Guy is a mix of hybrid & blends. I don't think a "normal" script will work. You might need to add in some restore or deblend functions. It maybe that some of the non standard deinterlacers work better on this material, but Jieve still hasn't posted a video sample
    Quote Quote  
  14. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Actually I think it was set to ignore pulldown flags, because when I went through the entire list of VOB files it made no difference whether they were honored or not.

    I used that tempgauss code, but I got the following Avisynth read error: CAVIStreamSynth: Unknown System Exception 0xc000001e at 0x3703394 down in the lower corner of VDM.

    Heres' the script for TempGaussBeta:

    loadplugin("C:/Program Files/DGMPGDec 1.5.5/DGDecode.dll")
    import("C:\Program Files\AviSynth 2.5\plugins\TempGaussMC_beta1.avs")

    MPEG2Source("I:/FamilyGuyStream/FamilyGuyDisc.d2v")

    AssumeTFF()
    TempGaussMC_beta1()

    Info()

    I don’t think the fact that it is a hybrid is an issue for the deinterlacing, because I’ve been able to get good results using the same area filter in VirtualDubMod. I only get the weird chroma issues when using the area filter in AviSynth. Here’s the code:


    loadplugin("C:/Program Files/DGMPGDec 1.5.5/DGDecode.dll")
    loadplugin("C:/Program Files/AviSynth 2.5/plugins/area.dll")

    MPEG2Source("I:/FamilyGuyStream/FamilyGuyDisc.d2v")

    ConvertToRGB32()
    Area(deint=10,edge=20,blend=true,show=false)

    ConverttoYUY2(interlaced=false)

    I put false because it should be progressive at this point, but either way I get the same result.
    Quote Quote  
  15. Originally Posted by jieve
    Code:
    loadplugin("C:/Program Files/DGMPGDec 1.5.5/DGDecode.dll")
    loadplugin("C:/Program Files/AviSynth 2.5/plugins/area.dll")
    
    MPEG2Source("I:/FamilyGuyStream/FamilyGuyDisc.d2v")
    
    ConvertToRGB32()
    Area(deint=10,edge=20,blend=true,show=false)
    
    ConverttoYUY2(interlaced=false)
    Ah, your problem is the ConvertToRGB32(). It should include interlaced=true, otherwise it will make the same mistake as VirtualDub. No need for the ConvertToYUY2 at the end.

    By the way, earlier I thought you were using Gunnar Thalin's Deinterlace Smooth. That's why I posted 60 fps conversions. I realize now you're using the Area Based filter so you would get 30 fps.

    Also, try this simple script. It will look almost exactly like Thalin's Area Based deinterlace:

    Code:
    loadplugin("C:/Program Files/DGMPGDec 1.5.5/DGDecode.dll")
    MPEG2Source("I:/FamilyGuyStream/FamilyGuyDisc.d2v")
    Blur(0, 1.0)
    Sharpen(0, 0.7)
    Quote Quote  
  16. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Exactly, I noticed just before I got your post that everything had blue and red lines in it, so it had to be the conversion. Works great now. I tried both scripts, they look very similar, except I think the area based keeps the entire picture a little bit sharper in general. I want to try that TempGaussBeta, any idea what the error message meant that I got?
    Quote Quote  
  17. Originally Posted by jieve
    Exactly, I noticed just before I got your post that everything had blue and red lines in it, so it had to be the conversion. Works great now. I tried both scripts, they look very similar, except I think the area based keeps the entire picture a little bit sharper in general.
    Yes, the simple blur/sharpen will be a little less sharp. In real world video it will lose some small details but with Anime it's not bad. You can increase the sharpen but you'll get halos.

    Originally Posted by jieve
    I want to try that TempGaussBeta, any idea what the error message meant that I got?
    You'll have to include a bunch more Avisynth filters. I'm using the one from this link:

    https://forum.videohelp.com/topic354397.html#1872517

    From the script:

    Code:
    #   REQUIRED PLUGINS: 
    #   - MVTools
    #   - RemoveGrain + Repair
    #   - MaskTools v2
    #   - NNEDI / EEDI2 / Yadif , depending on which EdiMode you want to use
    Quote Quote  
  18. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    I have all of those dlls installed, it doesn't say that I'm missing any of them, it just won't display anything in the video display panels and gives me the error I posted above down in the lower left corner.
    Quote Quote  
  19. Take out the RemoveGrainSSE2.dll , RemoveGrainSSE3.dll and all the others RemoveGrain "type" .dlls, leaving only RemoveGrain.dll
    Quote Quote  
  20. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Worked like a charm. It is slow, but went through some frames and I'm really impressed. I'll try encoding with it tomorrow.
    Quote Quote  
  21. Yes, TempGauss is about 1/50 the speed of the simpler deinterlacers.
    Quote Quote  
  22. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Ok, so what's the best way to add audio back into the mix after deinterlacing? I would like to convert the audio from ac3 to mp3, using procoder I noticed that the volume was a little down though, I remember someone saying it had to do with converting 5 tracks to 2? Anyway, what should I add to the script to accomplish this? Also, I used trim to cut out only some frames that I wanted from the d2v file, I'm assuming I'd have to do the same to the audio?
    Quote Quote  
  23. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Actually is there any real reason to convert to mp3? Is there a significant file size savings over ac3? Or should I just re-add the audio to the stream? It seems that I'm going to need to convert in the audio in another application, like winamp or something. Is this correct?
    Quote Quote  
  24. Originally Posted by jieve
    Actually is there any real reason to convert to mp3? Is there a significant file size savings over ac3?
    It depends on the bitrate. I usually find that the audio is a small part of the total file size (typically 1/5 to 1/10 the total file size, I don't use low quality video settings) so I just leave it AC3.

    Originally Posted by jieve
    Or should I just re-add the audio to the stream? It seems that I'm going to need to convert in the audio in another application, like winamp or something. Is this correct?
    I convert AC3 to MP3 with VirtualDub and AC3 ACM (downmixed to stereo). AC3 levels are typically about -20 dB. When converting to MP3 I give it at least a 10 dB boost.
    Quote Quote  
  25. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Hmmm, when I try to encode using tempgauss and save as an avi in fast recompress mode with divx 6.8 i get the error Conversion Error: Source Image Format is not acceptable.
    Quote Quote  
  26. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Hmmm, I have AC3ACM plugin installed, and was able to use it to add the full audio stream back in, but how do I convert to MP3 and how do I cut it in avisynth to match the trimmed clip? Sorry for all the "how-to" questions.
    Quote Quote  
  27. Audio -> Full Processing Mode
    Audio -> Conversion (if necessary)
    Audio -> Volume...
    Audio -> Compression (LAME ACM, or other MP3 encoder)

    Trimming to match what you did before is problematic. I usually use Avisynth to load the video (untrimmed), add the untrimmed audio with Audio -> Audio From Another File, trim in VirtualDub, then encode audio and video at the same time.
    Quote Quote  
  28. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Wait a minute... why do I not have an audio menu in VDM?! I take it I'm supposed to?
    Quote Quote  
  29. In VirtualDubMod it's Streams -> Stream List -> Add...
    Quote Quote  
  30. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Jagabo, I want to make this entire process as simple as possible without having to go through like 20 steps to paste things back together. Let me start from the beginning, I figured the easiest and cleanest way would be to use AviSynth, since i can pretty much do everything from there except the compression.

    1) So I take the VOB files, and make a very long stream of video (d2v) and separate audio files (ac3) using DGIndex.

    2) I create an AviSynth script which opens the d2v video, add the audio track that I want back in (ac3), trim the frames that I want (which includes the audio), apply TempGaussMC_Beta, in this order. Then I open it in VirtualDubMod. Is this the best way? If I use the trim command, will it trim both audio and video?

    3) I use virtualdubmod in fast recompress for the video using DivX codec, and full processing for the audio, in order to convert the audio to mp3. I save the file as an AVI with 1 frame a/v interleave. I've installed the AC3ACM codec, but when I try to convert the audio it says no codec found to decompress ac3 audio. Should I use the NicAudio.dll plugin in AviSynth add the audio before using TempGauss? Does it matter?
    Quote Quote  



Similar Threads

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