Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th January 2019, 08:07   #1  |  Link
YKefas
Registered User
 
Join Date: Jan 2018
Posts: 3
apply script without touching quality of video

does anyone know how to encode video without reducing quality.
i just want to apply the script below without reducing quality of the video and not making the video size too large from the original
Sorry bad english

Code:
core = vs.get_core(threads=19)

core.std.LoadPlugin("C:\Program Files (x86)\SVP 4 Dev\plugins64\svpflow1_vs.dll")
core.std.LoadPlugin("C:\Program Files (x86)\SVP 4 Dev\plugins64\svpflow2_vs.dll")

clip = clip.resize.Bicubic(format=vs.YUV420P8)

crop_string  = ""
resize_string = "core.resize.Bicubic(input,1280,720,filter_param_a=0,filter_param_b=0.75)"
super_params     = "{pel:1,scale:{up:0},gpu:1,full:false,rc:true}"
analyse_params   = "{main:{search:{coarse:{distance:-8},distance:0}}}"
smoothfps_params = "{gpuid:11,rate:{num:2,den:1},algo:13,mask:{area:50},scene:{blend:true}}"

def interpolate(clip):
    input = clip
    if crop_string!='':
        input = eval(crop_string)
    if resize_string!='':
        input = eval(resize_string)

    super   = core.svp1.Super(input,super_params)
    vectors = core.svp1.Analyse(super["clip"],super["data"],input,analyse_params)
    smooth  = core.svp2.SmoothFps(input,super["clip"],super["data"],vectors["clip"],vectors["data"],smoothfps_params,src=clip)
    smooth  = core.std.AssumeFPS(smooth,fpsnum=smooth.fps_num,fpsden=smooth.fps_den)
    return smooth

smooth =  interpolate(clip)

smooth.set_output()
maybe the real question is How to apply this script without touching quality of the video & not make video size too large from original video
source script: https://www.svp-team.com/forum/viewtopic.php?id=3244
YKefas is offline   Reply With Quote
Old 4th January 2019, 14:22   #2  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Re-encoding (other than lossless), even with a script that does nothing other than source the decoded frames, will always reduce quality to some extent. So your goal of "without touching quality" is unattainable.
videoh is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:20.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.