VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Hello all!

    Well I just wanted to ask does anybody have a good efficent script to fix grains on the final encode. My group makes fansubs and even the subtitles are a bit grainy not to say the picture, here's the avisynth script;

    Code:
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TIVTC.dll")
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dgdecode.dll")
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\telecidehints.dll")
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\fieldhint.dll")
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrain.dll")
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\nnedi.dll")
    
    
    function Preset0(clip c) {
    #Name: Default
    c
    removegrain(mode=1)
    return last
    }
    
    v=AviSource("C:\Users\shorto\Desktop\enkoding\commandline\uverworld.avi")
    a=v.Trim(0,120)
    b=v.Trim(121,167)
    c=v.Trim(168,5647)
    d=v.Trim(5648,5783)
    
    b2=ImageSource("logo.png",pixel_type="RGB32")
    b8=ImageSource("logomini.png",pixel_type="RGB32")
    b3=Overlay(b,b2,mask=b2.ShowAlpha().Trim(0,46).FadeIO0(27),x=0,y=75)
    d2=Overlay(d,b8,mask=b8.ShowAlpha().FadeIn(27),x=130,y=260)
     
    a++b3++c++d2
    
    Spline36Resize(720,544)
    TextSub("C:\Users\shorto\Desktop\enkoding\commandline\karanew.ass")
    So the file is an .avi @ resulution 720x544. I'd like to have the subtitles sharp as well as the picture itself like it looks like in the Megui preview window. I tyed using Sharktooth's presets and making stuff in the scratchpad but I always get a grany, blurry picture.
    Quote Quote  
  2. Post before and after samples. But keep in mind that encoding an RGB 4:4:4 source with a 4:2:0 codec will always blur the colors:

    https://forum.videohelp.com/threads/294144-Viewing-tests-and-sample-files?p=1792760&vie...=1#post1792760
    Last edited by jagabo; 21st Mar 2010 at 05:49.
    Quote Quote  
  3. I'm guessing it's rather pointless posting only screencaps since when I took them the video looks practically like the original (the one with the text is the edited encoded one):

    Click image for larger version

Name:	bscap0243.jpg
Views:	487
Size:	57.4 KB
ID:	939Click image for larger version

Name:	bscap0235.jpg
Views:	513
Size:	60.8 KB
ID:	940

    Could it be the 720x544 resolution? Since when I play the video without fullscreen the picture is like in the screencaps but once poped into fullscreen the text and everything is fuzzy.
    Quote Quote  
  4. Originally Posted by shorto View Post
    when I play the video without fullscreen the picture is like in the screencaps but once poped into fullscreen the text and everything is fuzzy.
    Of course the video is fuzzy when displayed fullscreen. That's what happens when you enlarge any image.
    Quote Quote  
  5. Yeah but it only happens with the encode the raw is fine if i put it onto fullscreen.
    Quote Quote  
  6. What encoding settings? Post your log file

    You're using something really outdated if you are referring to "Sharktooth's" presets
    Quote Quote  
  7. This is what I'm using (xml);

    Code:
    <?xml version="1.0"?>
    <GenericProfileOfx264Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <Name>Unrestricted 2pass HQ</Name>
      <Settings>
        <EncodingMode>4</EncodingMode>
        <BitrateQuantizer>2500</BitrateQuantizer>
        <KeyframeInterval>250</KeyframeInterval>
        <NbBframes>3</NbBframes>
        <MinQuantizer>10</MinQuantizer>
        <MaxQuantizer>51</MaxQuantizer>
        <Turbo>true</Turbo>
        <V4MV>false</V4MV>
        <QPel>false</QPel>
        <Trellis>false</Trellis>
        <CreditsQuantizer>40</CreditsQuantizer>
        <Logfile>.stats</Logfile>
        <VideoName />
        <CustomEncoderOptions />
        <FourCC>0</FourCC>
        <MaxNumberOfPasses>3</MaxNumberOfPasses>
        <NbThreads>0</NbThreads>
        <QuantizerCRF>1000</QuantizerCRF>
        <EncodeInterlaced>false</EncodeInterlaced>
        <NoDCTDecimate>false</NoDCTDecimate>
        <PSNRCalculation>false</PSNRCalculation>
        <noFastPSkip>false</noFastPSkip>
        <NoiseReduction>0</NoiseReduction>
        <MixedRefs>true</MixedRefs>
        <X264Trellis>2</X264Trellis>
        <NbRefFrames>5</NbRefFrames>
        <AlphaDeblock>-1</AlphaDeblock>
        <BetaDeblock>-1</BetaDeblock>
        <SubPelRefinement>6</SubPelRefinement>
        <MaxQuantDelta>4</MaxQuantDelta>
        <TempQuantBlur>0</TempQuantBlur>
        <BframePredictionMode>3</BframePredictionMode>
        <VBVBufferSize>-1</VBVBufferSize>
        <VBVMaxBitrate>-1</VBVMaxBitrate>
        <METype>2</METype>
        <MERange>16</MERange>
        <MinGOPSize>25</MinGOPSize>
        <Profile>2</Profile>
        <Level>15</Level>
        <IPFactor>1.4</IPFactor>
        <PBFactor>1.3</PBFactor>
        <ChromaQPOffset>0</ChromaQPOffset>
        <VBVInitialBuffer>0.9</VBVInitialBuffer>
        <BitrateVariance>1.0</BitrateVariance>
        <QuantCompression>0.6</QuantCompression>
        <TempComplexityBlur>20</TempComplexityBlur>
        <TempQuanBlurCC>0.5</TempQuanBlurCC>
        <SCDSensitivity>40</SCDSensitivity>
        <BframeBias>0</BframeBias>
        <PsyRDO>1.0</PsyRDO>
        <PsyTrellis>0</PsyTrellis>
        <Deblock>true</Deblock>
        <Cabac>true</Cabac>
        <WeightedBPrediction>true</WeightedBPrediction>
        <NewAdaptiveBFrames>2</NewAdaptiveBFrames>
        <BFramePyramid>true</BFramePyramid>
        <ChromaME>true</ChromaME>
        <MacroBlockOptions>2</MacroBlockOptions>
        <P8x8mv>true</P8x8mv>
        <B8x8mv>true</B8x8mv>
        <I4x4mv>true</I4x4mv>
        <I8x8mv>true</I8x8mv>
        <P4x4mv>true</P4x4mv>
        <AdaptiveDCT>true</AdaptiveDCT>
        <SSIMCalculation>false</SSIMCalculation>
        <Lossless>false</Lossless>
        <QuantizerMatrix>Flat (none)</QuantizerMatrix>
        <QuantizerMatrixType>0</QuantizerMatrixType>
        <DeadZoneInter>21</DeadZoneInter>
        <DeadZoneIntra>11</DeadZoneIntra>
        <AQmode>1</AQmode>
        <AQstrength>1.0</AQstrength>
      </Settings>
    </GenericProfileOfx264Settings>
    Quote Quote  
  8. upgrade to a newer version, use better settings (e.g. subme 9 or 10), and/or a higher bitrate. I would lower psy-rd (or disable psy), and you can try lower AQ strength as well. Some content requires more bitrate (lots of movement, source complexity), if you pick an arbitrary value you might get poor results

    do you have to hardcode? it would look better with softsubs (e.g. .ssa in .mkv)
    Quote Quote  
  9. poisondeathray; once again you saved me fom my horrible encoding. I'm thinking I'm gonna have to start posting something other in my posts rather than just "thank you poisondeathray" . Once again tnx man!
    Quote Quote  



Similar Threads

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