VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Hi guys.

    I've got quite a few items I've recorded off my satellite box (VU+ Ultimo), that are stored as .ts files. I'm trying to convert these to XviD to save. I'm not too bothered about saving as x264 mkv or anything, as they're just children's programmes for my kid.

    So, I've managed to use ProjectX to demux the audio and video (and check for any errors in the stream). Then, used DGIndex to create a d2v file. I then created a script in notepad to load the file in to virtualdubmod. I could then load the audio stream, select the start and end points, and then choose xvid as output, and it worked fine. Below is a copy of the script used:

    Code:
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DGDecode.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\Decomb.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ColorMatrix.dll")
    mpeg2source("C:\Users\User\Desktop\Mill_Moll\demux\20130611 1742 - Tiny Pop - Milly Molly.d2v")
    Telecide(guide=2,post=0)
    BicubicResize(608,336)
    ColorMatrix(mode="Rec.709->Rec.601")
    This was on a cartoon, and seems to have given excellent results...

    However, I then tried doing it on another show (sooty if you must know ), which is not a cartoon, and at the end of the file, the credits scroll horizontally across the screen. Well, this came out really weird. Any example screenshot below:

    Click image for larger version

Name:	sooty_messed.jpg
Views:	386
Size:	188.3 KB
ID:	18628

    Now, I managed to create another script, which seems to have worked great, and resolved the weird credits, but it only gives an fps of 20, rather than 25. Here's a copy of that script:

    Code:
    mpeg2source("D:\Converting\Demux\20120618 1037 - CITV - Sooty.d2v")
    TFM().TDecimate()
    LanczosResize(608,336)
    ConvertToYV12()
    Now, can anyone give me any pointers as to how to change the fps to keep it at 25? I tried using AssumeFPS(25, 1, true) command in the script, but this just seemed to make it look like they were on speed! lol...

    So, any pointers anyone?

    Many thanks
    Quote Quote  
  2. assuming you want 25fps since your source is PAL content:
    TFM().TDecimate() is ment to IVTC a telecined source.
    Telecide acts on telecined progressive source and attempts to recreate progressive frames.
    both are not ment for PAL content.
    -> assuming you do this since your source is interlaced, you might want to use a deinterlacer instead of methods which are ment for telecined NTSC content.
    Quote Quote  
  3. Originally Posted by Selur View Post
    assuming you want 25fps since your source is PAL content:
    TFM().TDecimate() is ment to IVTC a telecined source.
    Telecide acts on telecined progressive source and attempts to recreate progressive frames.
    both are not ment for PAL content.
    -> assuming you do this since your source is interlaced, you might want to use a deinterlacer instead of methods which are ment for telecined NTSC content.
    Would you be able to give me an example of a script to use then please? As I have no clue really on the scripts, and all de-interlacing I tried didn't seem to make any difference...

    Sorry for being such a n00b, but I've spent ages trying to loads of different things, and this was the only one which gave me a decent result, but not correct! lol...

    Thanks
    Quote Quote  
  4. try a simple
    bob() #this will double the frame rate and frame count
    instead of
    TFM().TDecimate()
    to first see this effect really way due to the IVTC

    If that helps you can switch to in example Yadif (http://avisynth.org.ru/yadif/yadif.html) or another deinterlacer (see: http://avisynth.org/mediawiki/External_filters#Deinterlacing). Most people will probably prefer QTGMC, but it's a lot harder to setup than yadif.
    For Yadif:
    1. download Yadif and extract the yadif.dll into your avisynth plugins folder
    2. in your script simply call it through:
    yadif()
    Quote Quote  
  5. Originally Posted by lovelldr View Post
    Now, can anyone give me any pointers as to how to change the fps to keep it at 25?
    Don't follow TFM with TDecimate. Put another way, leave off TDecimate from the script as its use is almost always for NTSC IVTC decimation.

    But Selur is right - this material might not be meant for TFM or Telecide at all (both are field matchers), but a general deinterlacer (ones such as TDeint or Yadif). If you don't know how to tell, please post a ten second example from the source, one with steady movement.
    Quote Quote  
  6. Thanks for the replies guys...

    Looks like I've got it sussed by using the following script:

    Code:
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DGDecode.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\Decomb.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ColorMatrix.dll")
    Load_Stdcall_plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
    mpeg2source("D:\Converting\Demux\20120618 1037 - CITV - Sooty.d2v")
    yadif()
    Telecide(guide=2,post=0)
    LanczosResize(608,336)
    ColorMatrix(mode="Rec.709->Rec.601")
    Thanks a lot for all the help. Something so simple. I did try looking at de-interlacers, but obviously the ones I used were not the ones that do a good job, lol...

    Thanks again for the help
    Quote Quote  
  7. If the material is really interlaced (and not, for example, phase-shifted) and if it really needs a deinterlacer such as Yadif, then you don't want to add in a field-matcher such as Telecide afterwards as there are no fields to match. I don't know cartoons to be created interlaced. That's what these are, right? I suspect there's more here than meets the eye which is one reason a sample might be helpful.

    I guess you're using the ColorMatrix filter because your source is Hi-Def?
    Quote Quote  
  8. I agree, either replace:
    Code:
    yadif() Telecide(guide=2,post=0)
    with:
    Code:
    yadif()
    or provide a sample which shows why you think it is needed.
    Quote Quote  
  9. Originally Posted by manono View Post
    If the material is really interlaced (and not, for example, phase-shifted) and if it really needs a deinterlacer such as Yadif, then you don't want to add in a field-matcher such as Telecide afterwards as there are no fields to match. I don't know cartoons to be created interlaced. That's what these are, right? I suspect there's more here than meets the eye which is one reason a sample might be helpful.

    I guess you're using the ColorMatrix filter because your source is Hi-Def?
    Hi.

    to be honest, I am using the above script, as it is what I found online somewhere that someone recommended for conversion. I can't even remember where I found it. But the source is not HD. It's just SD recordings from TV. So I assume I don't need the ColorMatrix either then?

    Most of the items I am converting are cartoons, but there is mainly just this one that is not...

    Here's a sample I took just before the credits...

    Code:
    http://www34.zippyshare.com/v/60709262/file.html
    Cheers
    Quote Quote  
  10. normal interlaced sd mpeg-2 -> no ColorMatrix or Telecide needed,..
    Code:
    # loading non-standard filters
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DGDecode.dll")
    LoadCPlugin("C:\Program Files (x86)\AviSynth 2.5\pluginsyadif.dll")
    # loading source
    MPEG2Source("D:\Converting\Demux\20120618 1037 - CITV - Sooty.d2v")
    # deinterlacing; other Deinterlacers are possible, see: http://avisynth.org/mediawiki/External_plugins#Deinterlacing
    Yadif()
    # cropping, to remove the black border
    Crop(2,0,540,576)
    # scaling to end up with a 1:1 PAR, other Resizers are possible see: http://avisynth.org/mediawiki/Resize
    LanczosResize(704,400)
    return last
    Cu Selur
    Quote Quote  
  11. Originally Posted by Selur View Post
    normal interlaced sd mpeg-2 -> no ColorMatrix or Telecide needed,..
    Code:
    # loading non-standard filters
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DGDecode.dll")
    LoadCPlugin("C:\Program Files (x86)\AviSynth 2.5\pluginsyadif.dll")
    # loading source
    MPEG2Source("D:\Converting\Demux\20120618 1037 - CITV - Sooty.d2v")
    # deinterlacing; other Deinterlacers are possible, see: http://avisynth.org/mediawiki/External_plugins#Deinterlacing
    Yadif()
    # cropping, to remove the black border
    Crop(2,0,540,576)
    # scaling to end up with a 1:1 PAR, other Resizers are possible see: http://avisynth.org/mediawiki/Resize
    LanczosResize(704,400)
    return last
    Cu Selur
    Thanks for that, will give it a go in a sec.

    Can I ask though, looks like you took that from some sort of program that gave the output (possibly not, but it looks that way, if not, then thanks very much for the comments to help me out ). But, if it was a program, can I just ask which?

    Thanks lots again,

    David
    Quote Quote  
  12. I added some of the comments on my own, but yes, I used Hybrid (with AvisynthExtension) to generate the main part.
    What I basically did is:
    1. Download Hybrid install it and copy the content of the avisynthExtension in the Hybrid folder
    2. Started Hybrid
    3. Loaded your file
    4. Enabled "Crop/Resize->Main->Picture Crop"
    5. Ran "Crop/Resize->Main->Picture Crop->Auto crop"
    6. Enabled "Crop/Resize->Main->Pixel Aspect Ratio (PAR)->Convert output to PAR"
    7. Set "Crop/Resize->Main->Pixel Aspect Ratio (PAR)->Convert output to PAR" to "Square Pixel (1:1)"
    8. Set "Crop/Resize->Main->Picture Resize->Target resolution" to 704
    9. Set "Filtering->(De-)Interlace/telecine->Deinterlacer" to "Yadif (Avisynth)"
    10. Hit "Filtering->Avisynth->Show current Avisynth script"

    this gave me:
    Code:
    SetMemoryMax(768)
    SetMTMode(2,0) # change MT mode
    LoadPlugin("G:\Hybrid\avisynthPlugins\DGDecode.dll")
    LoadCPlugin("G:\Hybrid\avisynthPlugins\yadif.dll")
    # loading source
    MPEG2Source(d2v="H:\Temp\96523635ts_deb1536f480475f7d593219aa1afd74c_41.d2v")
    # deinterlacing
    Yadif()
    # cropping
    Crop(2,0,540,576)
    # scaling
    Spline36Resize(540,306)
    distributor()
    return last
    which I then adjusted to your paths.

    Cu Selur
    Quote Quote  



Similar Threads

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