VideoHelp Forum
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. Member
    Join Date: Jun 2011
    Location: GREECE
    Search PM
    media info:

    General
    ID : 1 (0x1)
    Complete name : C:\HDTV.ts
    Format : MPEG-TS
    File size : 3.21 GiB
    Duration : 53mn 44s
    Overall bit rate : 8 542 Kbps

    Video
    ID : 4113 (0x1011)
    Menu ID : 1 (0x1)
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : Main@L4.0
    Format settings, CABAC : Yes
    Format settings, ReFrames : 3 frames
    Format settings, GOP : M=4, N=32
    Codec ID : 27
    Duration : 53mn 43s
    Bit rate : 7 603 Kbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 fps
    Standard : Component
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Interlaced
    Scan order : Top Field First
    Bits/(Pixel*Frame) : 0.147
    Stream size : 2.85 GiB (89%)
    Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
    Transfer characteristics : BT.709-5, BT.1361
    Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

    Audio #1
    ID : 4352 (0x1100)
    Menu ID : 1 (0x1)
    Format : AC-3
    Format/Info : Audio Coding 3
    Codec ID : 129
    Duration : 53mn 44s
    Bit rate : 256 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Delay relative to video : -980ms
    Stream size : 98.4 MiB (3%)


    could somebody provide a good .avs script for this source?


    This is the script I used:

    LoadPlugin("E:\MeGUI_2112_x86\tools\ffms\ffms2.dll ")
    ffindex("C:\HDTV.ts", demuxer="lavf")
    FFVideoSource("C:\HDTV.ts", threads=1, fpsnum=25, fpsden=1)
    LoadPlugin("E:\MeGUI_2112_x86\tools\masktools-v2.0a48\mt_masktools-26.dll")
    Import("E:\MeGUI_2112_x86\tools\avisynth_plugin\Sr estore.avsi")
    bob(0,0)
    srestore()
    Spline36Resize(1280,720) # Spline36 (Neutral)
    LoadPlugin("E:\MeGUI_2112_x86\tools\avisynth_plugi n\FluxSmooth.dll")
    FluxSmoothST(7,7)

    This script ends up with 23.976 fps but I don't know if this should be the proper framerate....

    Thanks in advance.
    Quote Quote  
  2. Without seeing the source that script doesn't make much sense,...
    Why the whole bob&srestore ? Why not stay with the 25fps of the input? (is AVCHD/Blu-ray compatibility needed? Then why not go for 50fps?)
    Why the smoothing? (Is the source that crappy?)
    Quote Quote  
  3. Member
    Join Date: Jun 2011
    Location: GREECE
    Search PM
    I don't want 50fps, just to retain the fps the source has. Not looking for perfection, just a simple, good script.

    Here's a sample:

    http://www.sendspace.com/file/fkfgwp
    Quote Quote  
  4. Banned
    Join Date: Oct 2004
    Location: New York, US
    Search Comp PM
    -30-
    Last edited by sanlyn; 19th Mar 2014 at 03:39.
    Quote Quote  
  5. ffVideoSource() doesn't work well with someTS files. I remux to MKV first with MMG, then:

    Code:
    ffVideoSource("HDTV.mkv", fpsnum=25000, fpsden=1000) 
    AssumeTFF()
    QTGMC(preset="fast")
    Spline36Resize(1280,720)
    If you need 25 fps add SelectEven() or SelectOdd() to the end of the script. But you should leave it at 50 fps for smoother motion, especially with all that jerky camera work.

    Your source is 25 fps but it's interlaced -- so it has 50 different pictures per second.
    Attached Files
    Last edited by jagabo; 8th Mar 2014 at 20:06.
    Quote Quote  
  6. The main problem I had with your sample was decoding it correctly. Sometimes when I tried something a little demanding in the filtering department I started getting frames out of order. It happened with both the FFMS and LSmash indexers, so maybe it was just the sample and the way it was cut. Interlaced AVC can be a pain.

    I resized it to 720p, opened the script with MPC-HC and ran it fullsceen on my TV. I couldn't really pick the resized version from the original. 720p will also let you de-interlace to 50fps rather than 25fps, which would make the motion smoother. Most players should play 50fps video up to 720p.

    Code:
    LoadPlugin("C:\Program Files\MeGUI\tools\ffms\ffms2.dll")
    FFVideoSource("E:\HDTV.mkv", cachefile="D:\HDTV.mkv.ffindex", fpsnum=25, fpsden=1, threads=1)
    
    Load_Stdcall_Plugin("C:\Program Files\MeGUI\tools\avisynth_plugin\yadif.dll")
    Yadif(mode=1, order=-1) # "Yadif (with Bob)" in MeGUI
    
    Spline36Resize(1280,720)
    
    tr = 1 # Temporal radius
    mt = true # Internal multithreading
    lsb = false # 16-bit
    thSAD = 200 # denoising strength
    blksize = 16 # block size
    overlap = 4 # block overlap
    super = MSuper (mt=true)
    multi_vec = MAnalyse (super, mt=true, multi=true, blksize=blksize, overlap=overlap, delta=tr)
    MDegrainN (super, multi_vec, tr, mt=true, lsb=lsb, thSAD=thSAD, thSAD2=150)
    The QTGMC de-interlacing jagabo suggested is better than Yadif and I use it lots myself, but it's very slow. In this case I'd use Yadif simply because the video is 1080i and I've put off upgrading this PC for far too long.
    If you deinterlaced with QTGMC you wouldn't need the denoising I added, which I use a bit myself and stole from here (there's a link to the required plugins). You can generally leave it as is and increase/decrease the amount of denoising by changing the "thSAD" value. If you have Avisynth installed (not just the portable version MeGUI uses) you can put the plugins in the standard Avisynth plugins folder and they'll still auto-load regardless of whether MeGUI or another program is opening the script. That way, you don't need to load them in each script.

    My apologies to sanlyn for resizing before denoising, but this PC really is slow.
    Attached Files
    Last edited by hello_hello; 9th Mar 2014 at 05:22. Reason: Attached sample
    Quote Quote  
  7. Banned
    Join Date: Oct 2004
    Location: New York, US
    Search Comp PM
    -30-
    Last edited by sanlyn; 19th Mar 2014 at 03:39.
    Quote Quote  



Similar Threads