Teki
14th May 2014, 19:44
Hello :)
I have some anime series with a lot of red color in 1080p, some are 10bit. I want to re-encode them to 720p in 4:2:2 10bit. In other encodes i used dfttest() (http://forum.doom9.org/showthread.php?t=132194) and aSharp() (http://forum.doom9.org/showthread.php?t=38436). aSharp work only on YV12 luma. dfttest is very slow, but i like them both ;) (maybe you have something different, which works better)
My AviSynth script is very simple.
LoadPlugin("asharp.dll")
LoadPlugin("dfttest.dll")
<input>
dfttest(sigma=24)
ConvertToYV12()
aSharp(1,2,-1)
Lanczos4Resize(1280,720)
I searched in internet a lot, and found this
FFVideoSource(input.mkv,fpsnum=60000,fpsden=1001)
#Convert to Stack16 for processing
Dither_convert_8_to_16()
#Convert to 4:2:2 (if interlaced, SeperateFields and Weave must be used)
#SeparateFields()
w = Width()/2
h = Height()/2
u = UToY8().Dither_resize16(w, h, kernel="spline36", src_left=0, u=1, v=1)
v = VToY8().Dither_resize16(w, h, kernel="spline36", src_left=0, u=1, v=1)
YToUV(u, v, last)
#Weave()
#Convert to 10-bit and output
Dither_quantize(10,reducerange=true)
Dither_out()
#Example command to save as v210 MOV for BM Shuttle playback
#avs2yuv -raw -csp I422 output.avs - | ffmpeg -y -f rawvideo -pix_fmt yuv422p10le -s widthxheight -r framerate -i - -c:v v210 output.mov
#For testing only (8-bit output)
#DitherPost()
How to "integrate" this script with my and use in MeGUI to got what i want?
(sorry if my english is bad)
I have some anime series with a lot of red color in 1080p, some are 10bit. I want to re-encode them to 720p in 4:2:2 10bit. In other encodes i used dfttest() (http://forum.doom9.org/showthread.php?t=132194) and aSharp() (http://forum.doom9.org/showthread.php?t=38436). aSharp work only on YV12 luma. dfttest is very slow, but i like them both ;) (maybe you have something different, which works better)
My AviSynth script is very simple.
LoadPlugin("asharp.dll")
LoadPlugin("dfttest.dll")
<input>
dfttest(sigma=24)
ConvertToYV12()
aSharp(1,2,-1)
Lanczos4Resize(1280,720)
I searched in internet a lot, and found this
FFVideoSource(input.mkv,fpsnum=60000,fpsden=1001)
#Convert to Stack16 for processing
Dither_convert_8_to_16()
#Convert to 4:2:2 (if interlaced, SeperateFields and Weave must be used)
#SeparateFields()
w = Width()/2
h = Height()/2
u = UToY8().Dither_resize16(w, h, kernel="spline36", src_left=0, u=1, v=1)
v = VToY8().Dither_resize16(w, h, kernel="spline36", src_left=0, u=1, v=1)
YToUV(u, v, last)
#Weave()
#Convert to 10-bit and output
Dither_quantize(10,reducerange=true)
Dither_out()
#Example command to save as v210 MOV for BM Shuttle playback
#avs2yuv -raw -csp I422 output.avs - | ffmpeg -y -f rawvideo -pix_fmt yuv422p10le -s widthxheight -r framerate -i - -c:v v210 output.mov
#For testing only (8-bit output)
#DitherPost()
How to "integrate" this script with my and use in MeGUI to got what i want?
(sorry if my english is bad)